class KStdAction

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

Definition#include <kstdaction.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Types

Public Methods

Public Static Methods


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 http://developer.kde.org/documentation/standards/kde/style/basics/index.html ).

enum StdAction {New=1, Open, OpenRecent, Save, SaveAs, Revert, Close, Print, PrintPreview, Quit, Undo, Redo, Cut, Copy, Paste, SelectAll, Find, FindNext, FindPrev, Replace, ActualSize, FitToPage, FitToWidth, FitToHeight, ZoomIn, ZoomOut, Zoom, Redisplay, Up, Back, Forward, Home, Prior, Next, Goto, FirstPage, LastPage, AddBookmark, EditBookmarks, Spelling, ShowMenubar, ShowToolbar, ShowStatusbar, KeyBindings, Preferences, Help }

The standard menubar and toolbar actions.

KStdAction ()

Constructor.

~KStdAction ()

Destructor.

QAction * action (StdAction act_enum, const QObject *recvr = 0, const char *slot = 0, QObject *parent = 0, const char *name = 0L )
[static]

Retrieve the action corresponding to the KStdAction::StdAction enum.

const char* stdName (StdAction act_enum)
[static]

This will return the internal name of a given standard action.

KAction * openNew (const QObject *recvr = 0, const char *slot = 0, QObject *parent = 0, const char *name = 0L )
[static]

Create a new document or window.

KAction * open (const QObject *recvr = 0, const char *slot = 0, QObject *parent = 0, const char *name = 0L )
[static]

Open an existing file.

KSelectAction * openRecent (const QObject *recvr = 0, const char *slot = 0, QObject *parent = 0, const char *name = 0L )
[static]

Open a recently used document.

KAction * save (const QObject *recvr = 0, const char *slot = 0, QObject *parent = 0, const char *name = 0L )
[static]

Save the current document.

KAction * saveAs (const QObject *recvr = 0, const char *slot = 0, QObject *parent = 0, const char *name = 0L )
[static]

Save the current document under a different name.

KAction * revert (const QObject *recvr = 0, const char *slot = 0, QObject *parent = 0, const char *name = 0L )
[static]

Revert the current document to the last saved version (essentially will undo all changes).

KAction * close (const QObject *recvr = 0, const char *slot = 0, QObject *parent = 0, const char *name = 0L )
[static]

Close the current document.

KAction * print (const QObject *recvr = 0, const char *slot = 0, QObject *parent = 0, const char *name = 0L )
[static]

Print the current document.

KAction * printPreview (const QObject *recvr = 0, const char *slot = 0, QObject *parent = 0, const char *name = 0L )
[static]

Show a print preview of the current document.

KAction * quit (const QObject *recvr = 0, const char *slot = 0, QObject *parent = 0, const char *name = 0L )
[static]

Quit the program.

KAction * undo (const QObject *recvr = 0, const char *slot = 0, QObject *parent = 0, const char *name = 0L )
[static]

Undo the last operation.

KAction * redo (const QObject *recvr = 0, const char *slot = 0, QObject *parent = 0, const char *name = 0L )
[static]

Redo the last operation.

KAction * cut (const QObject *recvr = 0, const char *slot = 0, QObject *parent = 0, const char *name = 0L )
[static]

Cut selected area and store it in the clipboard.

KAction * copy (const QObject *recvr = 0, const char *slot = 0, QObject *parent = 0, const char *name = 0L )
[static]

Copy the selected area into the clipboard.

KAction * paste (const QObject *recvr = 0, const char *slot = 0, QObject *parent = 0, const char *name = 0L )
[static]

Paste the contents of clipboard at the current mouse or cursor position.

KAction * selectAll (const QObject *recvr = 0, const char *slot = 0, QObject *parent = 0, const char *name = 0L )
[static]

Select all elements in the current document.

KAction * find (const QObject *recvr = 0, const char *slot = 0, QObject *parent = 0, const char *name = 0L )
[static]

Initiate a 'find' request in the current document.

KAction * findNext (const QObject *recvr = 0, const char *slot = 0, QObject *parent = 0, const char *name = 0L )
[static]

Find the next instance of a stored 'find'.

KAction * findPrev (const QObject *recvr = 0, const char *slot = 0, QObject *parent = 0, const char *name = 0L )
[static]

Find a previous instance of a stored 'find'.

KAction * replace (const QObject *recvr = 0, const char *slot = 0, QObject *parent = 0, const char *name = 0L )
[static]

Find and replace matches.

KAction * actualSize (const QObject *recvr = 0, const char *slot = 0, QObject *parent = 0, const char *name = 0L )
[static]

View the document at its actual size.

KAction * fitToPage (const QObject *recvr = 0, const char *slot = 0, QObject *parent = 0, const char *name = 0L )
[static]

Fit the document view to the size of the current window.

KAction * fitToWidth (const QObject *recvr = 0, const char *slot = 0, QObject *parent = 0, const char *name = 0L )
[static]

Fit the document view to the width of the current window.

KAction * fitToHeight (const QObject *recvr = 0, const char *slot = 0, QObject *parent = 0, const char *name = 0L )
[static]

Fit the document view to the height of the current window.

KAction * zoomIn (const QObject *recvr = 0, const char *slot = 0, QObject *parent = 0, const char *name = 0L )
[static]

Zoom in.

KAction * zoomOut (const QObject *recvr = 0, const char *slot = 0, QObject *parent = 0, const char *name = 0L )
[static]

Zoom out.

KAction * zoom (const QObject *recvr = 0, const char *slot = 0, QObject *parent = 0, const char *name = 0L )
[static]

Popup a zoom dialog.

KAction * redisplay (const QObject *recvr = 0, const char *slot = 0, QObject *parent = 0, const char *name = 0L )
[static]

Redisplay or redraw the document.

KAction * up (const QObject *recvr = 0, const char *slot = 0, QObject *parent = 0, const char *name = 0L )
[static]

Move up (web style menu).

KAction * back (const QObject *recvr = 0, const char *slot = 0, QObject *parent = 0, const char *name = 0L )
[static]

Move back (web style menu).

KAction * forward (const QObject *recvr = 0, const char *slot = 0, QObject *parent = 0, const char *name = 0L )
[static]

Move forward (web style menu).

KAction * home (const QObject *recvr = 0, const char *slot = 0, QObject *parent = 0, const char *name = 0L )
[static]

Go to the "Home" position or document.

KAction * prior (const QObject *recvr = 0, const char *slot = 0, QObject *parent = 0, const char *name = 0L )
[static]

Scroll up one page.

KAction * next (const QObject *recvr = 0, const char *slot = 0, QObject *parent = 0, const char *name = 0L )
[static]

Scroll down one page.

KAction * gotoPage (const QObject *recvr = 0, const char *slot = 0, QObject *parent = 0, const char *name = 0L )
[static]

Go to a specific page (dialog).

KAction * firstPage (const QObject *recvr = 0, const char *slot = 0, QObject *parent = 0, const char *name = 0L )
[static]

Jump to the first page.

KAction * lastPage (const QObject *recvr = 0, const char *slot = 0, QObject *parent = 0, const char *name = 0L )
[static]

Jump to the last page.

KAction * addBookmark (const QObject *recvr = 0, const char *slot = 0, QObject *parent = 0, const char *name = 0L )
[static]

Add the current page to the bookmarks tree.

KAction * editBookmarks (const QObject *recvr = 0, const char *slot = 0, QObject *parent = 0, const char *name = 0L )
[static]

Edit the application bookmarks.

KAction * spelling (const QObject *recvr = 0, const char *slot = 0, QObject *parent = 0, const char *name = 0L )
[static]

Popup the spell checker

KToggleAction * showMenubar (const QObject *recvr = 0, const char *slot = 0, QObject *parent = 0, const char *name = 0L )
[static]

Show/Hide the menubar.

KToggleAction * showToolbar (const QObject *recvr = 0, const char *slot = 0, QObject *parent = 0, const char *name = 0L )
[static]

Show/Hide the primary toolbar.

KToggleAction * showStatusbar (const QObject *recvr = 0, const char *slot = 0, QObject *parent = 0, const char *name = 0L )
[static]

Show/Hide the statusbar.

KAction * keyBindings (const QObject *recvr = 0, const char *slot = 0, QObject *parent = 0, const char *name = 0L )
[static]

Display the configure key bindings dialog.

KAction * preferences (const QObject *recvr = 0, const char *slot = 0, QObject *parent = 0, const char *name = 0L )
[static]

Display the preferences/options dialog.

KAction * help (const QObject *recvr = 0, const char *slot = 0, QObject *parent = 0, const char *name = 0L )
[static]

Display the help menu.


Generated by: root@tantive.terraplex.com on Sun Feb 27 17:39:25 2000, using kdoc 2.0a33.