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 | |
TQStringList | stdNames () |
TDEAction * | create (StdAction id, const char *name, const TQObject *recvr, const char *slot, TDEActionCollection *parent) |
const char * | name (StdAction id) |
TDEAction * | openNew (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | open (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDERecentFilesAction * | openRecent (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | save (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | saveAs (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | revert (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | print (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | printPreview (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | close (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | mail (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | quit (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | undo (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | redo (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | cut (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | copy (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | paste (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | pasteText (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | clear (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | selectAll (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | deselect (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | find (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | findNext (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | findPrev (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | replace (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | actualSize (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | fitToPage (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | fitToWidth (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | fitToHeight (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | zoomIn (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | zoomOut (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | zoom (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | redisplay (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | up (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | back (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | forward (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | home (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | prior (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | next (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | goTo (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | gotoPage (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | gotoLine (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | firstPage (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | lastPage (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | addBookmark (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | editBookmarks (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | spelling (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEToggleAction * | showMenubar (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEToggleAction * | showToolbar (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *_name) |
TDEToggleToolBarAction * | showToolbar (const char *toolBarName, TDEActionCollection *parent, const char *_name) |
TDEToggleAction * | showStatusbar (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEToggleFullScreenAction * | fullScreen (const TQObject *recvr, const char *slot, TDEActionCollection *parent, TQWidget *window, const char *name=0) |
TDEAction * | saveOptions (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | keyBindings (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | preferences (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | configureToolbars (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | configureNotifications (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | help (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | helpContents (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | whatsThis (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | tipOfDay (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | reportBug (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | switchApplicationLanguage (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | aboutApp (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | aboutKDE (const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0) |
TDEAction * | create (StdAction id, const TQObject *recvr, const char *slot, TDEActionCollection *parent) |
TDEAction * | action (StdAction act_enum, const TQObject *recvr, const char *slot, TDEActionCollection *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
All of the documentation for TDEAction holds for KStdAction also. When in doubt on how things work, check the TDEAction documention first.
Simple Example:
In general, using standard actions should be a drop in replacement for regular actions. For example, if you previously had:
You could drop that and replace it with:
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:
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:
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, TQ_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:
Enumeration Type Documentation
◆ StdAction
The standard menubar and toolbar actions.
Enumerator | |
---|---|
TipofDay |
|
FullScreen |
|
Clear |
|
PasteText |
|
SwitchApplicationLanguage |
|
Definition at line 122 of file kstdaction.h.
Function Documentation
◆ aboutApp()
TDEAction * KStdAction::aboutApp | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
Display the application's About box.
Definition at line 318 of file kstdaction.cpp.
◆ aboutKDE()
TDEAction * KStdAction::aboutKDE | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
Display the About KDE dialog.
Definition at line 320 of file kstdaction.cpp.
◆ action()
|
inline |
Creates an action corresponding to the KStdAction::StdAction enum.
Definition at line 181 of file kstdaction.h.
◆ actualSize()
TDEAction * KStdAction::actualSize | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
View the document at its actual size.
Definition at line 190 of file kstdaction.cpp.
◆ addBookmark()
TDEAction * KStdAction::addBookmark | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
Add the current page to the bookmarks tree.
Definition at line 228 of file kstdaction.cpp.
◆ back()
TDEAction * KStdAction::back | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
Move back (web style menu).
Definition at line 208 of file kstdaction.cpp.
◆ clear()
TDEAction * KStdAction::clear | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name = 0 |
||
) |
◆ close()
TDEAction * KStdAction::close | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
Close the current document.
Definition at line 158 of file kstdaction.cpp.
◆ configureNotifications()
TDEAction * KStdAction::configureNotifications | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name = 0 |
||
) |
◆ configureToolbars()
TDEAction * KStdAction::configureToolbars | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
The Customize Toolbar dialog.
Definition at line 302 of file kstdaction.cpp.
◆ copy()
TDEAction * KStdAction::copy | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
Copy the selected area into the clipboard.
Definition at line 170 of file kstdaction.cpp.
◆ create()
TDEAction * KStdAction::create | ( | StdAction | id, |
const char * | name, | ||
const TQObject * | recvr, | ||
const char * | slot, | ||
TDEActionCollection * | parent | ||
) |
Creates an action corresponding to the KStdAction::StdAction enum.
Definition at line 43 of file kstdaction.cpp.
◆ cut()
TDEAction * KStdAction::cut | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
Cut selected area and store it in the clipboard.
Definition at line 168 of file kstdaction.cpp.
◆ deselect()
TDEAction * KStdAction::deselect | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
Deselect any selected elements in the current document.
Definition at line 180 of file kstdaction.cpp.
◆ editBookmarks()
TDEAction * KStdAction::editBookmarks | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
Edit the application bookmarks.
Definition at line 230 of file kstdaction.cpp.
◆ find()
TDEAction * KStdAction::find | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
Initiate a 'find' request in the current document.
Definition at line 182 of file kstdaction.cpp.
◆ findNext()
TDEAction * KStdAction::findNext | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
Find the next instance of a stored 'find'.
Definition at line 184 of file kstdaction.cpp.
◆ findPrev()
TDEAction * KStdAction::findPrev | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
Find a previous instance of a stored 'find'.
Definition at line 186 of file kstdaction.cpp.
◆ firstPage()
TDEAction * KStdAction::firstPage | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
Jump to the first page.
Definition at line 224 of file kstdaction.cpp.
◆ fitToHeight()
TDEAction * KStdAction::fitToHeight | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
Fit the document view to the height of the current window.
Definition at line 196 of file kstdaction.cpp.
◆ fitToPage()
TDEAction * KStdAction::fitToPage | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
Fit the document view to the size of the current window.
Definition at line 192 of file kstdaction.cpp.
◆ fitToWidth()
TDEAction * KStdAction::fitToWidth | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
Fit the document view to the width of the current window.
Definition at line 194 of file kstdaction.cpp.
◆ forward()
TDEAction * KStdAction::forward | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
Move forward (web style menu).
Definition at line 210 of file kstdaction.cpp.
◆ fullScreen()
TDEToggleFullScreenAction * KStdAction::fullScreen | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
TQWidget * | window, | ||
const char * | name = 0 |
||
) |
◆ goTo()
TDEAction * KStdAction::goTo | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
Go to somewhere in general.
Definition at line 218 of file kstdaction.cpp.
◆ gotoLine()
TDEAction * KStdAction::gotoLine | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
Go to a specific line (dialog).
Definition at line 222 of file kstdaction.cpp.
◆ gotoPage()
TDEAction * KStdAction::gotoPage | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
Go to a specific page (dialog).
Definition at line 220 of file kstdaction.cpp.
◆ help()
TDEAction * KStdAction::help | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
Display the help.
Definition at line 306 of file kstdaction.cpp.
◆ helpContents()
TDEAction * KStdAction::helpContents | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
Display the help contents.
Definition at line 308 of file kstdaction.cpp.
◆ home()
TDEAction * KStdAction::home | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
Go to the "Home" position or document.
Definition at line 212 of file kstdaction.cpp.
◆ keyBindings()
TDEAction * KStdAction::keyBindings | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | 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(), TQ_SLOT(configureShortcuts()), actionCollection());
Definition at line 298 of file kstdaction.cpp.
◆ lastPage()
TDEAction * KStdAction::lastPage | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
Jump to the last page.
Definition at line 226 of file kstdaction.cpp.
◆ mail()
TDEAction * KStdAction::mail | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
Mail this document.
Definition at line 160 of file kstdaction.cpp.
◆ 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.
◆ next()
TDEAction * KStdAction::next | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
Scroll down one page.
Definition at line 216 of file kstdaction.cpp.
◆ open()
TDEAction * KStdAction::open | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
Open an existing file.
Definition at line 144 of file kstdaction.cpp.
◆ openNew()
TDEAction * KStdAction::openNew | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
Create a new document or window.
Definition at line 142 of file kstdaction.cpp.
◆ openRecent()
TDERecentFilesAction * KStdAction::openRecent | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | 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.
◆ paste()
TDEAction * KStdAction::paste | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
Paste the contents of clipboard at the current mouse or cursor position.
Definition at line 172 of file kstdaction.cpp.
◆ pasteText()
TDEAction * KStdAction::pasteText | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | 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.
◆ preferences()
TDEAction * KStdAction::preferences | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
Display the preferences/options dialog.
Definition at line 300 of file kstdaction.cpp.
◆ print()
TDEAction * KStdAction::print | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
Print the current document.
Definition at line 154 of file kstdaction.cpp.
◆ printPreview()
TDEAction * KStdAction::printPreview | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
Show a print preview of the current document.
Definition at line 156 of file kstdaction.cpp.
◆ prior()
TDEAction * KStdAction::prior | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
Scroll up one page.
Definition at line 214 of file kstdaction.cpp.
◆ quit()
TDEAction * KStdAction::quit | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
Quit the program.
Definition at line 162 of file kstdaction.cpp.
◆ redisplay()
TDEAction * KStdAction::redisplay | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
Redisplay or redraw the document.
Definition at line 204 of file kstdaction.cpp.
◆ redo()
TDEAction * KStdAction::redo | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
Redo the last operation.
Definition at line 166 of file kstdaction.cpp.
◆ replace()
TDEAction * KStdAction::replace | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
Find and replace matches.
Definition at line 188 of file kstdaction.cpp.
◆ reportBug()
TDEAction * KStdAction::reportBug | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
Open up the Report Bug dialog.
Definition at line 314 of file kstdaction.cpp.
◆ revert()
TDEAction * KStdAction::revert | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | 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.
◆ save()
TDEAction * KStdAction::save | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
Save the current document.
Definition at line 148 of file kstdaction.cpp.
◆ saveAs()
TDEAction * KStdAction::saveAs | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
Save the current document under a different name.
Definition at line 150 of file kstdaction.cpp.
◆ saveOptions()
TDEAction * KStdAction::saveOptions | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
Display the save options dialog.
Definition at line 296 of file kstdaction.cpp.
◆ selectAll()
TDEAction * KStdAction::selectAll | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
Select all elements in the current document.
Definition at line 178 of file kstdaction.cpp.
◆ showMenubar()
TDEToggleAction * KStdAction::showMenubar | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | _name | ||
) |
Show/Hide the menubar.
Definition at line 235 of file kstdaction.cpp.
◆ showStatusbar()
TDEToggleAction * KStdAction::showStatusbar | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | _name | ||
) |
Show/Hide the statusbar.
Definition at line 270 of file kstdaction.cpp.
◆ showToolbar() [1/2]
TDEToggleToolBarAction * KStdAction::showToolbar | ( | const char * | toolBarName, |
TDEActionCollection * | parent, | ||
const char * | name = 0 |
||
) |
toolbar actions are created automatically now in the Settings menu. Don't use this anymore. See: TDEMainWindow::setStandardToolBarMenuEnabled(bool); Show/Hide the primary toolbar.
Definition at line 262 of file kstdaction.cpp.
◆ showToolbar() [2/2]
TDEToggleAction * KStdAction::showToolbar | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name = 0 |
||
) |
toolbar actions are created automatically now in the Settings menu. Don't use this anymore. See: TDEMainWindow::createStandardStatusBarAction() Show/Hide the primary toolbar.
- Since
- 3.1
Definition at line 251 of file kstdaction.cpp.
◆ spelling()
TDEAction * KStdAction::spelling | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
Pop up the spell checker.
Definition at line 232 of file kstdaction.cpp.
◆ stdName()
|
inline |
- Deprecated:
- . Use name()
Definition at line 192 of file kstdaction.h.
◆ stdNames()
TQStringList KStdAction::stdNames | ( | ) |
Returns a list of all standard names. Used by TDEAccelManager to give those heigher weight.
- Since
- 3.1
Definition at line 38 of file kstdaction.cpp.
◆ switchApplicationLanguage()
TDEAction * KStdAction::switchApplicationLanguage | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name = 0 |
||
) |
Display "Switch application language" dialog.
- Since
- 3.5.8
Definition at line 316 of file kstdaction.cpp.
◆ tipOfDay()
TDEAction * KStdAction::tipOfDay | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name = 0 |
||
) |
◆ undo()
TDEAction * KStdAction::undo | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
Undo the last operation.
Definition at line 164 of file kstdaction.cpp.
◆ up()
TDEAction * KStdAction::up | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
Move up (web style menu).
Definition at line 206 of file kstdaction.cpp.
◆ whatsThis()
TDEAction * KStdAction::whatsThis | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
Trigger the What's This cursor.
Definition at line 310 of file kstdaction.cpp.
◆ zoom()
TDEAction * KStdAction::zoom | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
Popup a zoom dialog.
Definition at line 202 of file kstdaction.cpp.
◆ zoomIn()
TDEAction * KStdAction::zoomIn | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
Zoom in.
Definition at line 198 of file kstdaction.cpp.
◆ zoomOut()
TDEAction * KStdAction::zoomOut | ( | const TQObject * | recvr, |
const char * | slot, | ||
TDEActionCollection * | parent, | ||
const char * | name | ||
) |
Zoom out.
Definition at line 200 of file kstdaction.cpp.