kstdaction.cpp
/* This file is part of the KDE libraries
Copyright (C) 1999,2000 Kurt Granroth <granroth@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License version 2 as published by the Free Software Foundation.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include "kstdaction.h"
#include <qtoolbutton.h>
#include <qwhatsthis.h>
#include <kaboutdata.h>
#include <kaction.h>
#include <kapplication.h>
#include <kdebug.h>
#include <kglobal.h>
#include <kiconloader.h>
#include <klocale.h>
#include <kstdaccel.h>
#include <kmainwindow.h>
#include "kstdaction_p.h"
namespace KStdAction
{
QStringList stdNames()
{
return internal_stdNames();
}
KAction* create( StdAction id, const char *name, const QObject *recvr, const char *slot, KActionCollection* parent )
{
KAction* pAction = 0;
const KStdActionInfo* pInfo = infoPtr( id );
kdDebug(125) << "KStdAction::create( " << id << "=" << (pInfo ? pInfo->psName : (const char*)0) << ", " << parent << ", " << name << " )" << endl; // ellis
if( pInfo ) {
QString sLabel, iconName = pInfo->psIconName;
switch( id ) {
case Back: sLabel = i18n("go back", "&Back");
if (QApplication::reverseLayout() )
iconName = "forward";
break;
case Forward: sLabel = i18n("go forward", "&Forward");
if (QApplication::reverseLayout() )
iconName = "back";
break;
case Home: sLabel = i18n("beginning (of line)", "&Home"); break;
case Help: sLabel = i18n("show help", "&Help"); break;
case AboutApp: iconName = kapp->miniIconName();
case Preferences:
case HelpContents:
{
const KAboutData *aboutData = KGlobal::instance()->aboutData();
/* TODO KDE4
const KAboutData *aboutData;
if ( parent )
aboutData = parent->instance()->aboutData();
else
aboutData = KGlobal::instance()->aboutData();
*/
QString appName = (aboutData) ? aboutData->programName() : QString::fromLatin1(qApp->name());
sLabel = i18n(pInfo->psLabel).arg(appName);
}
break;
default: sLabel = i18n(pInfo->psLabel);
}
if (QApplication::reverseLayout()){
if (id == Prior) iconName = "forward";
if (id == Next ) iconName = "back";
if (id == FirstPage) iconName = "finish";
if (id == LastPage) iconName = "start";
}
KShortcut cut = KStdAccel::shortcut(pInfo->idAccel);
switch( id ) {
case OpenRecent:
pAction = new KRecentFilesAction( sLabel, pInfo->psIconName, cut,
recvr, slot,
parent, (name) ? name : pInfo->psName );
break;
case ShowMenubar:
case ShowToolbar:
case ShowStatusbar:
{
KToggleAction *ret;
ret = new KToggleAction( sLabel, pInfo->psIconName, cut,
recvr, slot,
parent, (name) ? name : pInfo->psName );
ret->setChecked( true );
pAction = ret;
break;
}
case FullScreen:
{
KToggleFullScreenAction *ret;
ret = new KToggleFullScreenAction( cut, recvr, slot,
parent, NULL, (name) ? name : pInfo->psName );
ret->setChecked( false );
pAction = ret;
break;
}
case PasteText:
{
KPasteTextAction *ret;
ret = new KPasteTextAction(sLabel, iconName, cut,
recvr, slot,
parent, (name) ? name : pInfo->psName );
pAction = ret;
break;
}
default:
pAction = new KAction( sLabel, iconName, cut,
recvr, slot,
parent, (name) ? name : pInfo->psName );
break;
}
}
return pAction;
}
const char* name( StdAction id )
{
const KStdActionInfo* pInfo = infoPtr( id );
return (pInfo) ? pInfo->psName : 0;
}
KAction *openNew( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( New, name, recvr, slot, parent ); }
KAction *open( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( Open, name, recvr, slot, parent ); }
KRecentFilesAction *openRecent( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return (KRecentFilesAction*) KStdAction::create( OpenRecent, name, recvr, slot, parent ); }
KAction *save( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( Save, name, recvr, slot, parent ); }
KAction *saveAs( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( SaveAs, name, recvr, slot, parent ); }
KAction *revert( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( Revert, name, recvr, slot, parent ); }
KAction *print( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( Print, name, recvr, slot, parent ); }
KAction *printPreview( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( PrintPreview, name, recvr, slot, parent ); }
KAction *close( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( Close, name, recvr, slot, parent ); }
KAction *mail( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( Mail, name, recvr, slot, parent ); }
KAction *quit( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( Quit, name, recvr, slot, parent ); }
KAction *undo( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( Undo, name, recvr, slot, parent ); }
KAction *redo( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( Redo, name, recvr, slot, parent ); }
KAction *cut( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( Cut, name, recvr, slot, parent ); }
KAction *copy( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( Copy, name, recvr, slot, parent ); }
KAction *paste( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( Paste, name, recvr, slot, parent ); }
KAction *pasteText( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( PasteText, name, recvr, slot, parent ); }
KAction *clear( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( Clear, name, recvr, slot, parent ); }
KAction *selectAll( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( SelectAll, name, recvr, slot, parent ); }
KAction *deselect( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( Deselect, name, recvr, slot, parent ); }
KAction *find( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( Find, name, recvr, slot, parent ); }
KAction *findNext( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( FindNext, name, recvr, slot, parent ); }
KAction *findPrev( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( FindPrev, name, recvr, slot, parent ); }
KAction *replace( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( Replace, name, recvr, slot, parent ); }
KAction *actualSize( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( ActualSize, name, recvr, slot, parent ); }
KAction *fitToPage( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( FitToPage, name, recvr, slot, parent ); }
KAction *fitToWidth( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( FitToWidth, name, recvr, slot, parent ); }
KAction *fitToHeight( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( FitToHeight, name, recvr, slot, parent ); }
KAction *zoomIn( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( ZoomIn, name, recvr, slot, parent ); }
KAction *zoomOut( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( ZoomOut, name, recvr, slot, parent ); }
KAction *zoom( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( Zoom, name, recvr, slot, parent ); }
KAction *redisplay( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( Redisplay, name, recvr, slot, parent ); }
KAction *up( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( Up, name, recvr, slot, parent ); }
KAction *back( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( Back, name, recvr, slot, parent ); }
KAction *forward( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( Forward, name, recvr, slot, parent ); }
KAction *home( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( Home, name, recvr, slot, parent ); }
KAction *prior( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( Prior, name, recvr, slot, parent ); }
KAction *next( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( Next, name, recvr, slot, parent ); }
KAction *goTo( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( Goto, name, recvr, slot, parent ); }
KAction *gotoPage( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( GotoPage, name, recvr, slot, parent ); }
KAction *gotoLine( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( GotoLine, name, recvr, slot, parent ); }
KAction *firstPage( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( FirstPage, name, recvr, slot, parent ); }
KAction *lastPage( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( LastPage, name, recvr, slot, parent ); }
KAction *addBookmark( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( AddBookmark, name, recvr, slot, parent ); }
KAction *editBookmarks( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( EditBookmarks, name, recvr, slot, parent ); }
KAction *spelling( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( Spelling, name, recvr, slot, parent ); }
KToggleAction *showMenubar( const QObject *recvr, const char *slot, KActionCollection* parent, const char *_name )
{
KToggleAction *ret;
ret = new KToggleAction(i18n("Show &Menubar"), "showmenu", KStdAccel::shortcut(KStdAccel::ShowMenubar), recvr, slot,
parent, _name ? _name : name(ShowMenubar));
ret->setWhatsThis( i18n( "Show Menubar<p>"
"Shows the menubar again after it has been hidden" ) );
KGuiItem guiItem( i18n("Hide &Menubar"), 0 /*same icon*/, QString::null,
i18n( "Hide Menubar<p>"
"Hide the menubar. You can usually get it back using the right mouse button inside the window itself." ) );
ret->setCheckedState( guiItem );
ret->setChecked(true);
return ret;
}
// obsolete
KToggleAction *showToolbar( const QObject *recvr, const char *slot, KActionCollection* parent, const char *_name )
{
KToggleAction *ret;
ret = new KToggleAction(i18n("Show &Toolbar"), 0, recvr, slot, parent,
_name ? _name : name(ShowToolbar));
ret->setChecked(true);
return ret;
}
// obsolete
KToggleToolBarAction *showToolbar( const char* toolBarName, KActionCollection* parent, const char *_name )
{
KToggleToolBarAction *ret;
ret = new KToggleToolBarAction(toolBarName, i18n("Show &Toolbar"), parent,
_name ? _name : name(ShowToolbar));
return ret;
}
KToggleAction *showStatusbar( const QObject *recvr, const char *slot,
KActionCollection* parent, const char *_name )
{
KToggleAction *ret;
ret = new KToggleAction(i18n("Show St&atusbar"), 0, recvr, slot, parent,
_name ? _name : name(ShowStatusbar));
ret->setWhatsThis( i18n( "Show Statusbar<p>"
"Shows the statusbar, which is the bar at the bottom of the window used for status information." ) );
KGuiItem guiItem( i18n("Hide St&atusbar"), QString::null, QString::null,
i18n( "Hide Statusbar<p>"
"Hides the statusbar, which is the bar at the bottom of the window used for status information." ) );
ret->setCheckedState( guiItem );
ret->setChecked(true);
return ret;
}
KToggleFullScreenAction *fullScreen( const QObject *recvr, const char *slot, KActionCollection* parent,
QWidget* window, const char *name )
{
KToggleFullScreenAction *ret;
ret = static_cast< KToggleFullScreenAction* >( KStdAction::create( FullScreen, name, recvr, slot, parent ));
ret->setWindow( window );
return ret;
}
KAction *saveOptions( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( SaveOptions, name, recvr, slot, parent ); }
KAction *keyBindings( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( KeyBindings, name, recvr, slot, parent ); }
KAction *preferences( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( Preferences, name, recvr, slot, parent ); }
KAction *configureToolbars( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( ConfigureToolbars, name, recvr, slot, parent ); }
KAction *configureNotifications( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( ConfigureNotifications, name, recvr, slot, parent ); }
KAction *help( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( Help, name, recvr, slot, parent ); }
KAction *helpContents( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( HelpContents, name, recvr, slot, parent ); }
KAction *whatsThis( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( WhatsThis, name, recvr, slot, parent ); }
KAction *tipOfDay( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( TipofDay, name, recvr, slot, parent ); }
KAction *reportBug( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( ReportBug, name, recvr, slot, parent ); }
KAction *switchApplicationLanguage( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( SwitchApplicationLanguage, name, recvr, slot, parent ); }
KAction *aboutApp( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( AboutApp, name, recvr, slot, parent ); }
KAction *aboutKDE( const QObject *recvr, const char *slot, KActionCollection* parent, const char *name )
{ return KStdAction::create( AboutKDE, name, recvr, slot, parent ); }
}
KStdAction::saveAs
KAction * saveAs(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Save the current document under a different name.
Definition: kstdaction.cpp:150
KToggleFullScreenAction::setWindow
void setWindow(QWidget *window)
Sets the window that will be related to this action.
Definition: kactionclasses.cpp:2059
KStdAction::lastPage
KAction * lastPage(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Jump to the last page.
Definition: kstdaction.cpp:226
KStdAction::showMenubar
KToggleAction * showMenubar(const QObject *recvr, const char *slot, KActionCollection *parent, const char *_name)
Show/Hide the menubar.
Definition: kstdaction.cpp:235
KActionCollection
A managed set of KAction objects.
Definition: kactioncollection.h:78
KStdAction::goTo
KAction * goTo(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Go to somewhere in general.
Definition: kstdaction.cpp:218
KStdAction::redisplay
KAction * redisplay(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Redisplay or redraw the document.
Definition: kstdaction.cpp:204
KStdAction::copy
KAction * copy(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Copy the selected area into the clipboard.
Definition: kstdaction.cpp:170
KStdAction::saveOptions
KAction * saveOptions(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Display the save options dialog.
Definition: kstdaction.cpp:296
KStdAction::fullScreen
KToggleFullScreenAction * fullScreen(const QObject *recvr, const char *slot, KActionCollection *parent, QWidget *window, const char *name)
Switch to/from full screen mode.
Definition: kstdaction.cpp:287
KStdAccel::shortcut
const KShortcut & shortcut(StdAccel id)
KStdAction::StdAction
StdAction
The standard menubar and toolbar actions.
Definition: kstdaction.h:122
KStdAction::undo
KAction * undo(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Undo the last operation.
Definition: kstdaction.cpp:164
KStdAction::actualSize
KAction * actualSize(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
View the document at its actual size.
Definition: kstdaction.cpp:190
KStdAction::help
KAction * help(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Display the help.
Definition: kstdaction.cpp:306
KStdAction::revert
KAction * 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: kstdaction.cpp:152
KStdAction::prior
KAction * prior(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Scroll up one page.
Definition: kstdaction.cpp:214
KStdAction::whatsThis
KAction * whatsThis(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Trigger the What's This cursor.
Definition: kstdaction.cpp:310
KStdAction::SwitchApplicationLanguage
Definition: kstdaction.h:161
KStdAction::replace
KAction * replace(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Find and replace matches.
Definition: kstdaction.cpp:188
KStdAction::selectAll
KAction * selectAll(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Select all elements in the current document.
Definition: kstdaction.cpp:178
KStdAction::preferences
KAction * preferences(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Display the preferences/options dialog.
Definition: kstdaction.cpp:300
KStdAction::gotoLine
KAction * gotoLine(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Go to a specific line (dialog).
Definition: kstdaction.cpp:222
KStdAction::openNew
KAction * openNew(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Create a new document or window.
Definition: kstdaction.cpp:142
KStdAction::firstPage
KAction * firstPage(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Jump to the first page.
Definition: kstdaction.cpp:224
KStdAction::PasteText
Definition: kstdaction.h:160
KStdAction::reportBug
KAction * reportBug(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Open up the Report Bug dialog.
Definition: kstdaction.cpp:314
KStdAction::keyBindings
KAction * keyBindings(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Display the configure key bindings dialog.
Definition: kstdaction.cpp:298
KStdAction::helpContents
KAction * helpContents(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Display the help contents.
Definition: kstdaction.cpp:308
KToggleAction::setChecked
virtual void setChecked(bool)
Sets the state of the action.
Definition: kactionclasses.cpp:162
kdDebug
kdbgstream kdDebug(int area=0)
KStdAction::fitToHeight
KAction * fitToHeight(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Fit the document view to the height of the current window.
Definition: kstdaction.cpp:196
KStdAction::redo
KAction * redo(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Redo the last operation.
Definition: kstdaction.cpp:166
klocale.h
KStdAction::editBookmarks
KAction * editBookmarks(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Edit the application bookmarks.
Definition: kstdaction.cpp:230
KStdAction::print
KAction * print(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Print the current document.
Definition: kstdaction.cpp:154
KStdAction::fitToPage
KAction * fitToPage(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Fit the document view to the size of the current window.
Definition: kstdaction.cpp:192
KShortcut
KStdAction::mail
KAction * mail(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Mail this document.
Definition: kstdaction.cpp:160
KStdAction::stdNames
QStringList stdNames()
Returns a list of all standard names.
Definition: kstdaction.cpp:38
KToggleToolBarAction
An action that takes care of everything associated with showing or hiding a toolbar by a menu action...
Definition: kactionclasses.h:1208
KStdAction::spelling
KAction * spelling(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Pop up the spell checker.
Definition: kstdaction.cpp:232
KStdAction::create
KAction * create(StdAction id, const char *name, const QObject *recvr, const char *slot, KActionCollection *parent)
Creates an action corresponding to the KStdAction::StdAction enum.
Definition: kstdaction.cpp:43
KStdAction::pasteText
KAction * pasteText(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Paste the contents of clipboard at the current mouse or cursor position.
Definition: kstdaction.cpp:174
KStdAction::showToolbar
KToggleAction * showToolbar(const QObject *recvr, const char *slot, KActionCollection *parent, const char *_name)
Definition: kstdaction.cpp:251
KToggleAction::setCheckedState
void setCheckedState(const KGuiItem &checkedItem)
Defines the text (and icon, tooltip, whatsthis) that should be displayed instead of the normal text...
Definition: kactionclasses.cpp:256
KStdAction::open
KAction * open(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Open an existing file.
Definition: kstdaction.cpp:144
KGuiItem
An abstract class for GUI data such as ToolTip and Icon.
Definition: kguiitem.h:38
KStdAction::printPreview
KAction * printPreview(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Show a print preview of the current document.
Definition: kstdaction.cpp:156
KStdAction::zoomIn
KAction * zoomIn(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Zoom in.
Definition: kstdaction.cpp:198
KAboutData
KStdAction::clear
KAction * clear(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Clear the content of the focus widget.
Definition: kstdaction.cpp:176
KStdAction::deselect
KAction * deselect(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Deselect any selected elements in the current document.
Definition: kstdaction.cpp:180
KStdAction::TipofDay
Definition: kstdaction.h:154
KGlobal::instance
static KInstance * instance()
KStdAction::up
KAction * up(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Move up (web style menu).
Definition: kstdaction.cpp:206
KStdAction::home
KAction * home(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Go to the "Home" position or document.
Definition: kstdaction.cpp:212
KStdAction::tipOfDay
KAction * tipOfDay(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Display "Tip of the Day".
Definition: kstdaction.cpp:312
KStdAction::showStatusbar
KToggleAction * showStatusbar(const QObject *recvr, const char *slot, KActionCollection *parent, const char *_name)
Show/Hide the statusbar.
Definition: kstdaction.cpp:270
KStdAction::name
const char * name(StdAction id)
This will return the internal name of a given standard action.
Definition: kstdaction.cpp:136
KStdAction::back
KAction * back(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Move back (web style menu).
Definition: kstdaction.cpp:208
KStdAction::Clear
Definition: kstdaction.h:159
KStdAction::fitToWidth
KAction * fitToWidth(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Fit the document view to the width of the current window.
Definition: kstdaction.cpp:194
KStdAction::configureNotifications
KAction * configureNotifications(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
The Configure Notifications dialog.
Definition: kstdaction.cpp:304
KAboutData::programName
QString programName() const
KStdAction::openRecent
KRecentFilesAction * openRecent(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Open a recently used document.
Definition: kstdaction.cpp:146
KStdAction::gotoPage
KAction * gotoPage(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Go to a specific page (dialog).
Definition: kstdaction.cpp:220
KStdAction::aboutKDE
KAction * aboutKDE(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Display the About KDE dialog.
Definition: kstdaction.cpp:320
KPasteTextAction
An action for pasting text from the clipboard.
Definition: kactionclasses.h:1368
KStdAction::find
KAction * find(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Initiate a 'find' request in the current document.
Definition: kstdaction.cpp:182
KRecentFilesAction
Recent files action.
Definition: kactionclasses.h:696
KStdAction::cut
KAction * cut(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Cut selected area and store it in the clipboard.
Definition: kstdaction.cpp:168
KStdAction::close
KAction * close(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Close the current document.
Definition: kstdaction.cpp:158
KStdAction::findPrev
KAction * findPrev(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Find a previous instance of a stored 'find'.
Definition: kstdaction.cpp:186
KAction
Class to encapsulate user-driven action or event.
Definition: kaction.h:202
KStdAction::zoomOut
KAction * zoomOut(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Zoom out.
Definition: kstdaction.cpp:200
KStdAction::configureToolbars
KAction * configureToolbars(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
The Customize Toolbar dialog.
Definition: kstdaction.cpp:302
KStdAction::next
KAction * next(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Scroll down one page.
Definition: kstdaction.cpp:216
KStdAction::forward
KAction * forward(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Move forward (web style menu).
Definition: kstdaction.cpp:210
KStdAction::zoom
KAction * zoom(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Popup a zoom dialog.
Definition: kstdaction.cpp:202
KToggleAction
Checkbox like action.
Definition: kactionclasses.h:68
KAction::setWhatsThis
virtual void setWhatsThis(const QString &text)
Sets the What's this text for the action.
Definition: kaction.cpp:995
KToggleFullScreenAction
An action for switching between to/from full screen mode.
Definition: kactionclasses.h:1254
KStdAction::switchApplicationLanguage
KAction * switchApplicationLanguage(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Display "Switch application language" dialog.
Definition: kstdaction.cpp:316
endl
kndbgstream & endl(kndbgstream &s)
KStdAction::quit
KAction * quit(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Quit the program.
Definition: kstdaction.cpp:162
KStdAction::FullScreen
Definition: kstdaction.h:158
KStdAction::aboutApp
KAction * aboutApp(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Display the application's About box.
Definition: kstdaction.cpp:318
KStdAction::paste
KAction * 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: kstdaction.cpp:172
KStdAction::findNext
KAction * findNext(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Find the next instance of a stored 'find'.
Definition: kstdaction.cpp:184
KStdAction::save
KAction * save(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Save the current document.
Definition: kstdaction.cpp:148
KStdAction::addBookmark
KAction * addBookmark(const QObject *recvr, const char *slot, KActionCollection *parent, const char *name)
Add the current page to the bookmarks tree.
Definition: kstdaction.cpp:228

KDE Home | KDE Accessibility Home | Description of Access Keys