tdemainwindow.cpp
296 int m = XParseGeometry( kapp->geometryArgument().latin1(), &x, &y, (unsigned int*)&w, (unsigned int*)&h);
767 group = (!::qstrcmp(toolbar->name(), "unnamed") ? TQString::number(n) : TQString(" ")+toolbar->name());
807 d->showStatusBarAction = KStdAction::showStatusbar(this, TQ_SLOT(setSettingsDirty()), actionCollection());
828 setName( config->readEntry(TQString::fromLatin1("ObjectName")).latin1()); // latin1 is right here
843 void TDEMainWindow::applyMainWindowSettings(TDEConfig *config, const TQString &configGroup,bool force)
882 group = (!::qstrcmp(toolbar->name(), "unnamed") ? TQString::number(n) : TQString(" ")+toolbar->name());
952 d->defaultWindowSize = TQRect(desk.width(), width(), desk.height(), height()); // store default values
Definition: tdetoolbarhandler.h:35
TDEPopupMenu * menu()
Returns a popup menu you can use in the menu bar or where you need it.
Definition: khelpmenu.cpp:112
virtual bool saveState(TQSessionManager &sm)
virtual bool commitData(TQSessionManager &sm)
unsigned long state() const
static WindowInfo windowInfo(WId win, unsigned long properties=0, unsigned long properties2=0)
static void setState(WId win, unsigned long state)
static void setIcons(WId win, const TQPixmap &icon, const TQPixmap &miniIcon)
Abstract interface for a "GUI builder", used by the GUIFactory This interface is implemented by TDEMa...
Definition: kxmlguibuilder.h:40
A KXMLGUIClient can be used with KXMLGUIFactory to create a GUI from actions and an XML document,...
Definition: kxmlguiclient.h:44
virtual TQString xmlFile() const
This will return the name of the XML file as set by setXMLFile().
Definition: kxmlguiclient.cpp:133
void setXMLGUIBuildDocument(const TQDomDocument &doc)
Definition: kxmlguiclient.cpp:540
virtual void setXMLFile(const TQString &file, bool merge=false, bool setXMLDoc=true)
Sets the name of the rc file containing the XML for the part.
Definition: kxmlguiclient.cpp:165
KXMLGUIFactory * factory() const
Retrieves a pointer to the KXMLGUIFactory this client is associated with (will return 0L if the clien...
Definition: kxmlguiclient.cpp:555
virtual void conserveMemory()
This function will attempt to give up some memory after the GUI is built.
Definition: kxmlguiclient.cpp:534
virtual void stateChanged(const TQString &newstate, ReverseStateChange reverse=StateNoReverse)
Actions can collectively be assigned a "State".
Definition: kxmlguiclient.cpp:899
virtual TDEActionCollection * actionCollection() const
Retrieves the entire action collection for the GUI client.
Definition: kxmlguiclient.cpp:107
virtual TQDomDocument domDocument() const
Definition: kxmlguiclient.cpp:128
KXMLGUIFactory, together with KXMLGUIClient objects, can be used to create a GUI of container widgets...
Definition: kxmlguifactory.h:62
void removeClient(KXMLGUIClient *client)
Removes the GUI described by the client, by unplugging all provided actions and removing all owned co...
Definition: kxmlguifactory.cpp:321
void addClient(KXMLGUIClient *client)
Creates the GUI described by the TQDomDocument of the client, using the client's actions,...
Definition: kxmlguifactory.cpp:224
void resetContainer(const TQString &containerName, bool useTagName=false)
Use this method to free all memory allocated by the KXMLGUIFactory for a specific container,...
Definition: kxmlguifactory.cpp:413
TDEAccel * tdeaccel()
Returns the TDEAccel object of the most recently set widget.
Definition: tdeactioncollection.cpp:282
virtual void setWidget(TQWidget *widget)
This sets the widget to which the keyboard shortcuts should be attached.
Definition: tdeactioncollection.cpp:152
static TDEApplication * kApplication()
TDEConfig * sessionConfig()
bool hasDefault(const TQString &key) const
TQString readEntry(const TQString &pKey, const TQString &aDefault=TQString::null) const
void revertToDefault(const TQString &key)
int readNumEntry(const TQString &pKey, int nDefault=0) const
TQString group() const
virtual void sync()
bool hasKey(const TQString &key) const
void writeEntry(const TQString &pKey, const TQString &pValue, bool bPersistent=true, bool bGlobal=false, bool bNLS=false)
void setGroup(const TQString &group)
static TDEConfig * config()
virtual void readProperties(TDEConfig *)
Read your instance-specific properties.
Definition: tdemainwindow.h:890
TDEPopupMenu * customHelpMenu(bool showWhatsThis=true)
Returns the help menu.
Definition: tdemainwindow.cpp:350
bool restore(int number, bool show=true)
Restore the session specified by number.
Definition: tdemainwindow.cpp:420
void createStandardStatusBarAction()
Sets whether TDEMainWindow should provide a menu that allows showing/hiding of the statusbar ( using ...
Definition: tdemainwindow.cpp:805
void setHelpMenuEnabled(bool showHelpMenu=true)
Enables the build of a standard help menu when calling createGUI().
Definition: tdemainwindow.cpp:580
TDEToolBar * toolBar(const char *name=0)
Returns a pointer to the toolbar with the specified name.
Definition: tdemainwindow.cpp:1160
virtual void finalizeGUI(KXMLGUIClient *client)
Definition: tdemainwindow.cpp:1258
virtual bool queryClose()
Called before the window is closed, either by the user or indirectly by the session manager.
Definition: tdemainwindow.cpp:678
void setupToolbarMenuActions()
Definition: tdemainwindow.cpp:282
static const TQString classNameOfToplevel(int number)
Returns the className() of the number of the toplevel window which should be restored.
Definition: tdemainwindow.cpp:373
void setupGUI(int options=ToolBar|Keys|StatusBar|Save|Create, const TQString &xmlfile=TQString::null)
Configures the current windows and its actions in the typical KDE fashion.
Definition: tdemainwindow.cpp:454
void setStandardToolBarMenuEnabled(bool enable)
Sets whether TDEMainWindow should provide a menu that allows showing/hiding the available toolbars ( ...
Definition: tdemainwindow.cpp:778
virtual void setCaption(const TQString &caption)
Makes a KDE compliant caption.
Definition: tdemainwindow.cpp:590
TDEAction * toolBarMenuAction()
Returns a pointer to the mainwindows action responsible for the toolbars menu.
Definition: tdemainwindow.cpp:273
TDEPopupMenu * helpMenu(const TQString &aboutAppText=TQString::null, bool showWhatsThis=true)
Retrieve the standard help menu.
Definition: tdemainwindow.cpp:333
void saveNewToolbarConfig()
Rebuilds the GUI after KEditToolbar changed the toolbar layout.
Definition: tdemainwindow.cpp:448
virtual void readGlobalProperties(TDEConfig *sessionConfig)
The counterpart of saveGlobalProperties().
Definition: tdemainwindow.cpp:687
static TQPtrList< TDEMainWindow > * getMemberList()
List of members of TDEMainWindow class.
Definition: tdemainwindow.cpp:1254
void saveMainWindowSettings(TDEConfig *config, const TQString &groupName=TQString::null)
Save settings for statusbar, menubar and toolbar to their respective groups in the config file config...
Definition: tdemainwindow.cpp:725
void resetAutoSaveSettings()
Disable the auto-save-settings feature.
Definition: tdemainwindow.cpp:1051
void parseGeometry(bool parsewidth)
parse the geometry from the geometry command line argument
Definition: tdemainwindow.cpp:288
TQSize sizeForCentralWidgetSize(TQSize size) TDE_DEPRECATED
Definition: tdemainwindow.cpp:1202
@ Create
calls createGUI() once ToolBar, Keys and Statusbar have been taken care of.
Definition: tdemainwindow.h:591
@ Save
auto-saves (and loads) the toolbar/menubar/statusbar settings and window size using the default name.
Definition: tdemainwindow.h:585
@ ToolBar
adds action to show/hide the toolbar(s) and adds action to configure the toolbar(s).
Definition: tdemainwindow.h:562
@ StatusBar
adds action to show/hide the statusbar if the statusbar exists.
Definition: tdemainwindow.h:573
void saveWindowSize(TDEConfig *config) const
For inherited classes Note that the group must be set before calling.
Definition: tdemainwindow.cpp:911
static TQPtrList< TDEMainWindow > * memberList
List of members of TDEMainWindow class.
Definition: tdemainwindow.h:394
virtual void closeEvent(TQCloseEvent *)
Reimplemented to call the queryClose() and queryExit() handlers.
Definition: tdemainwindow.cpp:643
void restoreWindowSize(TDEConfig *config)
For inherited classes Note that the group must be set before calling, and that a -geometry on the com...
Definition: tdemainwindow.cpp:943
virtual void saveGlobalProperties(TDEConfig *sessionConfig)
Save your application-wide properties.
Definition: tdemainwindow.cpp:683
void setAutoSaveSettings(const TQString &groupName=TQString::fromLatin1("MainWindow"), bool saveWindowSize=true)
Call this to enable "auto-save" of toolbar/menubar/statusbar settings (and optionally window size).
Definition: tdemainwindow.cpp:1036
void applyMainWindowSettings(TDEConfig *config, const TQString &groupName, bool force)
Read settings for statusbar, menubar and toolbar from their respective groups in the config file and ...
Definition: tdemainwindow.cpp:843
bool isStandardToolBarMenuEnabled() const
Definition: tdemainwindow.cpp:800
TQPtrListIterator< TDEToolBar > toolBarIterator()
Definition: tdemainwindow.cpp:1175
virtual void saveProperties(TDEConfig *)
Save your instance-specific properties.
Definition: tdemainwindow.h:885
TDEMainWindow(TQWidget *parent=0, const char *name=0, WFlags f=(WFlags)(WType_TopLevel|WDestructiveClose))
Construct a main window.
Definition: tdemainwindow.cpp:168
virtual void slotStateChanged(const TQString &newstate)
Apply a state change.
Definition: tdemainwindow.cpp:619
void saveAutoSaveSettings()
This slot should only be called in case you reimplement closeEvent() and if you are using the "auto-s...
Definition: tdemainwindow.cpp:1068
virtual void setPlainCaption(const TQString &caption)
Make a plain caption without any modifications.
Definition: tdemainwindow.cpp:600
void createGUI(const TQString &xmlfile=TQString::null, bool _conserveMemory=true)
Create a GUI given a local XML file.
Definition: tdemainwindow.cpp:500
void applySettings(TDEConfig *config, const TQString &configGroup, bool force)
Read the toolbar settings from group configGroup in config and apply them.
Definition: tdetoolbar.cpp:1645
void saveSettings(TDEConfig *config, const TQString &configGroup)
Save the toolbar settings to group configGroup in config.
Definition: tdetoolbar.cpp:1043
kndbgstream & endl(kndbgstream &s)
kdbgstream kdDebug(int area=0)
TQString locate(const char *type, const TQString &filename, const TDEInstance *instance=TDEGlobal::instance())
TDEAction * configureToolbars(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
The Customize Toolbar dialog.
Definition: kstdaction.cpp:302
TDEToggleAction * showStatusbar(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *_name)
Show/Hide the statusbar.
Definition: kstdaction.cpp:270
TDEAction * keyBindings(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Display the configure key bindings dialog.
Definition: kstdaction.cpp:298
TQString name(StdAccel id)