• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kdeui
 

kdeui

  • kdeui
kactionclasses.h
1 /* This file is part of the KDE libraries
2  Copyright (C) 1999 Reginald Stadlbauer <reggie@kde.org>
3  (C) 1999 Simon Hausmann <hausmann@kde.org>
4  (C) 2000 Nicolas Hadacek <haadcek@kde.org>
5  (C) 2000 Kurt Granroth <granroth@kde.org>
6  (C) 2000 Michael Koch <koch@kde.org>
7  (C) 2001 Holger Freyther <freyther@kde.org>
8  (C) 2002 Ellis Whitehead <ellis@kde.org>
9  (C) 2003 Andras Mantia <amantia@kde.org>
10 
11  This library is free software; you can redistribute it and/or
12  modify it under the terms of the GNU Library General Public
13  License version 2 as published by the Free Software Foundation.
14 
15  This library is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18  Library General Public License for more details.
19 
20  You should have received a copy of the GNU Library General Public License
21  along with this library; see the file COPYING.LIB. If not, write to
22  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
23  Boston, MA 02110-1301, USA.
24 */
25 //$Id$
26 
27 #ifndef __kactionclasses_h__
28 #define __kactionclasses_h__
29 
30 #include <kaction.h>
31 
32 #include <tqkeysequence.h>
33 #include <tqobject.h>
34 #include <tqvaluelist.h>
35 #include <tqguardedptr.h>
36 #include <kguiitem.h>
37 #include <kshortcut.h>
38 #include <kstdaction.h>
39 #include <kicontheme.h>
40 
41 class TQMenuBar;
42 class TQPopupMenu;
43 class TQComboBox;
44 class TQPoint;
45 class TQIconSet;
46 class TQString;
47 class KToolBar;
48 
49 class KAccel;
50 class KAccelActions;
51 class KConfig;
52 class KConfigBase;
53 class KURL;
54 class KInstance;
55 class KToolBar;
56 class KActionCollection;
57 class KPopupMenu;
58 class KMainWindow;
59 
68 class KDEUI_EXPORT KToggleAction : public KAction
69 {
70  Q_OBJECT
71  TQ_OBJECT
72  Q_PROPERTY( bool checked READ isChecked WRITE setChecked )
73  Q_PROPERTY( TQString exclusiveGroup READ exclusiveGroup WRITE setExclusiveGroup )
74 public:
75 
86  KToggleAction( const TQString& text, const KShortcut& cut = KShortcut(), TQObject* parent = 0, const char* name = 0 );
87 
96  KToggleAction( const TQString& text, const KShortcut& cut,
97  const TQObject* receiver, const char* slot, TQObject* parent, const char* name = 0 );
98 
106  KToggleAction( const TQString& text, const TQIconSet& pix, const KShortcut& cut = KShortcut(),
107  TQObject* parent = 0, const char* name = 0 );
108 
116  KToggleAction( const TQString& text, const TQString& pix, const KShortcut& cut = KShortcut(),
117  TQObject* parent = 0, const char* name = 0 );
118 
128  KToggleAction( const TQString& text, const TQIconSet& pix, const KShortcut& cut,
129  const TQObject* receiver, const char* slot, TQObject* parent, const char* name = 0 );
130 
140  KToggleAction( const TQString& text, const TQString& pix, const KShortcut& cut,
141  const TQObject* receiver, const char* slot,
142  TQObject* parent, const char* name = 0 );
143 
148  KToggleAction( TQObject* parent = 0, const char* name = 0 );
149 
153  virtual ~KToggleAction();
154 
166  virtual int plug( TQWidget* widget, int index = -1 );
167 
171  bool isChecked() const;
172 
177  TQString exclusiveGroup() const;
178 
185  virtual void setExclusiveGroup( const TQString& name );
186 
198  void setCheckedState( const KGuiItem& checkedItem );
199 
201  virtual TQString toolTip() const;
202 
203 public slots:
207  virtual void setChecked( bool );
208 
209 protected slots:
210  virtual void slotActivated();
211 
212 protected:
213  virtual void updateChecked( int id );
214 
215 signals:
216  void toggled( bool );
217 
218 protected:
219  virtual void virtual_hook( int id, void* data );
220 private:
221  class KToggleActionPrivate;
222  KToggleActionPrivate *d;
223 };
224 
231 class KDEUI_EXPORT KRadioAction : public KToggleAction
232 {
233  Q_OBJECT
234  TQ_OBJECT
235 public:
246  KRadioAction( const TQString& text, const KShortcut& cut = KShortcut(), TQObject* parent = 0, const char* name = 0 );
247 
256  KRadioAction( const TQString& text, const KShortcut& cut,
257  const TQObject* receiver, const char* slot, TQObject* parent, const char* name = 0 );
258 
266  KRadioAction( const TQString& text, const TQIconSet& pix, const KShortcut& cut = KShortcut(),
267  TQObject* parent = 0, const char* name = 0 );
268 
276  KRadioAction( const TQString& text, const TQString& pix, const KShortcut& cut = KShortcut(),
277  TQObject* parent = 0, const char* name = 0 );
278 
288  KRadioAction( const TQString& text, const TQIconSet& pix, const KShortcut& cut,
289  const TQObject* receiver, const char* slot, TQObject* parent, const char* name = 0 );
290 
300  KRadioAction( const TQString& text, const TQString& pix, const KShortcut& cut,
301  const TQObject* receiver, const char* slot,
302  TQObject* parent, const char* name = 0 );
303 
308  KRadioAction( TQObject* parent = 0, const char* name = 0 );
309 
310 protected:
311  virtual void slotActivated();
312 
313 protected:
314  virtual void virtual_hook( int id, void* data );
315 private:
316  class KRadioActionPrivate;
317  KRadioActionPrivate *d;
318 };
319 
331 class KDEUI_EXPORT KSelectAction : public KAction
332 {
333  Q_OBJECT
334  TQ_OBJECT
335  Q_PROPERTY( int currentItem READ currentItem WRITE setCurrentItem )
336  Q_PROPERTY( TQStringList items READ items WRITE setItems )
337  Q_PROPERTY( bool editable READ isEditable WRITE setEditable )
338  Q_PROPERTY( int comboWidth READ comboWidth WRITE setComboWidth )
339  Q_PROPERTY( TQString currentText READ currentText )
340  Q_PROPERTY( bool menuAccelsEnabled READ menuAccelsEnabled WRITE setMenuAccelsEnabled )
341 public:
342 
353  KSelectAction( const TQString& text, const KShortcut& cut = KShortcut(), TQObject* parent = 0, const char* name = 0 );
354 
363  KSelectAction( const TQString& text, const KShortcut& cut,
364  const TQObject* receiver, const char* slot, TQObject* parent, const char* name = 0 );
365 
373  KSelectAction( const TQString& text, const TQIconSet& pix, const KShortcut& cut = KShortcut(),
374  TQObject* parent = 0, const char* name = 0 );
375 
383  KSelectAction( const TQString& text, const TQString& pix, const KShortcut& cut = KShortcut(),
384  TQObject* parent = 0, const char* name = 0 );
385 
395  KSelectAction( const TQString& text, const TQIconSet& pix, const KShortcut& cut,
396  const TQObject* receiver, const char* slot, TQObject* parent, const char* name = 0 );
397 
407  KSelectAction( const TQString& text, const TQString& pix, const KShortcut& cut,
408  const TQObject* receiver, const char* slot,
409  TQObject* parent, const char* name = 0 );
410 
415  KSelectAction( TQObject* parent = 0, const char* name = 0 );
416 
420  virtual ~KSelectAction();
421 
433  virtual int plug( TQWidget* widget, int index = -1 );
434 
439  virtual bool isEditable() const;
440 
445  virtual TQStringList items() const;
446 
450  virtual void changeItem( int index, const TQString& text );
451 
455  virtual TQString currentText() const;
456 
461  virtual int currentItem() const;
462 
467  virtual int comboWidth() const;
468 
475  void setMaxComboViewCount( int n );
476 
480  TQPopupMenu* popupMenu() const;
481 
486  void setRemoveAmpersandsInCombo( bool b ) KDE_DEPRECATED;
488  bool removeAmpersandsInCombo() const;
489 
496  void setMenuAccelsEnabled( bool b );
498  bool menuAccelsEnabled() const;
499 
500  virtual bool isShortcutConfigurable() const { return false; }
501 
502 public slots:
508  virtual void setCurrentItem( int index );
509 
514  virtual void setItems( const TQStringList &lst );
515 
519  virtual void clear();
520 
525  virtual void setEditable( bool );
526 
532  virtual void setComboWidth( int width );
533 
534 protected:
535  virtual void changeItem( int id, int index, const TQString& text );
536 
543  TQStringList comboItems() const;
544 
545 protected slots:
546  virtual void slotActivated( int id );
547  virtual void slotActivated( const TQString &text );
548  virtual void slotActivated();
549 
550 signals:
555  void activated( int index );
560  void activated( const TQString& text );
561 
562 protected:
563  virtual void updateCurrentItem( int id );
564 
565  virtual void updateComboWidth( int id );
566 
567  virtual void updateItems( int id );
568 
569  virtual void updateClear( int id );
570 
571 protected:
572  virtual void virtual_hook( int id, void* data );
573 private:
574  void setupMenu() const;
575  class KSelectActionPrivate;
576  KSelectActionPrivate *d;
577 
578 };
579 
581 
584 class KDEUI_EXPORT_DEPRECATED KListAction : public KSelectAction
585 {
586  Q_OBJECT
587  TQ_OBJECT
588 public:
599  KListAction( const TQString& text, const KShortcut& cut = KShortcut(), TQObject* parent = 0,
600  const char* name = 0 );
601 
610  KListAction( const TQString& text, const KShortcut& cut, const TQObject* receiver,
611  const char* slot, TQObject* parent, const char* name = 0 );
612 
620  KListAction( const TQString& text, const TQIconSet& pix, const KShortcut& cut = KShortcut(),
621  TQObject* parent = 0, const char* name = 0 );
622 
630  KListAction( const TQString& text, const TQString& pix, const KShortcut& cut = KShortcut(),
631  TQObject* parent = 0, const char* name = 0 );
632 
642  KListAction( const TQString& text, const TQIconSet& pix, const KShortcut& cut,
643  const TQObject* receiver, const char* slot, TQObject* parent,
644  const char* name = 0 );
645 
655  KListAction( const TQString& text, const TQString& pix, const KShortcut& cut,
656  const TQObject* receiver, const char* slot, TQObject* parent,
657  const char* name = 0 );
658 
663  KListAction( TQObject* parent = 0, const char* name = 0 );
664 
668  virtual ~KListAction();
669 
670 
671  virtual TQString currentText() const;
672  virtual int currentItem() const;
673 
674 
675 public slots:
681  virtual void setCurrentItem( int index );
682 
683 protected:
684  virtual void virtual_hook( int id, void* data );
685 private:
686  class KListActionPrivate;
687  KListActionPrivate *d;
688 };
689 
700 class KDEUI_EXPORT KRecentFilesAction : public KListAction // TODO public KSelectAction
701 {
702  Q_OBJECT
703  TQ_OBJECT
704  Q_PROPERTY( uint maxItems READ maxItems WRITE setMaxItems )
705 public:
713  KRecentFilesAction( const TQString& text, const KShortcut& cut,
714  TQObject* parent, const char* name = 0,
715  uint maxItems = 10 );
716 
727  KRecentFilesAction( const TQString& text, const KShortcut& cut,
728  const TQObject* receiver, const char* slot,
729  TQObject* parent, const char* name = 0,
730  uint maxItems = 10 );
731 
740  KRecentFilesAction( const TQString& text, const TQIconSet& pix, const KShortcut& cut,
741  TQObject* parent, const char* name = 0,
742  uint maxItems = 10 );
743 
752  KRecentFilesAction( const TQString& text, const TQString& pix, const KShortcut& cut,
753  TQObject* parent, const char* name = 0,
754  uint maxItems = 10 );
755 
767  KRecentFilesAction( const TQString& text, const TQIconSet& pix, const KShortcut& cut,
768  const TQObject* receiver, const char* slot,
769  TQObject* parent, const char* name = 0,
770  uint maxItems = 10 );
771 
783  KRecentFilesAction( const TQString& text, const TQString& pix, const KShortcut& cut,
784  const TQObject* receiver, const char* slot,
785  TQObject* parent, const char* name = 0,
786  uint maxItems = 10 );
787 
793  KRecentFilesAction( TQObject* parent = 0, const char* name = 0,
794  uint maxItems = 10 );
795 
799  virtual ~KRecentFilesAction();
800 
801  virtual int plug( TQWidget *widget, int index = -1 );
802 
806  uint maxItems() const;
807 
808 //KDE4: remove completeItems() and rename items() to urls(), to get the list of URLs added to
809 // the action.
816  virtual TQStringList items() const;
817 
823  TQStringList completeItems() const;
824 
825 public slots:
834  void setMaxItems( uint maxItems );
835 
843  void loadEntries( KConfig* config, TQString groupname=TQString::null );
844 
852  void saveEntries( KConfig* config, TQString groupname=TQString::null );
853 
859  void addURL( const KURL& url );
860 
868  void addURL( const KURL& url, const TQString& name ); //KDE4: Combine the above two methods
869 
875  void removeURL( const KURL& url );
876 
880  void clearURLList();
881 
882 signals:
883 
889  void urlSelected( const KURL& url );
890 
891 protected slots:
892  void itemSelected( const TQString& string );
893  void menuAboutToShow();
894  void menuItemActivated( int id );
895  void slotClicked();
896  virtual void slotActivated(int);
897  virtual void slotActivated(const TQString& );
898  virtual void slotActivated();
899 
900 protected:
901  virtual void virtual_hook( int id, void* data );
902 
903 private:
904  void init();
905 
906  class KRecentFilesActionPrivate;
907  KRecentFilesActionPrivate *d;
908 };
909 
910 class KDEUI_EXPORT KFontAction : public KSelectAction
911 {
912  Q_OBJECT
913  TQ_OBJECT
914  Q_PROPERTY( TQString font READ font WRITE setFont )
915 public:
916  KFontAction( const TQString& text, const KShortcut& cut = KShortcut(), TQObject* parent = 0,
917  const char* name = 0 );
918  KFontAction( const TQString& text, const KShortcut& cut,
919  const TQObject* receiver, const char* slot, TQObject* parent,
920  const char* name = 0 );
921  KFontAction( const TQString& text, const TQIconSet& pix, const KShortcut& cut = KShortcut(),
922  TQObject* parent = 0, const char* name = 0 );
923  KFontAction( const TQString& text, const TQString& pix, const KShortcut& cut = KShortcut(),
924  TQObject* parent = 0, const char* name = 0 );
925  KFontAction( const TQString& text, const TQIconSet& pix, const KShortcut& cut,
926  const TQObject* receiver, const char* slot, TQObject* parent,
927  const char* name = 0 );
928  KFontAction( const TQString& text, const TQString& pix, const KShortcut& cut,
929  const TQObject* receiver, const char* slot, TQObject* parent,
930  const char* name = 0 );
931 
932 // The ctors with fontListCriteria were added after 3.3-beta1.
933 // This define is used in koffice. Remove when koffice has a dependency on kdelibs-3.3 or more.
934 #define KFONTACTION_HAS_CRITERIA_ARG
935  KFontAction( uint fontListCriteria, const TQString& text,
936  const KShortcut& cut = KShortcut(), TQObject* parent = 0,
937  const char* name = 0 );
938  KFontAction( uint fontListCriteria, const TQString& text, const TQString& pix,
939  const KShortcut& cut = KShortcut(),
940  TQObject* parent = 0, const char* name = 0 );
941 
942  KFontAction( TQObject* parent = 0, const char* name = 0 );
943  ~KFontAction();
944 
945  TQString font() const {
946  return currentText();
947  }
948 
949  int plug( TQWidget*widget, int index = -1 );
950 
951 public slots:
952  void setFont( const TQString &family );
953 
954 protected:
955  virtual void virtual_hook( int id, void* data );
956 private:
957  class KFontActionPrivate;
958  KFontActionPrivate *d;
959 };
960 
961 class KDEUI_EXPORT KFontSizeAction : public KSelectAction
962 {
963  Q_OBJECT
964  TQ_OBJECT
965  Q_PROPERTY( int fontSize READ fontSize WRITE setFontSize )
966 public:
967  KFontSizeAction( const TQString& text, const KShortcut& cut = KShortcut(), TQObject* parent = 0,
968  const char* name = 0 );
969  KFontSizeAction( const TQString& text, const KShortcut& cut, const TQObject* receiver,
970  const char* slot, TQObject* parent, const char* name = 0 );
971  KFontSizeAction( const TQString& text, const TQIconSet& pix, const KShortcut& cut = KShortcut(),
972  TQObject* parent = 0, const char* name = 0 );
973  KFontSizeAction( const TQString& text, const TQString& pix, const KShortcut& cut = KShortcut(),
974  TQObject* parent = 0, const char* name = 0 );
975  KFontSizeAction( const TQString& text, const TQIconSet& pix, const KShortcut& cut,
976  const TQObject* receiver, const char* slot,
977  TQObject* parent, const char* name = 0 );
978  KFontSizeAction( const TQString& text, const TQString& pix, const KShortcut& cut,
979  const TQObject* receiver, const char* slot,
980  TQObject* parent, const char* name = 0 );
981  KFontSizeAction( TQObject* parent = 0, const char* name = 0 );
982 
983  virtual ~KFontSizeAction();
984 
985  virtual int fontSize() const;
986 
987 public slots:
988  virtual void setFontSize( int size );
989 
990 protected slots:
991  virtual void slotActivated( int );
992  virtual void slotActivated( const TQString& );
993  virtual void slotActivated() { KAction::slotActivated(); }
994 
995 signals:
996  void fontSizeChanged( int );
997 
998 private:
999  void init();
1000 
1001 
1002 protected:
1003  virtual void virtual_hook( int id, void* data );
1004 private:
1005  class KFontSizeActionPrivate;
1006  KFontSizeActionPrivate *d;
1007 };
1008 
1009 
1020 class KDEUI_EXPORT KActionMenu : public KAction
1021 {
1022  Q_OBJECT
1023  TQ_OBJECT
1024  Q_PROPERTY( bool delayed READ delayed WRITE setDelayed )
1025  Q_PROPERTY( bool stickyMenu READ stickyMenu WRITE setStickyMenu )
1026 
1027 public:
1028  KActionMenu( const TQString& text, TQObject* parent = 0,
1029  const char* name = 0 );
1030  KActionMenu( const TQString& text, const TQIconSet& icon,
1031  TQObject* parent = 0, const char* name = 0 );
1032  KActionMenu( const TQString& text, const TQString& icon,
1033  TQObject* parent = 0, const char* name = 0 );
1034  KActionMenu( TQObject* parent = 0, const char* name = 0 );
1035  virtual ~KActionMenu();
1036 
1037  virtual void insert( KAction*, int index = -1 );
1038  virtual void remove( KAction* );
1039 
1040  KPopupMenu* popupMenu() const;
1041  void popup( const TQPoint& global );
1042 
1047  bool delayed() const;
1061  void setDelayed(bool _delayed);
1062 
1067  bool stickyMenu() const;
1076  void setStickyMenu(bool sticky);
1077 
1078  virtual int plug( TQWidget* widget, int index = -1 );
1079 
1080 protected:
1081  virtual void virtual_hook( int id, void* data );
1082 private:
1083  class KActionMenuPrivate;
1084  KActionMenuPrivate *d;
1085 };
1086 
1094 class KDEUI_EXPORT KToolBarPopupAction : public KAction
1095 {
1096  Q_OBJECT
1097  TQ_OBJECT
1098  Q_PROPERTY( bool delayed READ delayed WRITE setDelayed )
1099  Q_PROPERTY( bool stickyMenu READ stickyMenu WRITE setStickyMenu )
1100 
1101 public:
1102  //Not all constructors - because we need an icon, since this action only makes
1103  // sense when being plugged at least in a toolbar.
1114  KToolBarPopupAction( const TQString& text, const TQString& icon, const KShortcut& cut = KShortcut(),
1115  TQObject* parent = 0, const char* name = 0 );
1116 
1132  KToolBarPopupAction( const TQString& text, const TQString& icon, const KShortcut& cut,
1133  const TQObject* receiver, const char* slot,
1134  TQObject* parent = 0, const char* name = 0 );
1135 
1151  KToolBarPopupAction( const KGuiItem& item, const KShortcut& cut,
1152  const TQObject* receiver, const char* slot,
1153  KActionCollection* parent, const char* name );
1154 
1155  virtual ~KToolBarPopupAction();
1156 
1157  virtual int plug( TQWidget *widget, int index = -1 );
1158 
1164  KPopupMenu *popupMenu() const;
1165 
1170  bool delayed() const;
1176  void setDelayed(bool delayed);
1181  bool stickyMenu() const;
1191  void setStickyMenu(bool sticky);
1192 
1193 private:
1194  KPopupMenu *m_popup;
1195  bool m_delayed:1;
1196  bool m_stickyMenu:1;
1197 protected:
1198  virtual void virtual_hook( int id, void* data );
1199 private:
1200  class KToolBarPopupActionPrivate;
1201  KToolBarPopupActionPrivate *d;
1202 };
1203 
1217 class KDEUI_EXPORT KToggleToolBarAction : public KToggleAction
1218 {
1219  Q_OBJECT
1220  TQ_OBJECT
1221 public:
1228  KToggleToolBarAction( const char* toolBarName, const TQString& text,
1229  KActionCollection* parent, const char* name );
1230  KToggleToolBarAction( KToolBar *toolBar, const TQString &text,
1231  KActionCollection *parent, const char *name );
1232  virtual ~KToggleToolBarAction();
1233 
1234  virtual int plug( TQWidget * widget, int index = -1 );
1235 
1236  KToolBar *toolBar() { return m_toolBar; }
1237 
1238 public slots:
1239  virtual void setChecked( bool );
1240 
1241 private:
1242  TQCString m_toolBarName;
1243  TQGuardedPtr<KToolBar> m_toolBar;
1244 protected:
1245  virtual void virtual_hook( int id, void* data );
1246 private:
1247  class KToggleToolBarActionPrivate;
1248  KToggleToolBarActionPrivate *d;
1249 };
1250 
1264 class KDEUI_EXPORT KToggleFullScreenAction : public KToggleAction
1265 {
1266  Q_OBJECT
1267  TQ_OBJECT
1268 public:
1278  KToggleFullScreenAction( const KShortcut &cut,
1279  const TQObject* receiver, const char* slot,
1280  TQObject* parent, TQWidget* window,
1281  const char* name );
1282  virtual ~KToggleFullScreenAction();
1283 
1287  void setWindow( TQWidget* window );
1288 public slots:
1289  virtual void setChecked( bool );
1290 protected:
1294  virtual bool eventFilter( TQObject* o, TQEvent* e );
1295 private:
1296  TQWidget* window;
1297 protected:
1298  virtual void virtual_hook( int id, void* data );
1299 private:
1300  class KToggleFullScreenActionPrivate;
1301  KToggleFullScreenActionPrivate *d;
1302 };
1303 
1304 
1309 class KDEUI_EXPORT KWidgetAction : public KAction
1310 {
1311  Q_OBJECT
1312  TQ_OBJECT
1313 public:
1319  KWidgetAction( TQWidget* widget, const TQString& text,
1320  const KShortcut& cut,
1321  const TQObject* receiver, const char* slot,
1322  KActionCollection* parent, const char* name );
1323  virtual ~KWidgetAction();
1324 
1328  TQWidget* widget() { return m_widget; }
1329 
1330  void setAutoSized( bool );
1331 
1336  virtual int plug( TQWidget* widget, int index = -1 );
1341  virtual void unplug( TQWidget *w );
1342 protected slots:
1343  void slotToolbarDestroyed();
1344 private:
1345  TQGuardedPtr<TQWidget> m_widget;
1346  bool m_autoSized;
1347 protected:
1348  virtual void virtual_hook( int id, void* data );
1349 private:
1350  class KWidgetActionPrivate;
1351  KWidgetActionPrivate *d;
1352 };
1353 
1354 class KDEUI_EXPORT KActionSeparator : public KAction
1355 {
1356  Q_OBJECT
1357  TQ_OBJECT
1358 public:
1359  KActionSeparator( TQObject* parent = 0, const char* name = 0 );
1360  virtual ~KActionSeparator();
1361 
1362  virtual int plug( TQWidget *widget, int index = -1 );
1363 
1364 protected:
1365  virtual void virtual_hook( int id, void* data );
1366 private:
1367  class KActionSeparatorPrivate;
1368  KActionSeparatorPrivate *d;
1369 };
1370 
1381 class KDEUI_EXPORT KPasteTextAction: public KAction
1382 {
1383  Q_OBJECT
1384  TQ_OBJECT
1385 public:
1401  KPasteTextAction( const TQString& text, const TQString& icon, const KShortcut& cut,
1402  const TQObject* receiver, const char* slot,
1403  TQObject* parent = 0, const char* name = 0 );
1404 
1405  virtual ~KPasteTextAction();
1406 
1417  void setMixedMode(bool mode);
1418 
1419  virtual int plug( TQWidget *widget, int index = -1 );
1420 
1421 protected slots:
1422  void menuAboutToShow();
1423  void menuItemActivated( int id);
1424  virtual void slotActivated();
1425 
1426 protected:
1427  virtual void virtual_hook( int id, void* data );
1428 
1429 private:
1430  KPopupMenu *m_popup;
1431  bool m_mixedMode;
1432  class KPasteTextActionPrivate;
1433  KPasteTextActionPrivate *d;
1434 };
1435 
1436 #endif
KAccel
KActionCollection
A managed set of KAction objects.
Definition: kactioncollection.h:79
KActionMenu
A KActionMenu is an action that holds a sub-menu of other actions.
Definition: kactionclasses.h:1021
KAction
Class to encapsulate user-driven action or event.
Definition: kaction.h:203
KAction::unplug
virtual void unplug(TQWidget *w)
"Unplug" or remove this action from a given widget.
Definition: kaction.cpp:745
KAction::plug
virtual int plug(TQWidget *widget, int index=-1)
"Plug" or insert this action into a given widget.
Definition: kaction.cpp:628
KConfigBase
KConfig
KGuiItem
An abstract class for GUI data such as ToolTip and Icon.
Definition: kguiitem.h:39
KInstance
KListAction
Remove this class in KDE-4.0. It doesn't add anything to KSelectAction.
Definition: kactionclasses.h:585
KMainWindow
KDE top level main window
Definition: kmainwindow.h:99
KPasteTextAction
An action for pasting text from the clipboard.
Definition: kactionclasses.h:1382
KPopupMenu
A menu with title items.
Definition: kpopupmenu.h:123
KRadioAction
Radiobox like action.
Definition: kactionclasses.h:232
KRecentFilesAction
Recent files action.
Definition: kactionclasses.h:701
KRecentFilesAction::urlSelected
void urlSelected(const KURL &url)
This signal gets emited when the user selects an URL.
KSelectAction
Action for selecting one of several items.
Definition: kactionclasses.h:332
KSelectAction::activated
void activated(const TQString &text)
This signal is emitted when an item is selected;.
KSelectAction::isShortcutConfigurable
virtual bool isShortcutConfigurable() const
Returns true if this action's shortcut is configurable.
Definition: kactionclasses.h:500
KSelectAction::setCurrentItem
virtual void setCurrentItem(int index)
Sets the currently checked item.
Definition: kactionclasses.cpp:440
KSelectAction::activated
void activated(int index)
This signal is emitted when an item is selected;.
KShortcut
KToggleAction
Checkbox like action.
Definition: kactionclasses.h:69
KToggleFullScreenAction
An action for switching between to/from full screen mode.
Definition: kactionclasses.h:1265
KToggleToolBarAction
An action that takes care of everything associated with showing or hiding a toolbar by a menu action.
Definition: kactionclasses.h:1218
KToolBarPopupAction
This action is a normal action everywhere, except in a toolbar where it also has a popupmenu (optionn...
Definition: kactionclasses.h:1095
KToolBar
Floatable toolbar with auto resize.
Definition: ktoolbar.h:105
KURL
KWidgetAction
An action that automatically embeds a widget into a toolbar.
Definition: kactionclasses.h:1310
KWidgetAction::widget
TQWidget * widget()
Returns the widget associated with this action.
Definition: kactionclasses.h:1328

kdeui

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

kdeui

Skip menu "kdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kdeui by doxygen 1.9.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |