• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

Applets

historycombobox.h

Go to the documentation of this file.
00001 /*
00002  *   Copyright 2008 Aaron Seigo <aseigo@kde.org>
00003  *   Copyright 2008 Marco Martin <notmart@gmail.com>
00004  *
00005  *   This program is free software; you can redistribute it and/or modify
00006  *   it under the terms of the GNU Library General Public License as
00007  *   published by the Free Software Foundation; either version 2, or
00008  *   (at your option) any later version.
00009  *
00010  *   This program is distributed in the hope that it will be useful,
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *   GNU General Public License for more details
00014  *
00015  *   You should have received a copy of the GNU Library General Public
00016  *   License along with this program; if not, write to the
00017  *   Free Software Foundation, Inc.,
00018  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00019  */
00020 
00021 
00022 #ifndef PLASMA_HISTORYCOMBOBOX_H
00023 #define PLASMA_HISTORYCOMBOBOX_H
00024 
00025 #include <QtGui/QGraphicsProxyWidget>
00026 
00027 
00028 class KHistoryComboBox;
00029 
00030 #include <KUrl>
00031 
00032 namespace Plasma
00033 {
00034 
00035 class HistoryComboBox : public QGraphicsProxyWidget
00036 {
00037     Q_OBJECT
00038 
00039     Q_PROPERTY(QGraphicsWidget* parentWidget READ parentWidget)
00040     Q_PROPERTY(QString stylesheet READ stylesheet WRITE setStylesheet)
00041     Q_PROPERTY(KHistoryComboBox* nativeWidget READ nativeWidget)
00042 
00043 public:
00044     explicit HistoryComboBox(QGraphicsWidget *parent = 0);
00045     ~HistoryComboBox();
00046 
00052     void setStylesheet(const QString &stylesheet);
00053 
00057     QString stylesheet();
00058 
00062     KHistoryComboBox* nativeWidget() const;
00063 
00064     QStringList historyItems() const;
00065     bool removeFromHistory(const QString &item);
00066     void reset();
00067     void setHistoryItems(const QStringList &items);
00068     QString currentText() const;
00069     void insertUrl(int index, const KUrl &url);
00070     void setDuplicatesEnabled(bool enabled);
00071 
00072 public Q_SLOTS:
00073     void addToHistory(const QString &item);
00074 
00075 Q_SIGNALS:
00076     void cleared();
00077     void activated(int index);
00078     void returnPressed(const QString &);
00079     void textChanged(const QString &);
00080     void returnPressed();
00081 
00082 protected:
00083     void resizeEvent(QGraphicsSceneResizeEvent *event);
00084 
00085 private:
00086     class Private;
00087     Private * const d;
00088 };
00089 
00090 } // namespace Plasma
00091 
00092 #endif // multiple inclusion guard

Applets

Skip menu "Applets"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal