• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • Contact Us
 

KDEUI

khistorycombobox.h

Go to the documentation of this file.
00001 /* This file is part of the KDE libraries
00002 
00003    Copyright (c) 2000,2001 Dawit Alemayehu <adawit@kde.org>
00004    Copyright (c) 2000,2001 Carsten Pfeiffer <pfeiffer@kde.org>
00005 
00006    This library is free software; you can redistribute it and/or
00007    modify it under the terms of the GNU Lesser General Public
00008    License (LGPL) as published by the Free Software Foundation; either
00009    version 2 of the License, or (at your option) any later version.
00010 
00011    This library is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014    Lesser General Public License for more details.
00015 
00016    You should have received a copy of the GNU Lesser General Public License
00017    along with this library; see the file COPYING.LIB.  If not, write to
00018    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019    Boston, MA 02110-1301, USA.
00020 */
00021 
00022 #ifndef KHistoryComboBoxBOX_H
00023 #define KHistoryComboBoxBOX_H
00024 
00025 #include <kcombobox.h>
00026 
00027 class KPixmapProvider;
00028 
00048 class KDEUI_EXPORT KHistoryComboBox : public KComboBox
00049 {
00050     Q_OBJECT
00051     Q_PROPERTY( QStringList historyItems READ historyItems WRITE setHistoryItems )
00052 
00053 public:
00072     explicit KHistoryComboBox( QWidget *parent = 0 );
00073 
00080     explicit KHistoryComboBox( bool useCompletion, QWidget *parent = 0 );
00081 
00085     ~KHistoryComboBox();
00086 
00093     void setHistoryItems( const QStringList &items );
00094 
00138     void setHistoryItems( const QStringList &items, bool setCompletionList );
00139 
00146     QStringList historyItems() const;
00147 
00155     bool removeFromHistory( const QString& item );
00156 
00169     void setPixmapProvider( KPixmapProvider *prov );
00170 
00176     KPixmapProvider * pixmapProvider() const;
00177 
00182     void reset();
00183 
00184     using QComboBox::insertItems;
00185 
00186 public Q_SLOTS:
00206     void addToHistory( const QString& item );
00207 
00211     void clearHistory();
00212 
00213 Q_SIGNALS:
00217     void cleared();
00218 
00219 protected:
00223     virtual void keyPressEvent( QKeyEvent * );
00224 
00228     virtual void wheelEvent( QWheelEvent *ev );
00229 
00238     void insertItems( const QStringList& items );
00239 
00243     bool useCompletion() const;
00244 
00245 private Q_SLOTS:
00249     void slotReset();
00250 
00255     void slotClear();
00256 
00260     void addContextMenuItems( QMenu* );
00261 
00265     void slotSimulateActivated( const QString& );
00266 
00267 private:
00268     void init( bool useCompletion );
00269     void rotateUp();
00270     void rotateDown();
00271 
00272 private:
00273     class Private;
00274     friend class Private;
00275     Private* const d;
00276 
00277     Q_DISABLE_COPY(KHistoryComboBox)
00278 };
00279 
00280 
00281 #endif
00282 

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
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