kdeui
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, SwitchApplicationLanguage } |
Functions | |
KAction * | aboutApp (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | aboutKDE (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | action (StdAction act_enum, const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0L) |
KAction * | actualSize (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | addBookmark (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | back (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | clear (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | close (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | configureNotifications (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | configureToolbars (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | copy (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | create (StdAction id, const QObject *recvr, const char *slot, KActionCollection *parent) |
KAction * | create (StdAction id, const char *name, const QObject *recvr, const char *slot, KActionCollection *parent) |
KAction * | cut (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | deselect (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | editBookmarks (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | find (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | findNext (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | findPrev (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | firstPage (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | fitToHeight (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | fitToPage (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | fitToWidth (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | forward (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KToggleFullScreenAction * | fullScreen (const QObject *recvr, const char *slot, KActionCollection *parent, QWidget *window, const char *name=0) |
KAction * | goTo (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | gotoLine (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | gotoPage (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | help (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | helpContents (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | home (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | keyBindings (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | lastPage (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | mail (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
const char * | name (StdAction id) |
KAction * | next (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | open (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | openNew (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KRecentFilesAction * | openRecent (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | paste (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | pasteText (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | preferences (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | print (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | printPreview (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | prior (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | quit (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | redisplay (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | redo (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | replace (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | reportBug (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | revert (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | save (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | saveAs (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | saveOptions (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | selectAll (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KToggleAction * | showMenubar (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KToggleAction * | showStatusbar (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KToggleToolBarAction * | showToolbar (const char *toolBarName, KActionCollection *parent, const char *name=0) KDE_DEPRECATED |
KToggleAction * | showToolbar (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) KDE_DEPRECATED |
KAction * | spelling (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
const char * | stdName (StdAction act_enum) |
QStringList | stdNames () |
KAction * | switchApplicationLanguage (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | tipOfDay (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | undo (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | up (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | whatsThis (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | zoom (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | zoomIn (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
KAction * | zoomOut (const QObject *recvr, const char *slot, KActionCollection *parent, const char *name=0) |
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
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());
Enumeration Type Documentation
The standard menubar and toolbar actions.
- Enumerator:
Definition at line 122 of file kstdaction.h.
Function Documentation
KAction * KStdAction::aboutApp | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
KAction * KStdAction::aboutKDE | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
KAction* KStdAction::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 181 of file kstdaction.h.
KAction * KStdAction::actualSize | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
KAction * KStdAction::addBookmark | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
KAction * KStdAction::back | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
KAction * KStdAction::clear | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name = 0 | |||
) |
KAction * KStdAction::close | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
KAction * KStdAction::configureNotifications | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name = 0 | |||
) |
KAction * KStdAction::configureToolbars | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
KAction * KStdAction::copy | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
KAction* KStdAction::create | ( | StdAction | id, | |
const QObject * | recvr, | |||
const char * | slot, | |||
KActionCollection * | parent | |||
) | [inline] |
Definition at line 172 of file kstdaction.h.
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.
KAction * KStdAction::cut | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
KAction * KStdAction::deselect | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
Deselect any selected elements in the current document.
Definition at line 180 of file kstdaction.cpp.
KAction * KStdAction::editBookmarks | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
KAction * KStdAction::find | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
KAction * KStdAction::findNext | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
KAction * KStdAction::findPrev | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
KAction * KStdAction::firstPage | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
KAction * KStdAction::fitToHeight | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
Fit the document view to the height of the current window.
Definition at line 196 of file kstdaction.cpp.
KAction * KStdAction::fitToPage | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
Fit the document view to the size of the current window.
Definition at line 192 of file kstdaction.cpp.
KAction * KStdAction::fitToWidth | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
Fit the document view to the width of the current window.
Definition at line 194 of file kstdaction.cpp.
KAction * KStdAction::forward | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
KToggleFullScreenAction * KStdAction::fullScreen | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
QWidget * | window, | |||
const char * | name = 0 | |||
) |
KAction * KStdAction::goTo | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
KAction * KStdAction::gotoLine | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
KAction * KStdAction::gotoPage | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
KAction * KStdAction::help | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
KAction * KStdAction::helpContents | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
KAction * KStdAction::home | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
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 298 of file kstdaction.cpp.
KAction * KStdAction::lastPage | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
KAction * KStdAction::mail | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
const char * KStdAction::name | ( | StdAction | id | ) |
This will return the internal name of a given standard action.
Definition at line 136 of file kstdaction.cpp.
KAction * KStdAction::next | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
KAction * KStdAction::open | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
KAction * KStdAction::openNew | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
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 146 of file kstdaction.cpp.
KAction * KStdAction::paste | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
Paste the contents of clipboard at the current mouse or cursor position.
Definition at line 172 of file kstdaction.cpp.
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 174 of file kstdaction.cpp.
KAction * KStdAction::preferences | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
KAction * KStdAction::print | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
KAction * KStdAction::printPreview | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
KAction * KStdAction::prior | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
KAction * KStdAction::quit | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
KAction * KStdAction::redisplay | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
KAction * KStdAction::redo | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
KAction * KStdAction::replace | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
KAction * KStdAction::reportBug | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
KAction * KStdAction::revert | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
Revert the current document to the last saved version (essentially will undo all changes).
Definition at line 152 of file kstdaction.cpp.
KAction * KStdAction::save | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
KAction * KStdAction::saveAs | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
KAction * KStdAction::saveOptions | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
KAction * KStdAction::selectAll | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
KToggleAction * KStdAction::showMenubar | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | _name | |||
) |
KToggleAction * KStdAction::showStatusbar | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | _name | |||
) |
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 262 of file kstdaction.cpp.
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 251 of file kstdaction.cpp.
KAction * KStdAction::spelling | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
const char* KStdAction::stdName | ( | StdAction | act_enum | ) | [inline] |
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.
KAction * KStdAction::switchApplicationLanguage | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name = 0 | |||
) |
Display "Switch application language" dialog.
- Since:
- 3.5.8
Definition at line 316 of file kstdaction.cpp.
KAction * KStdAction::tipOfDay | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name = 0 | |||
) |
KAction * KStdAction::undo | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
KAction * KStdAction::up | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
KAction * KStdAction::whatsThis | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
KAction * KStdAction::zoom | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
KAction * KStdAction::zoomIn | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |
KAction * KStdAction::zoomOut | ( | const QObject * | recvr, | |
const char * | slot, | |||
KActionCollection * | parent, | |||
const char * | name | |||
) |