| # kdeui Library API Documentation
Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Namespaces | Source Files

# KStdAction Namespace Reference

Convenience methods to access all standard KDE actions. More...

## Enumerations
enum | StdAction { ActionNone, New, Open, OpenRecent, Save, SaveAs, Revert, Close, Print, PrintPreview, Mail, Quit, Undo, Redo, Cut, Copy, Paste, SelectAll, Deselect, Find, FindNext, FindPrev, Replace, ActualSize, FitToPage, FitToWidth, FitToHeight, ZoomIn, ZoomOut, Zoom, Redisplay, Up, Back, Forward, Home, Prior, Next, Goto, GotoPage, GotoLine, FirstPage, LastPage, AddBookmark, EditBookmarks, Spelling, ShowMenubar, ShowToolbar, ShowStatusbar, SaveOptions, KeyBindings, Preferences, ConfigureToolbars, Help, HelpContents, WhatsThis, ReportBug, AboutApp, AboutKDE, TipofDay, ConfigureNotifications, FullScreen, Clear, PasteText }
## Functions
QStringList | stdNames ()
KAction * | create (StdAction id, const char *name, const QObject *recvr, const char *slot, KActionCollection *parent)
const char * | name (StdAction id)
KAction * | openNew (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | open (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KRecentFilesAction * | openRecent (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | save (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | saveAs (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | revert (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | print (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | printPreview (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | close (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | mail (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | quit (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | undo (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | redo (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | cut (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | copy (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | paste (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | pasteText (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | clear (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | selectAll (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | deselect (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | find (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | findNext (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | findPrev (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | replace (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | actualSize (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | fitToPage (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | fitToWidth (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | fitToHeight (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | zoomIn (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | zoomOut (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | zoom (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | redisplay (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | up (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | back (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | forward (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | home (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | prior (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | next (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | goTo (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | gotoPage (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | gotoLine (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | firstPage (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | lastPage (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | addBookmark (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | editBookmarks (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | spelling (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KToggleAction * | showMenubar (const QObject *recvr, const char *slot, KActionCollection *parent, const char *_name)
KToggleAction * | showToolbar (const QObject *recvr, const char *slot, KActionCollection *parent, const char *_name)
KToggleToolBarAction * | showToolbar (const char *toolBarName, KActionCollection *parent, const char *_name)
KToggleAction * | showStatusbar (const QObject *recvr, const char *slot, KActionCollection *parent, const char *_name)
KToggleFullScreenAction * | fullScreen (const QObject *recvr, const char *slot, KActionCollection *parent, QWidget *window, const char *name)
KAction * | saveOptions (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | keyBindings (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | preferences (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | configureToolbars (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | configureNotifications (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | help (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | helpContents (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | whatsThis (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | tipOfDay (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | reportBug (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | aboutApp (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | aboutKDE (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
KAction * | create (StdAction id, const QObject *recvr, const char *slot, KActionCollection *parent)
KAction * | action (StdAction act_enum, const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0L)
const char * | stdName (StdAction act_enum)

## Detailed Description

Convenience methods to access all standard KDE actions.

These actions should be used instead of hardcoding menubar and toolbar items. Using these actions helps your application easily conform to the KDE UI Style Guide

See also:
  http://developer.kde.org/documentation/standards/kde/style/basics/index.html .

All of the documentation for KAction holds for KStdAction also. When in doubt on how things work, check the KAction documention first.

Simple Example:

In general, using standard actions should be a drop in replacement for regular actions. For example, if you previously had:

     KAction *newAct = new KAction(i18n("&New"), QIconSet(BarIcon("filenew")),
                                   KStdAccel::shortcut(KStdAccel::New), this,
                                   SLOT(fileNew()), actionCollection());

You could drop that and replace it with:

     KAction *newAct = KStdAction::openNew(this, SLOT(fileNew()),
                                           actionCollection());

Non-standard Usages

It is possible to use the standard actions in various non-recommended ways. Say, for instance, you wanted to have a standard action (with the associated correct text and icon and accelerator, etc) but you didn't want it to go in the standard place (this is not recommended, by the way). One way to do this is to simply not use the XML UI framework and plug it into wherever you want. If you do want to use the XML UI framework (good!), then it is still possible.

Basically, the XML building code matches names in the XML code with the internal names of the actions. You can find out the internal names of each of the standard actions by using the stdName action like so: KStdAction::stdName(KStdAction::Cut) would return 'edit_cut'. The XML building code will match 'edit_cut' to the attribute in the global XML file and place your action there.

However, you can change the internal name. In this example, just do something like:

     (void)KStdAction::cut(this, SLOT(editCut()), actionCollection(), "my_cut");

Now, in your local XML resource file (e.g., yourappui.rc), simply put 'my_cut' where you want it to go.

Another non-standard usage concerns getting a pointer to an existing action if, say, you want to enable or disable the action. You could do it the recommended way and just grab a pointer when you instantiate it as in the the 'openNew' example above... or you could do it the hard way:

     KAction *cut = actionCollection()->action(KStdAction::stdName(KStdAction::Cut));

Another non-standard usage concerns instantiating the action in the first place. Usually, you would use the member functions as shown above (e.g., KStdAction::cut(this, SLOT, parent)). You may, however, do this using the enums provided. This author can't think of a reason why you would want to, but, hey, if you do, here's how:

     (void)KStdAction::action(KStdAction::New, this, SLOT(fileNew()), actionCollection());
     (void)KStdAction::action(KStdAction::Cut, this, SLOT(editCut()), actionCollection());

Author:
  Kurt Granroth <granroth@kde.org>

## Enumeration Type Documentation

enum KStdAction::StdAction

  | The standard menubar and toolbar actions. Enumeration values:
  TipofDay | Since: 3.1
  FullScreen | Since: 3.2
  Clear | Since: 3.2
  PasteText | Since: 3.2
Definition at line 122 of file kstdaction.h.

## Function Documentation

KDEUI_EXPORT QStringList KStdAction::stdNames | ( |  | ) |

| Returns a list of all standard names. Used by KAccelManager to give those heigher weight. Since: 3.1 Definition at line 38 of file kstdaction.cpp.

KDEUI_EXPORT KAction * KStdAction::create | ( | StdAction | id,
|  | const char * | name,
|  | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent
| ) |

| Creates an action corresponding to the KStdAction::StdAction enum. Definition at line 43 of file kstdaction.cpp. References KInstance::aboutData(), QString::arg(), endl(), QString::fromLatin1(), KGlobal::instance(), kdDebug(), PasteText, KAboutData::programName(), KToggleFullScreenAction::setChecked(), KToggleAction::setChecked(), and KStdAccel::shortcut(). Referenced by aboutApp(), aboutKDE(), action(), actualSize(), addBookmark(), back(), clear(), close(), configureNotifications(), configureToolbars(), copy(), cut(), deselect(), editBookmarks(), find(), findNext(), findPrev(), firstPage(), fitToHeight(), fitToPage(), fitToWidth(), forward(), fullScreen(), goTo(), gotoLine(), gotoPage(), help(), helpContents(), home(), keyBindings(), lastPage(), mail(), next(), open(), openNew(), openRecent(), paste(), pasteText(), preferences(), print(), printPreview(), prior(), quit(), redisplay(), redo(), replace(), reportBug(), revert(), save(), saveAs(), saveOptions(), selectAll(), spelling(), tipOfDay(), undo(), up(), whatsThis(), zoom(), zoomIn(), and zoomOut().

KDEUI_EXPORT const char * KStdAction::name | ( | StdAction | id | ) |

| This will return the internal name of a given standard action. Definition at line 134 of file kstdaction.cpp. Referenced by showMenubar(), showStatusbar(), showToolbar(), and stdName().

KDEUI_EXPORT KAction * KStdAction::openNew | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Create a new document or window. Definition at line 140 of file kstdaction.cpp. References create().

KDEUI_EXPORT KAction * KStdAction::open | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Open an existing file. Definition at line 142 of file kstdaction.cpp. References create().

KDEUI_EXPORT KRecentFilesAction * KStdAction::openRecent | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

  | Open a recently used document. The signature of the slot being called is of the form slotURLSelected( const KURL & ). Parameters:
  | recvr | object to receive slot
  | slot | The SLOT to invoke when a URL is selected. The slot's signature is slotURLSelected( const KURL & ).
  | parent | parent widget
  | name | name of widget
Definition at line 144 of file kstdaction.cpp. References create().

KDEUI_EXPORT KAction * KStdAction::save | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Save the current document. Definition at line 146 of file kstdaction.cpp. References create().

KDEUI_EXPORT KAction * KStdAction::saveAs | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Save the current document under a different name. Definition at line 148 of file kstdaction.cpp. References create().

KDEUI_EXPORT KAction * KStdAction::revert | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Revert the current document to the last saved version (essentially will undo all changes). Definition at line 150 of file kstdaction.cpp. References create().

KDEUI_EXPORT KAction * KStdAction::print | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Print the current document. Definition at line 152 of file kstdaction.cpp. References create().

KDEUI_EXPORT KAction * KStdAction::printPreview | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Show a print preview of the current document. Definition at line 154 of file kstdaction.cpp. References create().

KDEUI_EXPORT KAction * KStdAction::close | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Close the current document. Definition at line 156 of file kstdaction.cpp. References create().

KDEUI_EXPORT KAction * KStdAction::mail | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Mail this document. Definition at line 158 of file kstdaction.cpp. References create().

KDEUI_EXPORT KAction * KStdAction::quit | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Quit the program. Definition at line 160 of file kstdaction.cpp. References create(). Referenced by KSystemTray::KSystemTray().

KDEUI_EXPORT KAction * KStdAction::undo | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Undo the last operation. Definition at line 162 of file kstdaction.cpp. References create(). Referenced by KCommandHistory::KCommandHistory().

KDEUI_EXPORT KAction * KStdAction::redo | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Redo the last operation. Definition at line 164 of file kstdaction.cpp. References create(). Referenced by KCommandHistory::KCommandHistory().

KDEUI_EXPORT KAction * KStdAction::cut | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Cut selected area and store it in the clipboard. Definition at line 166 of file kstdaction.cpp. References create().

KDEUI_EXPORT KAction * KStdAction::copy | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Copy the selected area into the clipboard. Definition at line 168 of file kstdaction.cpp. References create().

KDEUI_EXPORT KAction * KStdAction::paste | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Paste the contents of clipboard at the current mouse or cursor position. Definition at line 170 of file kstdaction.cpp. References create().

KDEUI_EXPORT KAction * KStdAction::pasteText | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Paste the contents of clipboard at the current mouse or cursor position. Provide a button on the toolbar with the clipboard history menu if Klipper is running. Since: 3.2 Definition at line 172 of file kstdaction.cpp. References create(), and PasteText.

KDEUI_EXPORT KAction * KStdAction::clear | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Clear the content of the focus widget Since: 3.2. Definition at line 174 of file kstdaction.cpp. References Clear, and create().

KDEUI_EXPORT KAction * KStdAction::selectAll | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Select all elements in the current document. Definition at line 176 of file kstdaction.cpp. References create().

KDEUI_EXPORT KAction * KStdAction::deselect | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Deselect any selected elements in the current document. Definition at line 178 of file kstdaction.cpp. References create().

KDEUI_EXPORT KAction * KStdAction::find | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Initiate a 'find' request in the current document. Definition at line 180 of file kstdaction.cpp. References create().

KDEUI_EXPORT KAction * KStdAction::findNext | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Find the next instance of a stored 'find'. Definition at line 182 of file kstdaction.cpp. References create().

KDEUI_EXPORT KAction * KStdAction::findPrev | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Find a previous instance of a stored 'find'. Definition at line 184 of file kstdaction.cpp. References create().

KDEUI_EXPORT KAction * KStdAction::replace | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Find and replace matches. Definition at line 186 of file kstdaction.cpp. References create().

KDEUI_EXPORT KAction * KStdAction::actualSize | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| View the document at its actual size. Definition at line 188 of file kstdaction.cpp. References create().

KDEUI_EXPORT KAction * KStdAction::fitToPage | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Fit the document view to the size of the current window. Definition at line 190 of file kstdaction.cpp. References create().

KDEUI_EXPORT KAction * KStdAction::fitToWidth | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Fit the document view to the width of the current window. Definition at line 192 of file kstdaction.cpp. References create().

KDEUI_EXPORT KAction * KStdAction::fitToHeight | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Fit the document view to the height of the current window. Definition at line 194 of file kstdaction.cpp. References create().

KDEUI_EXPORT KAction * KStdAction::zoomIn | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Zoom in. Definition at line 196 of file kstdaction.cpp. References create().

KDEUI_EXPORT KAction * KStdAction::zoomOut | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Zoom out. Definition at line 198 of file kstdaction.cpp. References create().

KDEUI_EXPORT KAction * KStdAction::zoom | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Popup a zoom dialog. Definition at line 200 of file kstdaction.cpp. References create().

KDEUI_EXPORT KAction * KStdAction::redisplay | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Redisplay or redraw the document. Definition at line 202 of file kstdaction.cpp. References create().

KDEUI_EXPORT KAction * KStdAction::up | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Move up (web style menu). Definition at line 204 of file kstdaction.cpp. References create().

KDEUI_EXPORT KAction * KStdAction::back | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Move back (web style menu). Definition at line 206 of file kstdaction.cpp. References create().

KDEUI_EXPORT KAction * KStdAction::forward | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Move forward (web style menu). Definition at line 208 of file kstdaction.cpp. References create().

KDEUI_EXPORT KAction * KStdAction::home | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Go to the "Home" position or document. Definition at line 210 of file kstdaction.cpp. References create().

KDEUI_EXPORT KAction * KStdAction::prior | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Scroll up one page. Definition at line 212 of file kstdaction.cpp. References create().

KDEUI_EXPORT KAction * KStdAction::next | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Scroll down one page. Definition at line 214 of file kstdaction.cpp. References create().

KDEUI_EXPORT KAction * KStdAction::goTo | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Go to somewhere in general. Definition at line 216 of file kstdaction.cpp. References create().

KDEUI_EXPORT KAction * KStdAction::gotoPage | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Go to a specific page (dialog). Definition at line 218 of file kstdaction.cpp. References create().

KDEUI_EXPORT KAction * KStdAction::gotoLine | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Go to a specific line (dialog). Definition at line 220 of file kstdaction.cpp. References create().

KDEUI_EXPORT KAction * KStdAction::firstPage | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Jump to the first page. Definition at line 222 of file kstdaction.cpp. References create().

KDEUI_EXPORT KAction * KStdAction::lastPage | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Jump to the last page. Definition at line 224 of file kstdaction.cpp. References create().

KDEUI_EXPORT KAction * KStdAction::addBookmark | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Add the current page to the bookmarks tree. Definition at line 226 of file kstdaction.cpp. References create().

KDEUI_EXPORT KAction * KStdAction::editBookmarks | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Edit the application bookmarks. Definition at line 228 of file kstdaction.cpp. References create().

KDEUI_EXPORT KAction * KStdAction::spelling | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Pop up the spell checker. Definition at line 230 of file kstdaction.cpp. References create().

KDEUI_EXPORT KToggleAction * KStdAction::showMenubar | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Show/Hide the menubar. Definition at line 233 of file kstdaction.cpp. References name(), KToggleAction::setChecked(), KToggleAction::setCheckedState(), and KAction::setWhatsThis().

KDEUI_EXPORT KToggleAction * KStdAction::showToolbar | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Deprecated: . toolbar actions are created automatically now in the Settings menu. Don't use this anymore. See: KMainWindow::createStandardStatusBarAction() Show/Hide the primary toolbar. Since: 3.1 Definition at line 249 of file kstdaction.cpp. References name(), and KToggleAction::setChecked().

KDEUI_EXPORT KToggleToolBarAction * KStdAction::showToolbar | ( | const char * | toolBarName,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Deprecated: . toolbar actions are created automatically now in the Settings menu. Don't use this anymore. See: KMainWindow::setStandardToolBarMenuEnabled(bool); Show/Hide the primary toolbar. Definition at line 260 of file kstdaction.cpp. References name().

KDEUI_EXPORT KToggleAction * KStdAction::showStatusbar | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Show/Hide the statusbar. Definition at line 268 of file kstdaction.cpp. References name(), KToggleAction::setChecked(), KToggleAction::setCheckedState(), and KAction::setWhatsThis(). Referenced by KMainWindow::createStandardStatusBarAction().

KDEUI_EXPORT KToggleFullScreenAction * KStdAction::fullScreen | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | QWidget * | window,
|  | const char * | name = `0`
| ) |

| Switch to/from full screen mode Since: 3.2. Definition at line 285 of file kstdaction.cpp. References create(), and KToggleFullScreenAction::setWindow().

KDEUI_EXPORT KAction * KStdAction::saveOptions | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Display the save options dialog. Definition at line 294 of file kstdaction.cpp. References create().

KDEUI_EXPORT KAction * KStdAction::keyBindings | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Display the configure key bindings dialog. Note that you might be able to use the pre-built KXMLGUIFactory's fuction: KStdAction::keyBindings(guiFactory(), SLOT(configureShortcuts()), actionCollection()); Definition at line 296 of file kstdaction.cpp. References create(). Referenced by KMainWindow::setupGUI().

KDEUI_EXPORT KAction * KStdAction::preferences | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Display the preferences/options dialog. Definition at line 298 of file kstdaction.cpp. References create().

KDEUI_EXPORT KAction * KStdAction::configureToolbars | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| The Customize Toolbar dialog. Definition at line 300 of file kstdaction.cpp. References create(). Referenced by KMainWindow::setupGUI().

KDEUI_EXPORT KAction * KStdAction::configureNotifications | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| The Configure Notifications dialo Since: 3.1. Definition at line 302 of file kstdaction.cpp. References create().

KDEUI_EXPORT KAction * KStdAction::help | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Display the help. Definition at line 304 of file kstdaction.cpp. References create().

KDEUI_EXPORT KAction * KStdAction::helpContents | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Display the help contents. Definition at line 306 of file kstdaction.cpp. References create(). Referenced by KHelpMenu::KHelpMenu().

KDEUI_EXPORT KAction * KStdAction::whatsThis | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Trigger the What's This cursor. Definition at line 308 of file kstdaction.cpp. References create(). Referenced by KHelpMenu::KHelpMenu().

KDEUI_EXPORT KAction * KStdAction::tipOfDay | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Display "Tip of the Day" Since: 3.1. Definition at line 310 of file kstdaction.cpp. References create(), and TipofDay.

KDEUI_EXPORT KAction * KStdAction::reportBug | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Open up the Report Bug dialog. Definition at line 312 of file kstdaction.cpp. References create(). Referenced by KHelpMenu::KHelpMenu().

KDEUI_EXPORT KAction * KStdAction::aboutApp | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Display the application's About box. Definition at line 314 of file kstdaction.cpp. References create(). Referenced by KHelpMenu::KHelpMenu().

KDEUI_EXPORT KAction * KStdAction::aboutKDE | ( | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0`
| ) |

| Display the About KDE dialog. Definition at line 316 of file kstdaction.cpp. References create(). Referenced by KHelpMenu::KHelpMenu().

KAction* action | ( | StdAction | act_enum,
|  | const QObject * | recvr,
|  | const char * | slot,
|  | KActionCollection * | parent,
|  | const char * | name = `0L`
| ) | `[inline]`

| Deprecated: . Creates an action corresponding to the KStdAction::StdAction enum. Definition at line 180 of file kstdaction.h. References create().

const char* stdName | ( | StdAction | act_enum | ) | `[inline]`

| Deprecated: . Use name Definition at line 191 of file kstdaction.h. References name().

This file is part of the documentation for kdeui Library Version 3.4.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat Jun 11 20:22:46 2005 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003