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

tdeui

  • tdeui
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 TDEAction;
25 class TDEActionCollection;
26 class TDERecentFilesAction;
27 class TDEToggleAction;
28 class TDEToggleToolBarAction;
29 class TDEToggleFullScreenAction;
30 
31 #include <tqstringlist.h>
32 
33 #include <tdelibs_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  TDEUI_EXPORT TDEAction* create( StdAction id, const char *name,
169  const TQObject *recvr, const char *slot,
170  TDEActionCollection* parent );
171 
172  inline TDEAction* create( StdAction id,
173  const TQObject *recvr, const char *slot,
174  TDEActionCollection* parent )
175  { return KStdAction::create( id, 0, recvr, slot, parent ); }
176 
181  inline TDEAction *action(StdAction act_enum,
182  const TQObject *recvr, const char *slot,
183  TDEActionCollection *parent, const char *name = 0L )
184  { return KStdAction::create( act_enum, name, recvr, slot, parent ); }
185 
189  TDEUI_EXPORT const char* name( StdAction id );
190 
192  inline const char* stdName(StdAction act_enum) { return name( act_enum ); }
193 
199  TDEUI_EXPORT TQStringList stdNames();
200 
204  TDEUI_EXPORT TDEAction *openNew(const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name = 0 );
205 
209  TDEUI_EXPORT TDEAction *open(const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name = 0 );
210 
220  TDEUI_EXPORT TDERecentFilesAction *openRecent(const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name = 0 );
221 
225  TDEUI_EXPORT TDEAction *save(const TQObject *recvr, const char *slot,
226  TDEActionCollection* parent, const char *name = 0 );
227 
231  TDEUI_EXPORT TDEAction *saveAs(const TQObject *recvr, const char *slot,
232  TDEActionCollection* parent, const char *name = 0 );
233 
238  TDEUI_EXPORT TDEAction *revert(const TQObject *recvr, const char *slot,
239  TDEActionCollection* parent, const char *name = 0 );
240 
244  TDEUI_EXPORT TDEAction *close(const TQObject *recvr, const char *slot,
245  TDEActionCollection* parent, const char *name = 0 );
246 
250  TDEUI_EXPORT TDEAction *print(const TQObject *recvr, const char *slot,
251  TDEActionCollection* parent, const char *name = 0 );
252 
256  TDEUI_EXPORT TDEAction *printPreview(const TQObject *recvr, const char *slot,
257  TDEActionCollection* parent, const char *name = 0 );
258 
262  TDEUI_EXPORT TDEAction *mail(const TQObject *recvr, const char *slot,
263  TDEActionCollection* parent, const char *name = 0 );
264 
268  TDEUI_EXPORT TDEAction *quit(const TQObject *recvr, const char *slot,
269  TDEActionCollection* parent, const char *name = 0 );
270 
274  TDEUI_EXPORT TDEAction *undo(const TQObject *recvr, const char *slot,
275  TDEActionCollection* parent, const char *name = 0 );
276 
280  TDEUI_EXPORT TDEAction *redo(const TQObject *recvr, const char *slot,
281  TDEActionCollection* parent, const char *name = 0 );
282 
286  TDEUI_EXPORT TDEAction *cut(const TQObject *recvr, const char *slot,
287  TDEActionCollection* parent, const char *name = 0 );
288 
292  TDEUI_EXPORT TDEAction *copy(const TQObject *recvr, const char *slot,
293  TDEActionCollection* parent, const char *name = 0 );
294 
299  TDEUI_EXPORT TDEAction *paste(const TQObject *recvr, const char *slot,
300  TDEActionCollection* parent, const char *name = 0 );
301 
308  TDEUI_EXPORT TDEAction *pasteText(const TQObject *recvr, const char *slot,
309  TDEActionCollection* parent, const char *name = 0 );
310 
315  TDEUI_EXPORT TDEAction *clear(const TQObject *recvr, const char *slot,
316  TDEActionCollection* parent, const char *name = 0 );
317 
321  TDEUI_EXPORT TDEAction *selectAll(const TQObject *recvr, const char *slot,
322  TDEActionCollection* parent, const char *name = 0 );
323 
327  TDEUI_EXPORT TDEAction *deselect(const TQObject *recvr, const char *slot,
328  TDEActionCollection* parent, const char *name = 0 );
329 
333  TDEUI_EXPORT TDEAction *find(const TQObject *recvr, const char *slot,
334  TDEActionCollection* parent, const char *name = 0 );
335 
339  TDEUI_EXPORT TDEAction *findNext(const TQObject *recvr, const char *slot,
340  TDEActionCollection* parent, const char *name = 0 );
341 
345  TDEUI_EXPORT TDEAction *findPrev(const TQObject *recvr, const char *slot,
346  TDEActionCollection* parent, const char *name = 0 );
347 
351  TDEUI_EXPORT TDEAction *replace(const TQObject *recvr, const char *slot,
352  TDEActionCollection* parent, const char *name = 0 );
353 
357  TDEUI_EXPORT TDEAction *actualSize(const TQObject *recvr, const char *slot,
358  TDEActionCollection* parent, const char *name = 0 );
359 
363  TDEUI_EXPORT TDEAction *fitToPage(const TQObject *recvr, const char *slot,
364  TDEActionCollection* parent, const char *name = 0 );
365 
369  TDEUI_EXPORT TDEAction *fitToWidth(const TQObject *recvr, const char *slot,
370  TDEActionCollection* parent, const char *name = 0 );
371 
375  TDEUI_EXPORT TDEAction *fitToHeight(const TQObject *recvr, const char *slot,
376  TDEActionCollection* parent, const char *name = 0 );
377 
381  TDEUI_EXPORT TDEAction *zoomIn(const TQObject *recvr, const char *slot,
382  TDEActionCollection* parent, const char *name = 0 );
383 
387  TDEUI_EXPORT TDEAction *zoomOut(const TQObject *recvr, const char *slot,
388  TDEActionCollection* parent, const char *name = 0 );
389 
393  TDEUI_EXPORT TDEAction *zoom(const TQObject *recvr, const char *slot,
394  TDEActionCollection* parent, const char *name = 0 );
395 
399  TDEUI_EXPORT TDEAction *redisplay(const TQObject *recvr, const char *slot,
400  TDEActionCollection* parent, const char *name = 0 );
401 
405  TDEUI_EXPORT TDEAction *up(const TQObject *recvr, const char *slot,
406  TDEActionCollection* parent, const char *name = 0 );
407 
411  TDEUI_EXPORT TDEAction *back(const TQObject *recvr, const char *slot,
412  TDEActionCollection* parent, const char *name = 0 );
413 
417  TDEUI_EXPORT TDEAction *forward(const TQObject *recvr, const char *slot,
418  TDEActionCollection* parent, const char *name = 0 );
419 
423  TDEUI_EXPORT TDEAction *home(const TQObject *recvr, const char *slot,
424  TDEActionCollection* parent, const char *name = 0 );
425 
429  TDEUI_EXPORT TDEAction *prior(const TQObject *recvr, const char *slot,
430  TDEActionCollection* parent, const char *name = 0 );
431 
435  TDEUI_EXPORT TDEAction *next(const TQObject *recvr, const char *slot,
436  TDEActionCollection* parent, const char *name = 0 );
437 
441  TDEUI_EXPORT TDEAction *goTo(const TQObject *recvr, const char *slot,
442  TDEActionCollection* parent, const char *name = 0 );
443 
444 
448  TDEUI_EXPORT TDEAction *gotoPage(const TQObject *recvr, const char *slot,
449  TDEActionCollection* parent, const char *name = 0 );
450 
454  TDEUI_EXPORT TDEAction *gotoLine(const TQObject *recvr, const char *slot,
455  TDEActionCollection* parent, const char *name = 0 );
456 
460  TDEUI_EXPORT TDEAction *firstPage(const TQObject *recvr, const char *slot,
461  TDEActionCollection* parent, const char *name = 0 );
462 
466  TDEUI_EXPORT TDEAction *lastPage(const TQObject *recvr, const char *slot,
467  TDEActionCollection* parent, const char *name = 0 );
468 
472  TDEUI_EXPORT TDEAction *addBookmark(const TQObject *recvr, const char *slot,
473  TDEActionCollection* parent, const char *name = 0 );
474 
478  TDEUI_EXPORT TDEAction *editBookmarks(const TQObject *recvr, const char *slot,
479  TDEActionCollection* parent, const char *name = 0 );
480 
484  TDEUI_EXPORT TDEAction *spelling(const TQObject *recvr, const char *slot,
485  TDEActionCollection* parent, const char *name = 0 );
486 
487 
491  TDEUI_EXPORT TDEToggleAction *showMenubar(const TQObject *recvr, const char *slot,
492  TDEActionCollection* parent, const char *name = 0 );
493 
501  TDEUI_EXPORT TDEToggleAction *showToolbar(const TQObject *recvr, const char *slot,
502  TDEActionCollection* parent, const char *name = 0 ) KDE_DEPRECATED;
509  TDEUI_EXPORT TDEToggleToolBarAction *showToolbar(const char* toolBarName,
510  TDEActionCollection* parent, const char *name = 0 ) KDE_DEPRECATED;
511 
515  TDEUI_EXPORT TDEToggleAction *showStatusbar(const TQObject *recvr, const char *slot,
516  TDEActionCollection* parent, const char *name = 0 );
517 
522  TDEUI_EXPORT TDEToggleFullScreenAction *fullScreen(const TQObject *recvr, const char *slot,
523  TDEActionCollection* parent, TQWidget* window, const char *name = 0 );
524 
528  TDEUI_EXPORT TDEAction *saveOptions(const TQObject *recvr, const char *slot,
529  TDEActionCollection* parent, const char *name = 0 );
530 
537  TDEUI_EXPORT TDEAction *keyBindings(const TQObject *recvr, const char *slot,
538  TDEActionCollection* parent, const char *name = 0 );
539 
543  TDEUI_EXPORT TDEAction *preferences(const TQObject *recvr, const char *slot,
544  TDEActionCollection* parent, const char *name = 0 );
545 
549  TDEUI_EXPORT TDEAction *configureToolbars(const TQObject *recvr,
550  const char *slot,
551  TDEActionCollection* parent,
552  const char *name = 0 );
553 
558  TDEUI_EXPORT TDEAction *configureNotifications(const TQObject *recvr,
559  const char *slot,
560  TDEActionCollection *parent,
561  const char *name = 0);
562 
566  TDEUI_EXPORT TDEAction *help(const TQObject *recvr, const char *slot,
567  TDEActionCollection* parent, const char *name = 0 );
568 
572  TDEUI_EXPORT TDEAction *helpContents(const TQObject *recvr, const char *slot,
573  TDEActionCollection* parent, const char *name = 0 );
574 
578  TDEUI_EXPORT TDEAction *whatsThis(const TQObject *recvr, const char *slot,
579  TDEActionCollection* parent, const char *name = 0 );
580 
585  TDEUI_EXPORT TDEAction *tipOfDay(const TQObject *recvr, const char *slot,
586  TDEActionCollection* parent, const char *name = 0 );
587 
591  TDEUI_EXPORT TDEAction *reportBug(const TQObject *recvr, const char *slot,
592  TDEActionCollection* parent, const char *name = 0 );
593 
597  TDEUI_EXPORT TDEAction *aboutApp(const TQObject *recvr, const char *slot,
598  TDEActionCollection* parent, const char *name = 0 );
599 
603  TDEUI_EXPORT TDEAction *aboutKDE(const TQObject *recvr, const char *slot,
604  TDEActionCollection* parent, const char *name = 0 );
605 
610  TDEUI_EXPORT TDEAction *switchApplicationLanguage(const TQObject *recvr, const char *slot,
611  TDEActionCollection* parent, const char *name = 0 );
612 }
613 
614 #endif // KSTDACTION_H

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.8.1.2
This website is maintained by Timothy Pearson.