tdeapplication.h
188 TDEApplication(Display *display, bool disable_argb, TQt::HANDLE visual, TQt::HANDLE colormap, bool allowStyles);
269 const TQCString& rAppName, bool allowStyles=true, bool GUIenabled=true, bool SMenabled=true) TDE_DEPRECATED;
546 void invokeHTMLHelp( const TQString& aFilename, const TQString& aTopic = TQString::null ) const TDE_DEPRECATED;
556 void invokeMailer( const TQString &address, const TQString &subject, const TQCString& startup_id );
718 TQString *error=0, TQCString *dcopService=0, int *pid=0, const TQCString &startup_id = "", bool noWait = false );
741 TQString *error=0, TQCString *dcopService=0, int *pid=0, const TQCString &startup_id = "", bool noWait = false );
764 TQString *error=0, TQCString *dcopService=0, int *pid = 0, const TQCString &startup_id = "", bool noWait = false );
786 static int startServiceByDesktopPath( const TQString& _name, const TQStringList &URLs=TQStringList(),
787 TQString *error=0, TQCString *dcopService=0, int *pid = 0, const TQCString &startup_id = "", bool noWait = false );
810 TQString *error=0, TQCString *dcopService=0, int *pid = 0, const TQCString &startup_id = "", bool noWait = false );
832 static int startServiceByDesktopName( const TQString& _name, const TQStringList &URLs=TQStringList(),
833 TQString *error=0, TQCString *dcopService=0, int *pid = 0, const TQCString &startup_id = "", bool noWait = false );
Provides highlevel access to session management on a per-object base.
Definition tdeapplication.h:1612
virtual bool saveState(TQSessionManager &sm)
See TQApplication::saveState() for documentation.
Definition tdeapplication.cpp:1272
virtual bool commitData(TQSessionManager &sm)
See TQApplication::commitData() for documentation.
Definition tdeapplication.cpp:1277
Controls and provides information to all KDE applications.
Definition tdeapplication.h:95
void invokeHTMLHelp(const TQString &aFilename, const TQString &aTopic=TQString::null) const TDE_DEPRECATED
Definition tdeapplication.cpp:2694
void appearanceChanged()
Emitted when TDEApplication has changed either its GUI style, its font or its palette in response to ...
void copy()
If the widget with focus provides a copy() slot, call that slot.
Definition tdeapplication.cpp:3027
void settingsChanged(int category)
Emitted when the global settings have been changed - see TDEGlobalSettings TDEApplication takes care ...
static int startServiceByName(const TQString &_name, const TQString &URL, TQString *error=0, TQCString *dcopService=0, int *pid=0, const TQCString &startup_id="", bool noWait=false)
Starts a service based on the (translated) name of the service.
Definition tdeapplication.cpp:3142
ShutdownType
The possible values for the sdtype parameter of requestShutDown().
Definition tdeapplication.h:357
@ ShutdownTypeDefault
Select previous action or the default if it's the first time.
Definition tdeapplication.h:361
void tdedisplayStyleChanged()
Emitted when TDEApplication has changed its GUI style in response to a KControl request.
ShutdownMode
The possible values for the sdmode parameter of requestShutDown().
Definition tdeapplication.h:379
@ ShutdownModeInteractive
Pop up a dialog asking the user what to do if sessions are still active.
Definition tdeapplication.h:400
@ ShutdownModeDefault
Select previous mode or the default if it's the first time.
Definition tdeapplication.h:383
@ ShutdownModeSchedule
Schedule a shutdown (halt or reboot) for the time all active sessions have exited.
Definition tdeapplication.h:388
TDEApplication(bool allowStyles=true, bool GUIenabled=true, bool SMenabled=true)
This constructor takes aboutData and command line arguments from TDECmdLineArgs.
Definition tdeapplication.cpp:754
static int tdeinitExec(const TQString &name, const TQStringList &args, TQString *error, int *pid, const TQCString &startup_id)
Starts a program via tdeinit.
Definition tdeapplication.cpp:3212
CaptionLayout
Position of the caption (presumably in the application window's title bar).
Definition tdeapplication.h:104
@ CaptionAppLast
Display the application name last (before document name).
Definition tdeapplication.h:105
void toolbarAppearanceChanged(int)
Emitted when the settings for toolbars have been changed.
static TQCString launcher()
Returns the DCOP name of the service launcher.
Definition tdeapplication.cpp:3053
void tdedisplayPaletteChanged()
Emitted when TDEApplication has changed its palette due to a KControl request.
void invokeBrowser(const TQString &url, const TQCString &startup_id)
Invokes the standard browser.
Definition kapplication_win.cpp:93
static TDEApplication * kApplication()
Returns the current application object.
Definition tdeapplication.h:299
void broadcastKeyCode(unsigned int keyCode)
Broadcast a received keycode to all listening KDE applications The primary use for this feature is to...
Definition tdeapplication.cpp:3047
void invokeMailer(const TQString &address, const TQString &subject, const TQCString &startup_id)
Convenience method; invokes the standard email application.
Definition tdeapplication.cpp:2734
void paste()
If the widget with focus provides a paste() slot, call that slot.
Definition tdeapplication.cpp:3032
TQPixmap miniIcon() const
Returns the mini-icon for the application as a TQPixmap.
static int startServiceByDesktopPath(const TQString &_name, const TQString &URL, TQString *error=0, TQCString *dcopService=0, int *pid=0, const TQCString &startup_id="", bool noWait=false)
Starts a service based on the desktop path of the service.
Definition tdeapplication.cpp:3163
TQString iconName() const
Returns the name of the application icon.
Definition tdeapplication.cpp:1832
void tdedisplayFontChanged()
Emitted when TDEApplication has changed its font in response to a KControl request.
void invokeHelp(const TQString &anchor, const TQString &appname, const TQCString &startup_id) const
Invokes the KHelpCenter HTML help viewer from docbook sources.
Definition kapplication_win.cpp:77
void saveYourself()
void kipcMessage(int id, int data)
Emitted when a KIPC user message has been received.
void backgroundChanged(int desk)
Emitted when the desktop background has been changed by kcmdisplay.
void clear()
If the widget with focus provides a clear() slot, call that slot.
Definition tdeapplication.cpp:3037
TQString miniIconName() const
Returns the name of the mini-icon for the application.
Definition tdeapplication.cpp:1848
void setTopWidget(TQWidget *topWidget)
Sets the top widget of the application.
Definition tdeapplication.cpp:3334
void invokeEditSlot(const char *slot)
This method is used internally to determine which edit slots are implemented by the widget that has t...
Definition tdeapplication.cpp:2308
void cut()
If the widget with focus provides a cut() slot, call that slot.
Definition tdeapplication.cpp:3022
void iconChanged(int group)
Emitted when the global icon settings have been changed.
void selectAll()
If the widget with focus provides a selectAll() slot, call that slot.
Definition tdeapplication.cpp:3042
ShutdownConfirm
The possible values for the confirm parameter of requestShutDown().
Definition tdeapplication.h:339
@ ShutdownConfirmYes
Always confirm, ask even if the user turned it off.
Definition tdeapplication.h:351
static int tdeinitExecWait(const TQString &name, const TQStringList &args, TQString *error, int *pid, const TQCString &startup_id)
Starts a program via tdeinit and wait for it to finish.
Definition tdeapplication.cpp:3227
static int startServiceByDesktopName(const TQString &_name, const TQString &URL, TQString *error=0, TQCString *dcopService=0, int *pid=0, const TQCString &startup_id="", bool noWait=false)
Starts a service based on the desktop name of the service.
Definition tdeapplication.cpp:3184
bool isRestored() const
Is the application restored from the session manager?
Definition tdeapplication.h:318
Trinity API Reference