F:/KPlato/koffice/libs/kofficeui/KoSelectAction.h

Aller à la documentation de ce fichier.
00001 /* This file is part of the KDE project
00002    Copyright (C) 2004 Peter Simonsson <psn@linux.se>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License as published by the Free Software Foundation; either
00007    version 2 of the License, or (at your option) any later version.
00008 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this library; see the file COPYING.LIB.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017  * Boston, MA 02110-1301, USA.
00018 */
00019 #ifndef KOSELECTACTION_H
00020 #define KOSELECTACTION_H
00021 
00022 #include <kaction.h>
00023 #include <koffice_export.h>
00024 class KMenu;
00025 class QPoint;
00026 
00031 class KOFFICEUI_EXPORT KoSelectAction : public KAction
00032 {
00033   Q_OBJECT
00034   public:
00041     KoSelectAction(const QString& text, const QString& icon, QObject* parent = 0, const char* name = 0);
00050     KoSelectAction(const QString& text, const QString& icon, const QObject* receiver,
00051       const char* slot, QObject* parent, const char* name = 0);
00052     ~KoSelectAction();
00053 
00055     KMenu* popupMenu() const;
00059     void popup(const QPoint& global);
00060   
00061     virtual int plug(QWidget* widget, int index = -1);
00062     
00064     virtual int currentSelection();
00065 
00067     void setShowCurrentSelection(bool show);
00068 
00069   signals:
00071     void selectionChanged(int);
00072 
00073   public slots:
00077     virtual void setCurrentSelection(int index);
00078   
00079   protected slots:
00083     virtual void execute(int index);
00084         
00085   private:
00086     class KoSelectActionPrivate;
00087     KoSelectActionPrivate* d;
00088 };
00089 
00090 #endif

Généré le Wed Nov 22 23:41:05 2006 pour KPlato par  doxygen 1.5.1-p1