• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeui
 

tdeui

  • tdeui
kstdaction.cpp
1 /* This file is part of the KDE libraries
2  Copyright (C) 1999,2000 Kurt Granroth <granroth@kde.org>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License version 2 as published by the Free Software Foundation.
7 
8  This library is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  Library General Public License for more details.
12 
13  You should have received a copy of the GNU Library General Public License
14  along with this library; see the file COPYING.LIB. If not, write to
15  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16  Boston, MA 02110-1301, USA.
17 */
18 
19 #include "kstdaction.h"
20 
21 #include <tqtoolbutton.h>
22 #include <tqwhatsthis.h>
23 
24 #include <tdeaboutdata.h>
25 #include <tdeaction.h>
26 #include <tdeapplication.h>
27 #include <kdebug.h>
28 #include <tdeglobal.h>
29 #include <kiconloader.h>
30 #include <tdelocale.h>
31 #include <tdestdaccel.h>
32 #include <tdemainwindow.h>
33 #include "kstdaction_p.h"
34 
35 namespace KStdAction
36 {
37 
38 TQStringList stdNames()
39 {
40  return internal_stdNames();
41 }
42 
43 TDEAction* create( StdAction id, const char *name, const TQObject *recvr, const char *slot, TDEActionCollection* parent )
44 {
45  TDEAction* pAction = 0;
46  const KStdActionInfo* pInfo = infoPtr( id );
47  kdDebug(125) << "KStdAction::create( " << id << "=" << (pInfo ? pInfo->psName : (const char*)0) << ", " << parent << ", " << name << " )" << endl; // ellis
48  if( pInfo ) {
49  TQString sLabel, iconName = pInfo->psIconName;
50  switch( id ) {
51  case Back: sLabel = i18n("go back", "&Back");
52  if (TQApplication::reverseLayout() )
53  iconName = "forward";
54  break;
55 
56  case Forward: sLabel = i18n("go forward", "&Forward");
57  if (TQApplication::reverseLayout() )
58  iconName = "back";
59  break;
60 
61  case Home: sLabel = i18n("beginning (of line)", "&Home"); break;
62  case Help: sLabel = i18n("show help", "&Help"); break;
63  case AboutApp: iconName = kapp->miniIconName();
64  case Preferences:
65  case HelpContents:
66  {
67  const TDEAboutData *aboutData = TDEGlobal::instance()->aboutData();
68  /* TODO KDE4
69  const TDEAboutData *aboutData;
70  if ( parent )
71  aboutData = parent->instance()->aboutData();
72  else
73  aboutData = TDEGlobal::instance()->aboutData();
74  */
75  TQString appName = (aboutData) ? aboutData->programName() : TQString::fromLatin1(tqApp->name());
76  sLabel = i18n(pInfo->psLabel).arg(appName);
77  }
78  break;
79  default: sLabel = i18n(pInfo->psLabel);
80  }
81 
82  if (TQApplication::reverseLayout()){
83  if (id == Prior) iconName = "forward";
84  if (id == Next ) iconName = "back";
85  if (id == FirstPage) iconName = "go-last";
86  if (id == LastPage) iconName = "go-first";
87  }
88 
89  TDEShortcut cut = TDEStdAccel::shortcut(pInfo->idAccel);
90  switch( id ) {
91  case OpenRecent:
92  pAction = new TDERecentFilesAction( sLabel, pInfo->psIconName, cut,
93  recvr, slot,
94  parent, (name) ? name : pInfo->psName );
95  break;
96  case ShowMenubar:
97  case ShowToolbar:
98  case ShowStatusbar:
99  {
100  TDEToggleAction *ret;
101  ret = new TDEToggleAction( sLabel, pInfo->psIconName, cut,
102  recvr, slot,
103  parent, (name) ? name : pInfo->psName );
104  ret->setChecked( true );
105  pAction = ret;
106  break;
107  }
108  case FullScreen:
109  {
110  TDEToggleFullScreenAction *ret;
111  ret = new TDEToggleFullScreenAction( cut, recvr, slot,
112  parent, NULL, (name) ? name : pInfo->psName );
113  ret->setChecked( false );
114  pAction = ret;
115  break;
116  }
117  case PasteText:
118  {
119  TDEPasteTextAction *ret;
120  ret = new TDEPasteTextAction(sLabel, iconName, cut,
121  recvr, slot,
122  parent, (name) ? name : pInfo->psName );
123  pAction = ret;
124  break;
125  }
126  default:
127  pAction = new TDEAction( sLabel, iconName, cut,
128  recvr, slot,
129  parent, (name) ? name : pInfo->psName );
130  break;
131  }
132  }
133  return pAction;
134 }
135 
136 const char* name( StdAction id )
137 {
138  const KStdActionInfo* pInfo = infoPtr( id );
139  return (pInfo) ? pInfo->psName : 0;
140 }
141 
142 TDEAction *openNew( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
143  { return KStdAction::create( New, name, recvr, slot, parent ); }
144 TDEAction *open( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
145  { return KStdAction::create( Open, name, recvr, slot, parent ); }
146 TDERecentFilesAction *openRecent( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
147  { return (TDERecentFilesAction*) KStdAction::create( OpenRecent, name, recvr, slot, parent ); }
148 TDEAction *save( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
149  { return KStdAction::create( Save, name, recvr, slot, parent ); }
150 TDEAction *saveAs( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
151  { return KStdAction::create( SaveAs, name, recvr, slot, parent ); }
152 TDEAction *revert( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
153  { return KStdAction::create( Revert, name, recvr, slot, parent ); }
154 TDEAction *print( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
155  { return KStdAction::create( Print, name, recvr, slot, parent ); }
156 TDEAction *printPreview( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
157  { return KStdAction::create( PrintPreview, name, recvr, slot, parent ); }
158 TDEAction *close( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
159  { return KStdAction::create( Close, name, recvr, slot, parent ); }
160 TDEAction *mail( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
161  { return KStdAction::create( Mail, name, recvr, slot, parent ); }
162 TDEAction *quit( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
163  { return KStdAction::create( Quit, name, recvr, slot, parent ); }
164 TDEAction *undo( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
165  { return KStdAction::create( Undo, name, recvr, slot, parent ); }
166 TDEAction *redo( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
167  { return KStdAction::create( Redo, name, recvr, slot, parent ); }
168 TDEAction *cut( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
169  { return KStdAction::create( Cut, name, recvr, slot, parent ); }
170 TDEAction *copy( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
171  { return KStdAction::create( Copy, name, recvr, slot, parent ); }
172 TDEAction *paste( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
173  { return KStdAction::create( Paste, name, recvr, slot, parent ); }
174 TDEAction *pasteText( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
175  { return KStdAction::create( PasteText, name, recvr, slot, parent ); }
176 TDEAction *clear( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
177  { return KStdAction::create( Clear, name, recvr, slot, parent ); }
178 TDEAction *selectAll( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
179  { return KStdAction::create( SelectAll, name, recvr, slot, parent ); }
180 TDEAction *deselect( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
181  { return KStdAction::create( Deselect, name, recvr, slot, parent ); }
182 TDEAction *find( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
183  { return KStdAction::create( Find, name, recvr, slot, parent ); }
184 TDEAction *findNext( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
185  { return KStdAction::create( FindNext, name, recvr, slot, parent ); }
186 TDEAction *findPrev( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
187  { return KStdAction::create( FindPrev, name, recvr, slot, parent ); }
188 TDEAction *replace( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
189  { return KStdAction::create( Replace, name, recvr, slot, parent ); }
190 TDEAction *actualSize( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
191  { return KStdAction::create( ActualSize, name, recvr, slot, parent ); }
192 TDEAction *fitToPage( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
193  { return KStdAction::create( FitToPage, name, recvr, slot, parent ); }
194 TDEAction *fitToWidth( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
195  { return KStdAction::create( FitToWidth, name, recvr, slot, parent ); }
196 TDEAction *fitToHeight( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
197  { return KStdAction::create( FitToHeight, name, recvr, slot, parent ); }
198 TDEAction *zoomIn( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
199  { return KStdAction::create( ZoomIn, name, recvr, slot, parent ); }
200 TDEAction *zoomOut( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
201  { return KStdAction::create( ZoomOut, name, recvr, slot, parent ); }
202 TDEAction *zoom( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
203  { return KStdAction::create( Zoom, name, recvr, slot, parent ); }
204 TDEAction *redisplay( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
205  { return KStdAction::create( Redisplay, name, recvr, slot, parent ); }
206 TDEAction *up( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
207  { return KStdAction::create( Up, name, recvr, slot, parent ); }
208 TDEAction *back( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
209  { return KStdAction::create( Back, name, recvr, slot, parent ); }
210 TDEAction *forward( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
211  { return KStdAction::create( Forward, name, recvr, slot, parent ); }
212 TDEAction *home( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
213  { return KStdAction::create( Home, name, recvr, slot, parent ); }
214 TDEAction *prior( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
215  { return KStdAction::create( Prior, name, recvr, slot, parent ); }
216 TDEAction *next( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
217  { return KStdAction::create( Next, name, recvr, slot, parent ); }
218 TDEAction *goTo( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
219  { return KStdAction::create( Goto, name, recvr, slot, parent ); }
220 TDEAction *gotoPage( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
221  { return KStdAction::create( GotoPage, name, recvr, slot, parent ); }
222 TDEAction *gotoLine( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
223  { return KStdAction::create( GotoLine, name, recvr, slot, parent ); }
224 TDEAction *firstPage( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
225  { return KStdAction::create( FirstPage, name, recvr, slot, parent ); }
226 TDEAction *lastPage( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
227  { return KStdAction::create( LastPage, name, recvr, slot, parent ); }
228 TDEAction *addBookmark( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
229  { return KStdAction::create( AddBookmark, name, recvr, slot, parent ); }
230 TDEAction *editBookmarks( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
231  { return KStdAction::create( EditBookmarks, name, recvr, slot, parent ); }
232 TDEAction *spelling( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
233  { return KStdAction::create( Spelling, name, recvr, slot, parent ); }
234 
235 TDEToggleAction *showMenubar( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *_name )
236 {
237  TDEToggleAction *ret;
238  ret = new TDEToggleAction(i18n("Show &Menubar"), "showmenu", TDEStdAccel::shortcut(TDEStdAccel::ShowMenubar), recvr, slot,
239  parent, _name ? _name : name(ShowMenubar));
240  ret->setWhatsThis( i18n( "Show Menubar<p>"
241  "Shows the menubar again after it has been hidden" ) );
242  KGuiItem guiItem( i18n("Hide &Menubar"), 0 /*same icon*/, TQString::null,
243  i18n( "Hide Menubar<p>"
244  "Hide the menubar. You can usually get it back using the right mouse button inside the window itself." ) );
245  ret->setCheckedState( guiItem );
246  ret->setChecked(true);
247  return ret;
248 }
249 
250 // obsolete
251 TDEToggleAction *showToolbar( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *_name )
252 {
253  TDEToggleAction *ret;
254  ret = new TDEToggleAction(i18n("Show &Toolbar"), 0, recvr, slot, parent,
255  _name ? _name : name(ShowToolbar));
256  ret->setChecked(true);
257  return ret;
258 
259 }
260 
261 // obsolete
262 TDEToggleToolBarAction *showToolbar( const char* toolBarName, TDEActionCollection* parent, const char *_name )
263 {
264  TDEToggleToolBarAction *ret;
265  ret = new TDEToggleToolBarAction(toolBarName, i18n("Show &Toolbar"), parent,
266  _name ? _name : name(ShowToolbar));
267  return ret;
268 }
269 
270 TDEToggleAction *showStatusbar( const TQObject *recvr, const char *slot,
271  TDEActionCollection* parent, const char *_name )
272 {
273  TDEToggleAction *ret;
274  ret = new TDEToggleAction(i18n("Show St&atusbar"), 0, recvr, slot, parent,
275  _name ? _name : name(ShowStatusbar));
276  ret->setWhatsThis( i18n( "Show Statusbar<p>"
277  "Shows the statusbar, which is the bar at the bottom of the window used for status information." ) );
278  KGuiItem guiItem( i18n("Hide St&atusbar"), TQString::null, TQString::null,
279  i18n( "Hide Statusbar<p>"
280  "Hides the statusbar, which is the bar at the bottom of the window used for status information." ) );
281  ret->setCheckedState( guiItem );
282 
283  ret->setChecked(true);
284  return ret;
285 }
286 
287 TDEToggleFullScreenAction *fullScreen( const TQObject *recvr, const char *slot, TDEActionCollection* parent,
288  TQWidget* window, const char *name )
289 {
290  TDEToggleFullScreenAction *ret;
291  ret = static_cast< TDEToggleFullScreenAction* >( KStdAction::create( FullScreen, name, recvr, slot, parent ));
292  ret->setWindow( window );
293  return ret;
294 }
295 
296 TDEAction *saveOptions( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
297  { return KStdAction::create( SaveOptions, name, recvr, slot, parent ); }
298 TDEAction *keyBindings( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
299  { return KStdAction::create( KeyBindings, name, recvr, slot, parent ); }
300 TDEAction *preferences( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
301  { return KStdAction::create( Preferences, name, recvr, slot, parent ); }
302 TDEAction *configureToolbars( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
303  { return KStdAction::create( ConfigureToolbars, name, recvr, slot, parent ); }
304 TDEAction *configureNotifications( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
305  { return KStdAction::create( ConfigureNotifications, name, recvr, slot, parent ); }
306 TDEAction *help( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
307  { return KStdAction::create( Help, name, recvr, slot, parent ); }
308 TDEAction *helpContents( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
309  { return KStdAction::create( HelpContents, name, recvr, slot, parent ); }
310 TDEAction *whatsThis( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
311  { return KStdAction::create( WhatsThis, name, recvr, slot, parent ); }
312 TDEAction *tipOfDay( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
313  { return KStdAction::create( TipofDay, name, recvr, slot, parent ); }
314 TDEAction *reportBug( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
315  { return KStdAction::create( ReportBug, name, recvr, slot, parent ); }
316 TDEAction *switchApplicationLanguage( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
317  { return KStdAction::create( SwitchApplicationLanguage, name, recvr, slot, parent ); }
318 TDEAction *aboutApp( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
319  { return KStdAction::create( AboutApp, name, recvr, slot, parent ); }
320 TDEAction *aboutKDE( const TQObject *recvr, const char *slot, TDEActionCollection* parent, const char *name )
321  { return KStdAction::create( AboutKDE, name, recvr, slot, parent ); }
322 
323 }
KGuiItem
An abstract class for GUI data such as ToolTip and Icon.
Definition: kguiitem.h:39
TDEAboutData
TDEAboutData::programName
TQString programName() const
TDEActionCollection
A managed set of TDEAction objects.
Definition: tdeactioncollection.h:79
TDEAction
Class to encapsulate user-driven action or event.
Definition: tdeaction.h:203
TDEAction::setWhatsThis
virtual void setWhatsThis(const TQString &text)
Sets the What's this text for the action.
Definition: tdeaction.cpp:1011
TDEGlobal::instance
static TDEInstance * instance()
TDEInstance::aboutData
const TDEAboutData * aboutData() const
TDEPasteTextAction
An action for pasting text from the clipboard.
Definition: tdeactionclasses.h:1382
TDERecentFilesAction
Recent files action.
Definition: tdeactionclasses.h:701
TDEShortcut
TDEToggleAction
Checkbox like action.
Definition: tdeactionclasses.h:69
TDEToggleAction::setCheckedState
void setCheckedState(const KGuiItem &checkedItem)
Defines the text (and icon, tooltip, whatsthis) that should be displayed instead of the normal text,...
Definition: tdeactionclasses.cpp:259
TDEToggleAction::setChecked
virtual void setChecked(bool)
Sets the state of the action.
Definition: tdeactionclasses.cpp:165
TDEToggleFullScreenAction
An action for switching between to/from full screen mode.
Definition: tdeactionclasses.h:1265
TDEToggleFullScreenAction::setWindow
void setWindow(TQWidget *window)
Sets the window that will be related to this action.
Definition: tdeactionclasses.cpp:2080
TDEToggleToolBarAction
An action that takes care of everything associated with showing or hiding a toolbar by a menu action.
Definition: tdeactionclasses.h:1218
endl
kndbgstream & endl(kndbgstream &s)
kdDebug
kdbgstream kdDebug(int area=0)
KStdAction
Convenience methods to access all standard KDE actions.
Definition: kstdaction.cpp:36
KStdAction::goTo
TDEAction * goTo(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Go to somewhere in general.
Definition: kstdaction.cpp:218
KStdAction::close
TDEAction * close(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Close the current document.
Definition: kstdaction.cpp:158
KStdAction::selectAll
TDEAction * selectAll(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Select all elements in the current document.
Definition: kstdaction.cpp:178
KStdAction::deselect
TDEAction * deselect(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Deselect any selected elements in the current document.
Definition: kstdaction.cpp:180
KStdAction::addBookmark
TDEAction * addBookmark(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Add the current page to the bookmarks tree.
Definition: kstdaction.cpp:228
KStdAction::next
TDEAction * next(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Scroll down one page.
Definition: kstdaction.cpp:216
KStdAction::save
TDEAction * save(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Save the current document.
Definition: kstdaction.cpp:148
KStdAction::zoom
TDEAction * zoom(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Popup a zoom dialog.
Definition: kstdaction.cpp:202
KStdAction::back
TDEAction * back(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Move back (web style menu).
Definition: kstdaction.cpp:208
KStdAction::stdNames
TQStringList stdNames()
Definition: kstdaction.cpp:38
KStdAction::whatsThis
TDEAction * whatsThis(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Trigger the What's This cursor.
Definition: kstdaction.cpp:310
KStdAction::openRecent
TDERecentFilesAction * openRecent(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Open a recently used document.
Definition: kstdaction.cpp:146
KStdAction::paste
TDEAction * 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: kstdaction.cpp:172
KStdAction::actualSize
TDEAction * actualSize(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
View the document at its actual size.
Definition: kstdaction.cpp:190
KStdAction::gotoLine
TDEAction * gotoLine(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Go to a specific line (dialog).
Definition: kstdaction.cpp:222
KStdAction::spelling
TDEAction * spelling(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Pop up the spell checker.
Definition: kstdaction.cpp:232
KStdAction::aboutKDE
TDEAction * aboutKDE(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Display the About KDE dialog.
Definition: kstdaction.cpp:320
KStdAction::showToolbar
TDEToggleAction * showToolbar(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *_name)
Definition: kstdaction.cpp:251
KStdAction::undo
TDEAction * undo(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Undo the last operation.
Definition: kstdaction.cpp:164
KStdAction::preferences
TDEAction * preferences(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Display the preferences/options dialog.
Definition: kstdaction.cpp:300
KStdAction::fitToWidth
TDEAction * fitToWidth(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Fit the document view to the width of the current window.
Definition: kstdaction.cpp:194
KStdAction::redo
TDEAction * redo(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Redo the last operation.
Definition: kstdaction.cpp:166
KStdAction::prior
TDEAction * prior(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Scroll up one page.
Definition: kstdaction.cpp:214
KStdAction::configureToolbars
TDEAction * configureToolbars(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
The Customize Toolbar dialog.
Definition: kstdaction.cpp:302
KStdAction::editBookmarks
TDEAction * editBookmarks(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Edit the application bookmarks.
Definition: kstdaction.cpp:230
KStdAction::lastPage
TDEAction * lastPage(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Jump to the last page.
Definition: kstdaction.cpp:226
KStdAction::gotoPage
TDEAction * gotoPage(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Go to a specific page (dialog).
Definition: kstdaction.cpp:220
KStdAction::tipOfDay
TDEAction * tipOfDay(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Display "Tip of the Day".
Definition: kstdaction.cpp:312
KStdAction::mail
TDEAction * mail(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Mail this document.
Definition: kstdaction.cpp:160
KStdAction::cut
TDEAction * cut(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Cut selected area and store it in the clipboard.
Definition: kstdaction.cpp:168
KStdAction::configureNotifications
TDEAction * configureNotifications(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
The Configure Notifications dialog.
Definition: kstdaction.cpp:304
KStdAction::open
TDEAction * open(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Open an existing file.
Definition: kstdaction.cpp:144
KStdAction::revert
TDEAction * 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: kstdaction.cpp:152
KStdAction::findPrev
TDEAction * findPrev(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Find a previous instance of a stored 'find'.
Definition: kstdaction.cpp:186
KStdAction::home
TDEAction * home(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Go to the "Home" position or document.
Definition: kstdaction.cpp:212
KStdAction::helpContents
TDEAction * helpContents(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Display the help contents.
Definition: kstdaction.cpp:308
KStdAction::firstPage
TDEAction * firstPage(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Jump to the first page.
Definition: kstdaction.cpp:224
KStdAction::redisplay
TDEAction * redisplay(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Redisplay or redraw the document.
Definition: kstdaction.cpp:204
KStdAction::quit
TDEAction * quit(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Quit the program.
Definition: kstdaction.cpp:162
KStdAction::saveOptions
TDEAction * saveOptions(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Display the save options dialog.
Definition: kstdaction.cpp:296
KStdAction::zoomOut
TDEAction * zoomOut(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Zoom out.
Definition: kstdaction.cpp:200
KStdAction::showStatusbar
TDEToggleAction * showStatusbar(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *_name)
Show/Hide the statusbar.
Definition: kstdaction.cpp:270
KStdAction::replace
TDEAction * replace(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Find and replace matches.
Definition: kstdaction.cpp:188
KStdAction::findNext
TDEAction * findNext(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Find the next instance of a stored 'find'.
Definition: kstdaction.cpp:184
KStdAction::StdAction
StdAction
The standard menubar and toolbar actions.
Definition: kstdaction.h:122
KStdAction::Clear
@ Clear
Definition: kstdaction.h:159
KStdAction::PasteText
@ PasteText
Definition: kstdaction.h:160
KStdAction::TipofDay
@ TipofDay
Definition: kstdaction.h:154
KStdAction::SwitchApplicationLanguage
@ SwitchApplicationLanguage
Definition: kstdaction.h:161
KStdAction::FullScreen
@ FullScreen
Definition: kstdaction.h:158
KStdAction::help
TDEAction * help(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Display the help.
Definition: kstdaction.cpp:306
KStdAction::pasteText
TDEAction * pasteText(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Paste the contents of clipboard at the current mouse or cursor position.
Definition: kstdaction.cpp:174
KStdAction::switchApplicationLanguage
TDEAction * switchApplicationLanguage(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Display "Switch application language" dialog.
Definition: kstdaction.cpp:316
KStdAction::zoomIn
TDEAction * zoomIn(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Zoom in.
Definition: kstdaction.cpp:198
KStdAction::aboutApp
TDEAction * aboutApp(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Display the application's About box.
Definition: kstdaction.cpp:318
KStdAction::reportBug
TDEAction * reportBug(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Open up the Report Bug dialog.
Definition: kstdaction.cpp:314
KStdAction::printPreview
TDEAction * printPreview(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Show a print preview of the current document.
Definition: kstdaction.cpp:156
KStdAction::find
TDEAction * find(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Initiate a 'find' request in the current document.
Definition: kstdaction.cpp:182
KStdAction::openNew
TDEAction * openNew(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Create a new document or window.
Definition: kstdaction.cpp:142
KStdAction::up
TDEAction * up(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Move up (web style menu).
Definition: kstdaction.cpp:206
KStdAction::forward
TDEAction * forward(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Move forward (web style menu).
Definition: kstdaction.cpp:210
KStdAction::clear
TDEAction * clear(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Clear the content of the focus widget.
Definition: kstdaction.cpp:176
KStdAction::saveAs
TDEAction * saveAs(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Save the current document under a different name.
Definition: kstdaction.cpp:150
KStdAction::fullScreen
TDEToggleFullScreenAction * fullScreen(const TQObject *recvr, const char *slot, TDEActionCollection *parent, TQWidget *window, const char *name)
Switch to/from full screen mode.
Definition: kstdaction.cpp:287
KStdAction::copy
TDEAction * copy(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Copy the selected area into the clipboard.
Definition: kstdaction.cpp:170
KStdAction::print
TDEAction * print(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Print the current document.
Definition: kstdaction.cpp:154
KStdAction::showMenubar
TDEToggleAction * showMenubar(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *_name)
Show/Hide the menubar.
Definition: kstdaction.cpp:235
KStdAction::fitToPage
TDEAction * fitToPage(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Fit the document view to the size of the current window.
Definition: kstdaction.cpp:192
KStdAction::fitToHeight
TDEAction * fitToHeight(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Fit the document view to the height of the current window.
Definition: kstdaction.cpp:196
KStdAction::create
TDEAction * create(StdAction id, const char *name, const TQObject *recvr, const char *slot, TDEActionCollection *parent)
Creates an action corresponding to the KStdAction::StdAction enum.
Definition: kstdaction.cpp:43
KStdAction::name
const char * name(StdAction id)
This will return the internal name of a given standard action.
Definition: kstdaction.cpp:136
KStdAction::keyBindings
TDEAction * keyBindings(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Display the configure key bindings dialog.
Definition: kstdaction.cpp:298
TDEStdAccel::shortcut
const TDEShortcut & shortcut(StdAccel id)
tdelocale.h

tdeui

Skip menu "tdeui"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdeui

Skip menu "tdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeui by doxygen 1.9.1
This website is maintained by Timothy Pearson.