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

tdeui

  • tdeui
tdeactionclasses.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 __tdeactionclasses_h__
28#define __tdeactionclasses_h__
29
30#include <tdeaction.h>
31
32#include <tqkeysequence.h>
33#include <tqobject.h>
34#include <tqvaluelist.h>
35#include <tqguardedptr.h>
36#include <kguiitem.h>
37#include <tdeshortcut.h>
38#include <kstdaction.h>
39#include <kicontheme.h>
40
41class TQMenuBar;
42class TQPopupMenu;
43class TQComboBox;
44class TQPoint;
45class TQIconSet;
46class TQString;
47class TDEToolBar;
48
49class TDEAccel;
50class TDEAccelActions;
51class TDEConfig;
52class TDEConfigBase;
53class KURL;
54class TDEInstance;
55class TDEToolBar;
56class TDEActionCollection;
57class TDEPopupMenu;
58class TDEMainWindow;
59
68class TDEUI_EXPORT TDEToggleAction : public TDEAction
69{
70 TQ_OBJECT
71
72 TQ_PROPERTY( bool checked READ isChecked WRITE setChecked )
73 TQ_PROPERTY( TQString exclusiveGroup READ exclusiveGroup WRITE setExclusiveGroup )
74public:
75
86 TDEToggleAction( const TQString& text, const TDEShortcut& cut = TDEShortcut(), TQObject* parent = 0, const char* name = 0 );
87
96 TDEToggleAction( const TQString& text, const TDEShortcut& cut,
97 const TQObject* receiver, const char* slot, TQObject* parent, const char* name = 0 );
98
106 TDEToggleAction( const TQString& text, const TQIconSet& pix, const TDEShortcut& cut = TDEShortcut(),
107 TQObject* parent = 0, const char* name = 0 );
108
116 TDEToggleAction( const TQString& text, const TQString& pix, const TDEShortcut& cut = TDEShortcut(),
117 TQObject* parent = 0, const char* name = 0 );
118
128 TDEToggleAction( const TQString& text, const TQIconSet& pix, const TDEShortcut& cut,
129 const TQObject* receiver, const char* slot, TQObject* parent, const char* name = 0 );
130
140 TDEToggleAction( const TQString& text, const TQString& pix, const TDEShortcut& cut,
141 const TQObject* receiver, const char* slot,
142 TQObject* parent, const char* name = 0 );
143
148 TDEToggleAction( TQObject* parent = 0, const char* name = 0 );
149
153 virtual ~TDEToggleAction();
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
203public slots:
207 virtual void setChecked( bool );
208
209protected slots:
210 virtual void slotActivated();
211
212protected:
213 virtual void updateChecked( int id );
214
215signals:
216 void toggled( bool );
217
218protected:
219 virtual void virtual_hook( int id, void* data );
220private:
221 class TDEToggleActionPrivate;
222 TDEToggleActionPrivate *d;
223};
224
231class TDEUI_EXPORT TDERadioAction : public TDEToggleAction
232{
233 TQ_OBJECT
234
235public:
246 TDERadioAction( const TQString& text, const TDEShortcut& cut = TDEShortcut(), TQObject* parent = 0, const char* name = 0 );
247
256 TDERadioAction( const TQString& text, const TDEShortcut& cut,
257 const TQObject* receiver, const char* slot, TQObject* parent, const char* name = 0 );
258
266 TDERadioAction( const TQString& text, const TQIconSet& pix, const TDEShortcut& cut = TDEShortcut(),
267 TQObject* parent = 0, const char* name = 0 );
268
276 TDERadioAction( const TQString& text, const TQString& pix, const TDEShortcut& cut = TDEShortcut(),
277 TQObject* parent = 0, const char* name = 0 );
278
288 TDERadioAction( const TQString& text, const TQIconSet& pix, const TDEShortcut& cut,
289 const TQObject* receiver, const char* slot, TQObject* parent, const char* name = 0 );
290
300 TDERadioAction( const TQString& text, const TQString& pix, const TDEShortcut& cut,
301 const TQObject* receiver, const char* slot,
302 TQObject* parent, const char* name = 0 );
303
308 TDERadioAction( TQObject* parent = 0, const char* name = 0 );
309
310protected:
311 virtual void slotActivated();
312
313protected:
314 virtual void virtual_hook( int id, void* data );
315private:
316 class TDERadioActionPrivate;
317 TDERadioActionPrivate *d;
318};
319
331class TDEUI_EXPORT TDESelectAction : public TDEAction
332{
333 TQ_OBJECT
334
335 TQ_PROPERTY( int currentItem READ currentItem WRITE setCurrentItem )
336 TQ_PROPERTY( TQStringList items READ items WRITE setItems )
337 TQ_PROPERTY( bool editable READ isEditable WRITE setEditable )
338 TQ_PROPERTY( int comboWidth READ comboWidth WRITE setComboWidth )
339 TQ_PROPERTY( TQString currentText READ currentText )
340 TQ_PROPERTY( bool menuAccelsEnabled READ menuAccelsEnabled WRITE setMenuAccelsEnabled )
341public:
342
353 TDESelectAction( const TQString& text, const TDEShortcut& cut = TDEShortcut(), TQObject* parent = 0, const char* name = 0 );
354
363 TDESelectAction( const TQString& text, const TDEShortcut& cut,
364 const TQObject* receiver, const char* slot, TQObject* parent, const char* name = 0 );
365
373 TDESelectAction( const TQString& text, const TQIconSet& pix, const TDEShortcut& cut = TDEShortcut(),
374 TQObject* parent = 0, const char* name = 0 );
375
383 TDESelectAction( const TQString& text, const TQString& pix, const TDEShortcut& cut = TDEShortcut(),
384 TQObject* parent = 0, const char* name = 0 );
385
395 TDESelectAction( const TQString& text, const TQIconSet& pix, const TDEShortcut& cut,
396 const TQObject* receiver, const char* slot, TQObject* parent, const char* name = 0 );
397
407 TDESelectAction( const TQString& text, const TQString& pix, const TDEShortcut& cut,
408 const TQObject* receiver, const char* slot,
409 TQObject* parent, const char* name = 0 );
410
415 TDESelectAction( TQObject* parent = 0, const char* name = 0 );
416
420 virtual ~TDESelectAction();
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 ) TDE_DEPRECATED;
488 bool removeAmpersandsInCombo() const;
489
496 void setMenuAccelsEnabled( bool b );
498 bool menuAccelsEnabled() const;
499
500 virtual bool isShortcutConfigurable() const { return false; }
501
502public 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
534protected:
535 virtual void changeItem( int id, int index, const TQString& text );
536
543 TQStringList comboItems() const;
544
545protected slots:
546 virtual void slotActivated( int id );
547 virtual void slotActivated( const TQString &text );
548 virtual void slotActivated();
549
550signals:
555 void activated( int index );
560 void activated( const TQString& text );
561
562protected:
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
571protected:
572 virtual void virtual_hook( int id, void* data );
573private:
574 void setupMenu() const;
575 class TDESelectActionPrivate;
576 TDESelectActionPrivate *d;
577
578};
579
581
584class TDEUI_EXPORT_DEPRECATED TDEListAction : public TDESelectAction
585{
586 TQ_OBJECT
587
588public:
599 TDEListAction( const TQString& text, const TDEShortcut& cut = TDEShortcut(), TQObject* parent = 0,
600 const char* name = 0 );
601
610 TDEListAction( const TQString& text, const TDEShortcut& cut, const TQObject* receiver,
611 const char* slot, TQObject* parent, const char* name = 0 );
612
620 TDEListAction( const TQString& text, const TQIconSet& pix, const TDEShortcut& cut = TDEShortcut(),
621 TQObject* parent = 0, const char* name = 0 );
622
630 TDEListAction( const TQString& text, const TQString& pix, const TDEShortcut& cut = TDEShortcut(),
631 TQObject* parent = 0, const char* name = 0 );
632
642 TDEListAction( const TQString& text, const TQIconSet& pix, const TDEShortcut& cut,
643 const TQObject* receiver, const char* slot, TQObject* parent,
644 const char* name = 0 );
645
655 TDEListAction( const TQString& text, const TQString& pix, const TDEShortcut& cut,
656 const TQObject* receiver, const char* slot, TQObject* parent,
657 const char* name = 0 );
658
663 TDEListAction( TQObject* parent = 0, const char* name = 0 );
664
668 virtual ~TDEListAction();
669
670
671 virtual TQString currentText() const;
672 virtual int currentItem() const;
673
674
675public slots:
681 virtual void setCurrentItem( int index );
682
683protected:
684 virtual void virtual_hook( int id, void* data );
685private:
686 class TDEListActionPrivate;
687 TDEListActionPrivate *d;
688};
689
700class TDEUI_EXPORT TDERecentFilesAction : public TDEListAction // TODO public TDESelectAction
701{
702 TQ_OBJECT
703
704 TQ_PROPERTY( uint maxItems READ maxItems WRITE setMaxItems )
705public:
713 TDERecentFilesAction( const TQString& text, const TDEShortcut& cut,
714 TQObject* parent, const char* name = 0,
715 uint maxItems = 10 );
716
727 TDERecentFilesAction( const TQString& text, const TDEShortcut& cut,
728 const TQObject* receiver, const char* slot,
729 TQObject* parent, const char* name = 0,
730 uint maxItems = 10 );
731
740 TDERecentFilesAction( const TQString& text, const TQIconSet& pix, const TDEShortcut& cut,
741 TQObject* parent, const char* name = 0,
742 uint maxItems = 10 );
743
752 TDERecentFilesAction( const TQString& text, const TQString& pix, const TDEShortcut& cut,
753 TQObject* parent, const char* name = 0,
754 uint maxItems = 10 );
755
767 TDERecentFilesAction( const TQString& text, const TQIconSet& pix, const TDEShortcut& cut,
768 const TQObject* receiver, const char* slot,
769 TQObject* parent, const char* name = 0,
770 uint maxItems = 10 );
771
783 TDERecentFilesAction( const TQString& text, const TQString& pix, const TDEShortcut& cut,
784 const TQObject* receiver, const char* slot,
785 TQObject* parent, const char* name = 0,
786 uint maxItems = 10 );
787
793 TDERecentFilesAction( TQObject* parent = 0, const char* name = 0,
794 uint maxItems = 10 );
795
799 virtual ~TDERecentFilesAction();
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
825public slots:
834 void setMaxItems( uint maxItems );
835
843 void loadEntries( TDEConfig* config, TQString groupname=TQString::null );
844
852 void saveEntries( TDEConfig* 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
882signals:
883
889 void urlSelected( const KURL& url );
890
891protected 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
900protected:
901 virtual void virtual_hook( int id, void* data );
902
903private:
904 void init();
905
906 class TDERecentFilesActionPrivate;
907 TDERecentFilesActionPrivate *d;
908};
909
910class TDEUI_EXPORT TDEFontAction : public TDESelectAction
911{
912 TQ_OBJECT
913
914 TQ_PROPERTY( TQString font READ font WRITE setFont )
915public:
916 TDEFontAction( const TQString& text, const TDEShortcut& cut = TDEShortcut(), TQObject* parent = 0,
917 const char* name = 0 );
918 TDEFontAction( const TQString& text, const TDEShortcut& cut,
919 const TQObject* receiver, const char* slot, TQObject* parent,
920 const char* name = 0 );
921 TDEFontAction( const TQString& text, const TQIconSet& pix, const TDEShortcut& cut = TDEShortcut(),
922 TQObject* parent = 0, const char* name = 0 );
923 TDEFontAction( const TQString& text, const TQString& pix, const TDEShortcut& cut = TDEShortcut(),
924 TQObject* parent = 0, const char* name = 0 );
925 TDEFontAction( const TQString& text, const TQIconSet& pix, const TDEShortcut& cut,
926 const TQObject* receiver, const char* slot, TQObject* parent,
927 const char* name = 0 );
928 TDEFontAction( const TQString& text, const TQString& pix, const TDEShortcut& 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 tdelibs-3.3 or more.
934#define KFONTACTION_HAS_CRITERIA_ARG
935 TDEFontAction( uint fontListCriteria, const TQString& text,
936 const TDEShortcut& cut = TDEShortcut(), TQObject* parent = 0,
937 const char* name = 0 );
938 TDEFontAction( uint fontListCriteria, const TQString& text, const TQString& pix,
939 const TDEShortcut& cut = TDEShortcut(),
940 TQObject* parent = 0, const char* name = 0 );
941
942 TDEFontAction( TQObject* parent = 0, const char* name = 0 );
943 ~TDEFontAction();
944
945 TQString font() const {
946 return currentText();
947 }
948
949 int plug( TQWidget*widget, int index = -1 );
950
951public slots:
952 void setFont( const TQString &family );
953
954protected:
955 virtual void virtual_hook( int id, void* data );
956private:
957 class TDEFontActionPrivate;
958 TDEFontActionPrivate *d;
959};
960
961class TDEUI_EXPORT TDEFontSizeAction : public TDESelectAction
962{
963 TQ_OBJECT
964
965 TQ_PROPERTY( int fontSize READ fontSize WRITE setFontSize )
966public:
967 TDEFontSizeAction( const TQString& text, const TDEShortcut& cut = TDEShortcut(), TQObject* parent = 0,
968 const char* name = 0 );
969 TDEFontSizeAction( const TQString& text, const TDEShortcut& cut, const TQObject* receiver,
970 const char* slot, TQObject* parent, const char* name = 0 );
971 TDEFontSizeAction( const TQString& text, const TQIconSet& pix, const TDEShortcut& cut = TDEShortcut(),
972 TQObject* parent = 0, const char* name = 0 );
973 TDEFontSizeAction( const TQString& text, const TQString& pix, const TDEShortcut& cut = TDEShortcut(),
974 TQObject* parent = 0, const char* name = 0 );
975 TDEFontSizeAction( const TQString& text, const TQIconSet& pix, const TDEShortcut& cut,
976 const TQObject* receiver, const char* slot,
977 TQObject* parent, const char* name = 0 );
978 TDEFontSizeAction( const TQString& text, const TQString& pix, const TDEShortcut& cut,
979 const TQObject* receiver, const char* slot,
980 TQObject* parent, const char* name = 0 );
981 TDEFontSizeAction( TQObject* parent = 0, const char* name = 0 );
982
983 virtual ~TDEFontSizeAction();
984
985 virtual int fontSize() const;
986
987public slots:
988 virtual void setFontSize( int size );
989
990protected slots:
991 virtual void slotActivated( int );
992 virtual void slotActivated( const TQString& );
993 virtual void slotActivated() { TDEAction::slotActivated(); }
994
995signals:
996 void fontSizeChanged( int );
997
998private:
999 void init();
1000
1001
1002protected:
1003 virtual void virtual_hook( int id, void* data );
1004private:
1005 class TDEFontSizeActionPrivate;
1006 TDEFontSizeActionPrivate *d;
1007};
1008
1009
1020class TDEUI_EXPORT TDEActionMenu : public TDEAction
1021{
1022 TQ_OBJECT
1023
1024 TQ_PROPERTY( bool delayed READ delayed WRITE setDelayed )
1025 TQ_PROPERTY( bool stickyMenu READ stickyMenu WRITE setStickyMenu )
1026
1027public:
1028 TDEActionMenu( const TQString& text, TQObject* parent = 0,
1029 const char* name = 0 );
1030 TDEActionMenu( const TQString& text, const TQIconSet& icon,
1031 TQObject* parent = 0, const char* name = 0 );
1032 TDEActionMenu( const TQString& text, const TQString& icon,
1033 TQObject* parent = 0, const char* name = 0 );
1034 TDEActionMenu( TQObject* parent = 0, const char* name = 0 );
1035 virtual ~TDEActionMenu();
1036
1037 virtual void insert( TDEAction*, int index = -1 );
1038 virtual void remove( TDEAction* );
1039
1040 TDEPopupMenu* 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
1080protected:
1081 virtual void virtual_hook( int id, void* data );
1082private:
1083 class TDEActionMenuPrivate;
1084 TDEActionMenuPrivate *d;
1085};
1086
1094class TDEUI_EXPORT TDEToolBarPopupAction : public TDEAction
1095{
1096 TQ_OBJECT
1097
1098 TQ_PROPERTY( bool delayed READ delayed WRITE setDelayed )
1099 TQ_PROPERTY( bool stickyMenu READ stickyMenu WRITE setStickyMenu )
1100
1101public:
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 TDEToolBarPopupAction( const TQString& text, const TQString& icon, const TDEShortcut& cut = TDEShortcut(),
1115 TQObject* parent = 0, const char* name = 0 );
1116
1132 TDEToolBarPopupAction( const TQString& text, const TQString& icon, const TDEShortcut& cut,
1133 const TQObject* receiver, const char* slot,
1134 TQObject* parent = 0, const char* name = 0 );
1135
1151 TDEToolBarPopupAction( const KGuiItem& item, const TDEShortcut& cut,
1152 const TQObject* receiver, const char* slot,
1153 TDEActionCollection* parent, const char* name );
1154
1155 virtual ~TDEToolBarPopupAction();
1156
1157 virtual int plug( TQWidget *widget, int index = -1 );
1158
1164 TDEPopupMenu *popupMenu() const;
1165
1170 bool delayed() const;
1176 void setDelayed(bool delayed);
1181 bool stickyMenu() const;
1191 void setStickyMenu(bool sticky);
1192
1193private:
1194 TDEPopupMenu *m_popup;
1195 bool m_delayed:1;
1196 bool m_stickyMenu:1;
1197protected:
1198 virtual void virtual_hook( int id, void* data );
1199private:
1200 class TDEToolBarPopupActionPrivate;
1201 TDEToolBarPopupActionPrivate *d;
1202};
1203
1217class TDEUI_EXPORT TDEToggleToolBarAction : public TDEToggleAction
1218{
1219 TQ_OBJECT
1220
1221public:
1228 TDEToggleToolBarAction( const char* toolBarName, const TQString& text,
1229 TDEActionCollection* parent, const char* name );
1230 TDEToggleToolBarAction( TDEToolBar *toolBar, const TQString &text,
1231 TDEActionCollection *parent, const char *name );
1232 virtual ~TDEToggleToolBarAction();
1233
1234 virtual int plug( TQWidget * widget, int index = -1 );
1235
1236 TDEToolBar *toolBar() { return m_toolBar; }
1237
1238public slots:
1239 virtual void setChecked( bool );
1240
1241private:
1242 TQCString m_toolBarName;
1243 TQGuardedPtr<TDEToolBar> m_toolBar;
1244protected:
1245 virtual void virtual_hook( int id, void* data );
1246private:
1247 class TDEToggleToolBarActionPrivate;
1248 TDEToggleToolBarActionPrivate *d;
1249};
1250
1264class TDEUI_EXPORT TDEToggleFullScreenAction : public TDEToggleAction
1265{
1266 TQ_OBJECT
1267
1268public:
1278 TDEToggleFullScreenAction( const TDEShortcut &cut,
1279 const TQObject* receiver, const char* slot,
1280 TQObject* parent, TQWidget* window,
1281 const char* name );
1282 virtual ~TDEToggleFullScreenAction();
1283
1287 void setWindow( TQWidget* window );
1288public slots:
1289 virtual void setChecked( bool );
1290protected:
1294 virtual bool eventFilter( TQObject* o, TQEvent* e );
1295private:
1296 TQWidget* window;
1297protected:
1298 virtual void virtual_hook( int id, void* data );
1299private:
1300 class TDEToggleFullScreenActionPrivate;
1301 TDEToggleFullScreenActionPrivate *d;
1302};
1303
1304
1309class TDEUI_EXPORT KWidgetAction : public TDEAction
1310{
1311 TQ_OBJECT
1312
1313public:
1319 KWidgetAction( TQWidget* widget, const TQString& text,
1320 const TDEShortcut& cut,
1321 const TQObject* receiver, const char* slot,
1322 TDEActionCollection* 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 );
1342protected slots:
1343 void slotToolbarDestroyed();
1344private:
1345 TQGuardedPtr<TQWidget> m_widget;
1346 bool m_autoSized;
1347protected:
1348 virtual void virtual_hook( int id, void* data );
1349private:
1350 class KWidgetActionPrivate;
1351 KWidgetActionPrivate *d;
1352};
1353
1354class TDEUI_EXPORT TDEActionSeparator : public TDEAction
1355{
1356 TQ_OBJECT
1357
1358public:
1359 TDEActionSeparator( TQObject* parent = 0, const char* name = 0 );
1360 virtual ~TDEActionSeparator();
1361
1362 virtual int plug( TQWidget *widget, int index = -1 );
1363
1364protected:
1365 virtual void virtual_hook( int id, void* data );
1366private:
1367 class TDEActionSeparatorPrivate;
1368 TDEActionSeparatorPrivate *d;
1369};
1370
1381class TDEUI_EXPORT TDEPasteTextAction: public TDEAction
1382{
1383 TQ_OBJECT
1384
1385public:
1401 TDEPasteTextAction( const TQString& text, const TQString& icon, const TDEShortcut& cut,
1402 const TQObject* receiver, const char* slot,
1403 TQObject* parent = 0, const char* name = 0 );
1404
1405 virtual ~TDEPasteTextAction();
1406
1417 void setMixedMode(bool mode);
1418
1419 virtual int plug( TQWidget *widget, int index = -1 );
1420
1421protected slots:
1422 void menuAboutToShow();
1423 void menuItemActivated( int id);
1424 virtual void slotActivated();
1425
1426protected:
1427 virtual void virtual_hook( int id, void* data );
1428
1429private:
1430 TDEPopupMenu *m_popup;
1431 bool m_mixedMode;
1432 class TDEPasteTextActionPrivate;
1433 TDEPasteTextActionPrivate *d;
1434};
1435
1436#endif
KGuiItem
An abstract class for GUI data such as ToolTip and Icon.
Definition: kguiitem.h:39
KURL
KWidgetAction
An action that automatically embeds a widget into a toolbar.
Definition: tdeactionclasses.h:1310
KWidgetAction::widget
TQWidget * widget()
Returns the widget associated with this action.
Definition: tdeactionclasses.h:1328
TDEAccel
TDEActionCollection
A managed set of TDEAction objects.
Definition: tdeactioncollection.h:79
TDEActionMenu
A TDEActionMenu is an action that holds a sub-menu of other actions.
Definition: tdeactionclasses.h:1021
TDEAction
Class to encapsulate user-driven action or event.
Definition: tdeaction.h:203
TDEAction::unplug
virtual void unplug(TQWidget *w)
"Unplug" or remove this action from a given widget.
Definition: tdeaction.cpp:745
TDEAction::toolTip
virtual TQString toolTip() const
Get the tooltip text for the action.
Definition: tdeaction.cpp:623
TDEAction::plug
virtual int plug(TQWidget *widget, int index=-1)
"Plug" or insert this action into a given widget.
Definition: tdeaction.cpp:628
TDEConfigBase
TDEConfig
TDEInstance
TDEListAction
Remove this class in KDE-4.0. It doesn't add anything to TDESelectAction.
Definition: tdeactionclasses.h:585
TDEMainWindow
KDE top level main window
Definition: tdemainwindow.h:99
TDEPasteTextAction
An action for pasting text from the clipboard.
Definition: tdeactionclasses.h:1382
TDEPopupMenu
A menu with title items.
Definition: tdepopupmenu.h:123
TDERadioAction
Radiobox like action.
Definition: tdeactionclasses.h:232
TDERecentFilesAction
Recent files action.
Definition: tdeactionclasses.h:701
TDERecentFilesAction::urlSelected
void urlSelected(const KURL &url)
This signal gets emited when the user selects an URL.
TDESelectAction
Action for selecting one of several items.
Definition: tdeactionclasses.h:332
TDESelectAction::currentText
virtual TQString currentText() const
Returns the text of the currently selected item.
Definition: tdeactionclasses.cpp:571
TDESelectAction::isShortcutConfigurable
virtual bool isShortcutConfigurable() const
Returns true if this action's shortcut is configurable.
Definition: tdeactionclasses.h:500
TDESelectAction::setCurrentItem
virtual void setCurrentItem(int index)
Sets the currently checked item.
Definition: tdeactionclasses.cpp:440
TDESelectAction::activated
void activated(const TQString &text)
This signal is emitted when an item is selected;.
TDESelectAction::currentItem
virtual int currentItem() const
Returns the index of the current item.
Definition: tdeactionclasses.cpp:579
TDESelectAction::activated
void activated(int index)
This signal is emitted when an item is selected;.
TDEShortcut
TDEToggleAction
Checkbox like action.
Definition: tdeactionclasses.h:69
TDEToggleFullScreenAction
An action for switching between to/from full screen mode.
Definition: tdeactionclasses.h:1265
TDEToggleToolBarAction
An action that takes care of everything associated with showing or hiding a toolbar by a menu action.
Definition: tdeactionclasses.h:1218
TDEToolBarPopupAction
This action is a normal action everywhere, except in a toolbar where it also has a popupmenu (optionn...
Definition: tdeactionclasses.h:1095
TDEToolBar
Floatable toolbar with auto resize.
Definition: tdetoolbar.h:105

tdeui

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

tdeui

Skip menu "tdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeui by doxygen 1.9.4
This website is maintained by Timothy Pearson.