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

kdeui

  • kdeui
kstdaction.h
1 /* This file is part of the KDE libraries
2  Copyright (C) 1999,2000 Kurt Granroth <granroth@kde.org>
3  Copyright (C) 2001,2002 Ellis Whitehead <ellis@kde.org>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License version 2 as published by the Free Software Foundation.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 #ifndef KSTDACTION_H
20 #define KSTDACTION_H
21 
22 class TQObject;
23 class TQWidget;
24 class KAction;
25 class KActionCollection;
26 class KRecentFilesAction;
27 class KToggleAction;
28 class KToggleToolBarAction;
29 class KToggleFullScreenAction;
30 
31 #include <tqstringlist.h>
32 
33 #include <kdelibs_export.h>
34 
117 namespace KStdAction
118 {
122  enum StdAction {
123  ActionNone,
124 
125  // File Menu
126  New, Open, OpenRecent, Save, SaveAs, Revert, Close,
127  Print, PrintPreview, Mail, Quit,
128 
129  // Edit Menu
130  Undo, Redo, Cut, Copy, Paste, SelectAll, Deselect, Find, FindNext, FindPrev,
131  Replace,
132 
133  // View Menu
134  ActualSize, FitToPage, FitToWidth, FitToHeight, ZoomIn, ZoomOut,
135  Zoom, Redisplay,
136 
137  // Go Menu
138  Up, Back, Forward, Home, Prior, Next, Goto, GotoPage, GotoLine,
139  FirstPage, LastPage,
140 
141  // Bookmarks Menu
142  AddBookmark, EditBookmarks,
143 
144  // Tools Menu
145  Spelling,
146 
147  // Settings Menu
148  ShowMenubar, ShowToolbar, ShowStatusbar,
149  SaveOptions, KeyBindings,
150  Preferences, ConfigureToolbars,
151 
152  // Help Menu
153  Help, HelpContents, WhatsThis, ReportBug, AboutApp, AboutKDE,
154  TipofDay,
155 
156  // Another settings menu item
157  ConfigureNotifications,
158  FullScreen,
159  Clear,
160  PasteText,
161  SwitchApplicationLanguage
162  };
163 
168  KDEUI_EXPORT KAction* create( StdAction id, const char *name,
169  const TQObject *recvr, const char *slot,
170  KActionCollection* parent );
171 
172  inline KAction* create( StdAction id,
173  const TQObject *recvr, const char *slot,
174  KActionCollection* parent )
175  { return KStdAction::create( id, 0, recvr, slot, parent ); }
176 
181  inline KAction *action(StdAction act_enum,
182  const TQObject *recvr, const char *slot,
183  KActionCollection *parent, const char *name = 0L )
184  { return KStdAction::create( act_enum, name, recvr, slot, parent ); }
185 
189  KDEUI_EXPORT const char* name( StdAction id );
190 
192  inline const char* stdName(StdAction act_enum) { return name( act_enum ); }
193 
199  KDEUI_EXPORT TQStringList stdNames();
200 
204  KDEUI_EXPORT KAction *openNew(const TQObject *recvr, const char *slot, KActionCollection* parent, const char *name = 0 );
205 
209  KDEUI_EXPORT KAction *open(const TQObject *recvr, const char *slot, KActionCollection* parent, const char *name = 0 );
210 
220  KDEUI_EXPORT KRecentFilesAction *openRecent(const TQObject *recvr, const char *slot, KActionCollection* parent, const char *name = 0 );
221 
225  KDEUI_EXPORT KAction *save(const TQObject *recvr, const char *slot,
226  KActionCollection* parent, const char *name = 0 );
227 
231  KDEUI_EXPORT KAction *saveAs(const TQObject *recvr, const char *slot,
232  KActionCollection* parent, const char *name = 0 );
233 
238  KDEUI_EXPORT KAction *revert(const TQObject *recvr, const char *slot,
239  KActionCollection* parent, const char *name = 0 );
240 
244  KDEUI_EXPORT KAction *close(const TQObject *recvr, const char *slot,
245  KActionCollection* parent, const char *name = 0 );
246 
250  KDEUI_EXPORT KAction *print(const TQObject *recvr, const char *slot,
251  KActionCollection* parent, const char *name = 0 );
252 
256  KDEUI_EXPORT KAction *printPreview(const TQObject *recvr, const char *slot,
257  KActionCollection* parent, const char *name = 0 );
258 
262  KDEUI_EXPORT KAction *mail(const TQObject *recvr, const char *slot,
263  KActionCollection* parent, const char *name = 0 );
264 
268  KDEUI_EXPORT KAction *quit(const TQObject *recvr, const char *slot,
269  KActionCollection* parent, const char *name = 0 );
270 
274  KDEUI_EXPORT KAction *undo(const TQObject *recvr, const char *slot,
275  KActionCollection* parent, const char *name = 0 );
276 
280  KDEUI_EXPORT KAction *redo(const TQObject *recvr, const char *slot,
281  KActionCollection* parent, const char *name = 0 );
282 
286  KDEUI_EXPORT KAction *cut(const TQObject *recvr, const char *slot,
287  KActionCollection* parent, const char *name = 0 );
288 
292  KDEUI_EXPORT KAction *copy(const TQObject *recvr, const char *slot,
293  KActionCollection* parent, const char *name = 0 );
294 
299  KDEUI_EXPORT KAction *paste(const TQObject *recvr, const char *slot,
300  KActionCollection* parent, const char *name = 0 );
301 
308  KDEUI_EXPORT KAction *pasteText(const TQObject *recvr, const char *slot,
309  KActionCollection* parent, const char *name = 0 );
310 
315  KDEUI_EXPORT KAction *clear(const TQObject *recvr, const char *slot,
316  KActionCollection* parent, const char *name = 0 );
317 
321  KDEUI_EXPORT KAction *selectAll(const TQObject *recvr, const char *slot,
322  KActionCollection* parent, const char *name = 0 );
323 
327  KDEUI_EXPORT KAction *deselect(const TQObject *recvr, const char *slot,
328  KActionCollection* parent, const char *name = 0 );
329 
333  KDEUI_EXPORT KAction *find(const TQObject *recvr, const char *slot,
334  KActionCollection* parent, const char *name = 0 );
335 
339  KDEUI_EXPORT KAction *findNext(const TQObject *recvr, const char *slot,
340  KActionCollection* parent, const char *name = 0 );
341 
345  KDEUI_EXPORT KAction *findPrev(const TQObject *recvr, const char *slot,
346  KActionCollection* parent, const char *name = 0 );
347 
351  KDEUI_EXPORT KAction *replace(const TQObject *recvr, const char *slot,
352  KActionCollection* parent, const char *name = 0 );
353 
357  KDEUI_EXPORT KAction *actualSize(const TQObject *recvr, const char *slot,
358  KActionCollection* parent, const char *name = 0 );
359 
363  KDEUI_EXPORT KAction *fitToPage(const TQObject *recvr, const char *slot,
364  KActionCollection* parent, const char *name = 0 );
365 
369  KDEUI_EXPORT KAction *fitToWidth(const TQObject *recvr, const char *slot,
370  KActionCollection* parent, const char *name = 0 );
371 
375  KDEUI_EXPORT KAction *fitToHeight(const TQObject *recvr, const char *slot,
376  KActionCollection* parent, const char *name = 0 );
377 
381  KDEUI_EXPORT KAction *zoomIn(const TQObject *recvr, const char *slot,
382  KActionCollection* parent, const char *name = 0 );
383 
387  KDEUI_EXPORT KAction *zoomOut(const TQObject *recvr, const char *slot,
388  KActionCollection* parent, const char *name = 0 );
389 
393  KDEUI_EXPORT KAction *zoom(const TQObject *recvr, const char *slot,
394  KActionCollection* parent, const char *name = 0 );
395 
399  KDEUI_EXPORT KAction *redisplay(const TQObject *recvr, const char *slot,
400  KActionCollection* parent, const char *name = 0 );
401 
405  KDEUI_EXPORT KAction *up(const TQObject *recvr, const char *slot,
406  KActionCollection* parent, const char *name = 0 );
407 
411  KDEUI_EXPORT KAction *back(const TQObject *recvr, const char *slot,
412  KActionCollection* parent, const char *name = 0 );
413 
417  KDEUI_EXPORT KAction *forward(const TQObject *recvr, const char *slot,
418  KActionCollection* parent, const char *name = 0 );
419 
423  KDEUI_EXPORT KAction *home(const TQObject *recvr, const char *slot,
424  KActionCollection* parent, const char *name = 0 );
425 
429  KDEUI_EXPORT KAction *prior(const TQObject *recvr, const char *slot,
430  KActionCollection* parent, const char *name = 0 );
431 
435  KDEUI_EXPORT KAction *next(const TQObject *recvr, const char *slot,
436  KActionCollection* parent, const char *name = 0 );
437 
441  KDEUI_EXPORT KAction *goTo(const TQObject *recvr, const char *slot,
442  KActionCollection* parent, const char *name = 0 );
443 
444 
448  KDEUI_EXPORT KAction *gotoPage(const TQObject *recvr, const char *slot,
449  KActionCollection* parent, const char *name = 0 );
450 
454  KDEUI_EXPORT KAction *gotoLine(const TQObject *recvr, const char *slot,
455  KActionCollection* parent, const char *name = 0 );
456 
460  KDEUI_EXPORT KAction *firstPage(const TQObject *recvr, const char *slot,
461  KActionCollection* parent, const char *name = 0 );
462 
466  KDEUI_EXPORT KAction *lastPage(const TQObject *recvr, const char *slot,
467  KActionCollection* parent, const char *name = 0 );
468 
472  KDEUI_EXPORT KAction *addBookmark(const TQObject *recvr, const char *slot,
473  KActionCollection* parent, const char *name = 0 );
474 
478  KDEUI_EXPORT KAction *editBookmarks(const TQObject *recvr, const char *slot,
479  KActionCollection* parent, const char *name = 0 );
480 
484  KDEUI_EXPORT KAction *spelling(const TQObject *recvr, const char *slot,
485  KActionCollection* parent, const char *name = 0 );
486 
487 
491  KDEUI_EXPORT KToggleAction *showMenubar(const TQObject *recvr, const char *slot,
492  KActionCollection* parent, const char *name = 0 );
493 
501  KDEUI_EXPORT KToggleAction *showToolbar(const TQObject *recvr, const char *slot,
502  KActionCollection* parent, const char *name = 0 ) KDE_DEPRECATED;
509  KDEUI_EXPORT KToggleToolBarAction *showToolbar(const char* toolBarName,
510  KActionCollection* parent, const char *name = 0 ) KDE_DEPRECATED;
511 
515  KDEUI_EXPORT KToggleAction *showStatusbar(const TQObject *recvr, const char *slot,
516  KActionCollection* parent, const char *name = 0 );
517 
522  KDEUI_EXPORT KToggleFullScreenAction *fullScreen(const TQObject *recvr, const char *slot,
523  KActionCollection* parent, TQWidget* window, const char *name = 0 );
524 
528  KDEUI_EXPORT KAction *saveOptions(const TQObject *recvr, const char *slot,
529  KActionCollection* parent, const char *name = 0 );
530 
537  KDEUI_EXPORT KAction *keyBindings(const TQObject *recvr, const char *slot,
538  KActionCollection* parent, const char *name = 0 );
539 
543  KDEUI_EXPORT KAction *preferences(const TQObject *recvr, const char *slot,
544  KActionCollection* parent, const char *name = 0 );
545 
549  KDEUI_EXPORT KAction *configureToolbars(const TQObject *recvr,
550  const char *slot,
551  KActionCollection* parent,
552  const char *name = 0 );
553 
558  KDEUI_EXPORT KAction *configureNotifications(const TQObject *recvr,
559  const char *slot,
560  KActionCollection *parent,
561  const char *name = 0);
562 
566  KDEUI_EXPORT KAction *help(const TQObject *recvr, const char *slot,
567  KActionCollection* parent, const char *name = 0 );
568 
572  KDEUI_EXPORT KAction *helpContents(const TQObject *recvr, const char *slot,
573  KActionCollection* parent, const char *name = 0 );
574 
578  KDEUI_EXPORT KAction *whatsThis(const TQObject *recvr, const char *slot,
579  KActionCollection* parent, const char *name = 0 );
580 
585  KDEUI_EXPORT KAction *tipOfDay(const TQObject *recvr, const char *slot,
586  KActionCollection* parent, const char *name = 0 );
587 
591  KDEUI_EXPORT KAction *reportBug(const TQObject *recvr, const char *slot,
592  KActionCollection* parent, const char *name = 0 );
593 
597  KDEUI_EXPORT KAction *aboutApp(const TQObject *recvr, const char *slot,
598  KActionCollection* parent, const char *name = 0 );
599 
603  KDEUI_EXPORT KAction *aboutKDE(const TQObject *recvr, const char *slot,
604  KActionCollection* parent, const char *name = 0 );
605 
610  KDEUI_EXPORT KAction *switchApplicationLanguage(const TQObject *recvr, const char *slot,
611  KActionCollection* parent, const char *name = 0 );
612 }
613 
614 #endif // KSTDACTION_H

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.8.3.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |