00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef KSTDACTION_H
00020 #define KSTDACTION_H
00021
00022 class QObject;
00023 class QWidget;
00024 class KAction;
00025 class KActionCollection;
00026 class KRecentFilesAction;
00027 class KToggleAction;
00028 class KToggleToolBarAction;
00029 class KToggleFullScreenAction;
00030
00031 #include <qstringlist.h>
00032
00033 #include <kdelibs_export.h>
00034
00117 namespace KStdAction
00118 {
00122 enum StdAction {
00123 ActionNone,
00124
00125
00126 New, Open, OpenRecent, Save, SaveAs, Revert, Close,
00127 Print, PrintPreview, Mail, Quit,
00128
00129
00130 Undo, Redo, Cut, Copy, Paste, SelectAll, Deselect, Find, FindNext, FindPrev,
00131 Replace,
00132
00133
00134 ActualSize, FitToPage, FitToWidth, FitToHeight, ZoomIn, ZoomOut,
00135 Zoom, Redisplay,
00136
00137
00138 Up, Back, Forward, Home, Prior, Next, Goto, GotoPage, GotoLine,
00139 FirstPage, LastPage,
00140
00141
00142 AddBookmark, EditBookmarks,
00143
00144
00145 Spelling,
00146
00147
00148 ShowMenubar, ShowToolbar, ShowStatusbar,
00149 SaveOptions, KeyBindings,
00150 Preferences, ConfigureToolbars,
00151
00152
00153 Help, HelpContents, WhatsThis, ReportBug, AboutApp, AboutKDE,
00154 TipofDay,
00155
00156
00157 ConfigureNotifications,
00158 FullScreen,
00159 Clear,
00160 PasteText
00161 };
00162
00167 KDEUI_EXPORT KAction* create( StdAction id, const char *name,
00168 const QObject *recvr, const char *slot,
00169 KActionCollection* parent );
00170
00171 inline KAction* create( StdAction id,
00172 const QObject *recvr, const char *slot,
00173 KActionCollection* parent )
00174 { return KStdAction::create( id, 0, recvr, slot, parent ); }
00175
00180 inline KAction *action(StdAction act_enum,
00181 const QObject *recvr, const char *slot,
00182 KActionCollection *parent, const char *name = 0L )
00183 { return KStdAction::create( act_enum, name, recvr, slot, parent ); }
00184
00188 KDEUI_EXPORT const char* name( StdAction id );
00189
00191 inline const char* stdName(StdAction act_enum) { return name( act_enum ); }
00192
00198 KDEUI_EXPORT QStringList stdNames();
00199
00203 KDEUI_EXPORT KAction *openNew(const QObject *recvr, const char *slot, KActionCollection* parent, const char *name = 0 );
00204
00208 KDEUI_EXPORT KAction *open(const QObject *recvr, const char *slot, KActionCollection* parent, const char *name = 0 );
00209
00219 KDEUI_EXPORT KRecentFilesAction *openRecent(const QObject *recvr, const char *slot, KActionCollection* parent, const char *name = 0 );
00220
00224 KDEUI_EXPORT KAction *save(const QObject *recvr, const char *slot,
00225 KActionCollection* parent, const char *name = 0 );
00226
00230 KDEUI_EXPORT KAction *saveAs(const QObject *recvr, const char *slot,
00231 KActionCollection* parent, const char *name = 0 );
00232
00237 KDEUI_EXPORT KAction *revert(const QObject *recvr, const char *slot,
00238 KActionCollection* parent, const char *name = 0 );
00239
00243 KDEUI_EXPORT KAction *close(const QObject *recvr, const char *slot,
00244 KActionCollection* parent, const char *name = 0 );
00245
00249 KDEUI_EXPORT KAction *print(const QObject *recvr, const char *slot,
00250 KActionCollection* parent, const char *name = 0 );
00251
00255 KDEUI_EXPORT KAction *printPreview(const QObject *recvr, const char *slot,
00256 KActionCollection* parent, const char *name = 0 );
00257
00261 KDEUI_EXPORT KAction *mail(const QObject *recvr, const char *slot,
00262 KActionCollection* parent, const char *name = 0 );
00263
00267 KDEUI_EXPORT KAction *quit(const QObject *recvr, const char *slot,
00268 KActionCollection* parent, const char *name = 0 );
00269
00273 KDEUI_EXPORT KAction *undo(const QObject *recvr, const char *slot,
00274 KActionCollection* parent, const char *name = 0 );
00275
00279 KDEUI_EXPORT KAction *redo(const QObject *recvr, const char *slot,
00280 KActionCollection* parent, const char *name = 0 );
00281
00285 KDEUI_EXPORT KAction *cut(const QObject *recvr, const char *slot,
00286 KActionCollection* parent, const char *name = 0 );
00287
00291 KDEUI_EXPORT KAction *copy(const QObject *recvr, const char *slot,
00292 KActionCollection* parent, const char *name = 0 );
00293
00298 KDEUI_EXPORT KAction *paste(const QObject *recvr, const char *slot,
00299 KActionCollection* parent, const char *name = 0 );
00300
00307 KDEUI_EXPORT KAction *pasteText(const QObject *recvr, const char *slot,
00308 KActionCollection* parent, const char *name = 0 );
00309
00314 KDEUI_EXPORT KAction *clear(const QObject *recvr, const char *slot,
00315 KActionCollection* parent, const char *name = 0 );
00316
00320 KDEUI_EXPORT KAction *selectAll(const QObject *recvr, const char *slot,
00321 KActionCollection* parent, const char *name = 0 );
00322
00326 KDEUI_EXPORT KAction *deselect(const QObject *recvr, const char *slot,
00327 KActionCollection* parent, const char *name = 0 );
00328
00332 KDEUI_EXPORT KAction *find(const QObject *recvr, const char *slot,
00333 KActionCollection* parent, const char *name = 0 );
00334
00338 KDEUI_EXPORT KAction *findNext(const QObject *recvr, const char *slot,
00339 KActionCollection* parent, const char *name = 0 );
00340
00344 KDEUI_EXPORT KAction *findPrev(const QObject *recvr, const char *slot,
00345 KActionCollection* parent, const char *name = 0 );
00346
00350 KDEUI_EXPORT KAction *replace(const QObject *recvr, const char *slot,
00351 KActionCollection* parent, const char *name = 0 );
00352
00356 KDEUI_EXPORT KAction *actualSize(const QObject *recvr, const char *slot,
00357 KActionCollection* parent, const char *name = 0 );
00358
00362 KDEUI_EXPORT KAction *fitToPage(const QObject *recvr, const char *slot,
00363 KActionCollection* parent, const char *name = 0 );
00364
00368 KDEUI_EXPORT KAction *fitToWidth(const QObject *recvr, const char *slot,
00369 KActionCollection* parent, const char *name = 0 );
00370
00374 KDEUI_EXPORT KAction *fitToHeight(const QObject *recvr, const char *slot,
00375 KActionCollection* parent, const char *name = 0 );
00376
00380 KDEUI_EXPORT KAction *zoomIn(const QObject *recvr, const char *slot,
00381 KActionCollection* parent, const char *name = 0 );
00382
00386 KDEUI_EXPORT KAction *zoomOut(const QObject *recvr, const char *slot,
00387 KActionCollection* parent, const char *name = 0 );
00388
00392 KDEUI_EXPORT KAction *zoom(const QObject *recvr, const char *slot,
00393 KActionCollection* parent, const char *name = 0 );
00394
00398 KDEUI_EXPORT KAction *redisplay(const QObject *recvr, const char *slot,
00399 KActionCollection* parent, const char *name = 0 );
00400
00404 KDEUI_EXPORT KAction *up(const QObject *recvr, const char *slot,
00405 KActionCollection* parent, const char *name = 0 );
00406
00410 KDEUI_EXPORT KAction *back(const QObject *recvr, const char *slot,
00411 KActionCollection* parent, const char *name = 0 );
00412
00416 KDEUI_EXPORT KAction *forward(const QObject *recvr, const char *slot,
00417 KActionCollection* parent, const char *name = 0 );
00418
00422 KDEUI_EXPORT KAction *home(const QObject *recvr, const char *slot,
00423 KActionCollection* parent, const char *name = 0 );
00424
00428 KDEUI_EXPORT KAction *prior(const QObject *recvr, const char *slot,
00429 KActionCollection* parent, const char *name = 0 );
00430
00434 KDEUI_EXPORT KAction *next(const QObject *recvr, const char *slot,
00435 KActionCollection* parent, const char *name = 0 );
00436
00440 KDEUI_EXPORT KAction *goTo(const QObject *recvr, const char *slot,
00441 KActionCollection* parent, const char *name = 0 );
00442
00443
00447 KDEUI_EXPORT KAction *gotoPage(const QObject *recvr, const char *slot,
00448 KActionCollection* parent, const char *name = 0 );
00449
00453 KDEUI_EXPORT KAction *gotoLine(const QObject *recvr, const char *slot,
00454 KActionCollection* parent, const char *name = 0 );
00455
00459 KDEUI_EXPORT KAction *firstPage(const QObject *recvr, const char *slot,
00460 KActionCollection* parent, const char *name = 0 );
00461
00465 KDEUI_EXPORT KAction *lastPage(const QObject *recvr, const char *slot,
00466 KActionCollection* parent, const char *name = 0 );
00467
00471 KDEUI_EXPORT KAction *addBookmark(const QObject *recvr, const char *slot,
00472 KActionCollection* parent, const char *name = 0 );
00473
00477 KDEUI_EXPORT KAction *editBookmarks(const QObject *recvr, const char *slot,
00478 KActionCollection* parent, const char *name = 0 );
00479
00483 KDEUI_EXPORT KAction *spelling(const QObject *recvr, const char *slot,
00484 KActionCollection* parent, const char *name = 0 );
00485
00486
00490 KDEUI_EXPORT KToggleAction *showMenubar(const QObject *recvr, const char *slot,
00491 KActionCollection* parent, const char *name = 0 );
00492
00500 KDEUI_EXPORT KToggleAction *showToolbar(const QObject *recvr, const char *slot,
00501 KActionCollection* parent, const char *name = 0 ) KDE_DEPRECATED;
00508 KDEUI_EXPORT KToggleToolBarAction *showToolbar(const char* toolBarName,
00509 KActionCollection* parent, const char *name = 0 ) KDE_DEPRECATED;
00510
00514 KDEUI_EXPORT KToggleAction *showStatusbar(const QObject *recvr, const char *slot,
00515 KActionCollection* parent, const char *name = 0 );
00516
00521 KDEUI_EXPORT KToggleFullScreenAction *fullScreen(const QObject *recvr, const char *slot,
00522 KActionCollection* parent, QWidget* window, const char *name = 0 );
00523
00527 KDEUI_EXPORT KAction *saveOptions(const QObject *recvr, const char *slot,
00528 KActionCollection* parent, const char *name = 0 );
00529
00536 KDEUI_EXPORT KAction *keyBindings(const QObject *recvr, const char *slot,
00537 KActionCollection* parent, const char *name = 0 );
00538
00542 KDEUI_EXPORT KAction *preferences(const QObject *recvr, const char *slot,
00543 KActionCollection* parent, const char *name = 0 );
00544
00548 KDEUI_EXPORT KAction *configureToolbars(const QObject *recvr,
00549 const char *slot,
00550 KActionCollection* parent,
00551 const char *name = 0 );
00552
00557 KDEUI_EXPORT KAction *configureNotifications(const QObject *recvr,
00558 const char *slot,
00559 KActionCollection *parent,
00560 const char *name = 0);
00561
00565 KDEUI_EXPORT KAction *help(const QObject *recvr, const char *slot,
00566 KActionCollection* parent, const char *name = 0 );
00567
00571 KDEUI_EXPORT KAction *helpContents(const QObject *recvr, const char *slot,
00572 KActionCollection* parent, const char *name = 0 );
00573
00577 KDEUI_EXPORT KAction *whatsThis(const QObject *recvr, const char *slot,
00578 KActionCollection* parent, const char *name = 0 );
00579
00584 KDEUI_EXPORT KAction *tipOfDay(const QObject *recvr, const char *slot,
00585 KActionCollection* parent, const char *name = 0 );
00586
00590 KDEUI_EXPORT KAction *reportBug(const QObject *recvr, const char *slot,
00591 KActionCollection* parent, const char *name = 0 );
00592
00596 KDEUI_EXPORT KAction *aboutApp(const QObject *recvr, const char *slot,
00597 KActionCollection* parent, const char *name = 0 );
00598
00602 KDEUI_EXPORT KAction *aboutKDE(const QObject *recvr, const char *slot,
00603 KActionCollection* parent, const char *name = 0 );
00604 }
00605
00606 #endif // KSTDACTION_H