class KToolBar |
|
|
Floatable toolbar with auto resize. A KDE-style toolbar. KToolBar can be used as a standalone widget, but KMainWindow provides easy factories and management of one or more toolbars. KToolBar uses a global config group to load toolbar settings on construction. It will reread this config group on a KApplication.appearanceChanged() signal.
Author Reginald Stadlbauer |
|
Normal constructor. This constructor is used by the XML-GUI. If you use it, you need to call QMainWindow.addToolBar to specify the position of the toolbar. So it's simpler to use the other constructor. The toolbar will read in various global config settings for things like icon size and text position, etc. However, some of the settings will be honored only if honorStyle is set to true. All other toolbars will be IconOnly and use Medium icons.
parent - The standard toolbar parent (usually a KMainWindow) honorStyle - If true, then global settings for IconSize and IconText will be honored readConfig - whether to apply the configuration (global and application-specific) |
|
Constructor for non-XML-GUI applications. The toolbar will read in various global config settings for things like icon size and text position, etc. However, some of the settings will be honored only if honorStyle is set to true. All other toolbars will be IconOnly and use Medium icons.
objectName - The QObject name of this toolbar, required so that QMainWindow can save and load the toolbar position parentWindow - The window that should be the parent of this toolbar area - The position of the toolbar. Usually Qt.TopToolBarArea. newLine - If true, start a new line in the dock for this toolbar. honorStyle - If true, then global settings for IconSize and IconText will be honored readConfig - whether to apply the configuration (global and application-specific) |
|
|
|
Read the toolbar settings from group configGroup in config and apply them. Even default settings are re-applied if force is set. |
|
Returns the context menu enabled flag Returns true if the context menu is disabled Deprecated use contextMenuPolicy |
|
|
|
|
|
|
Reimplemented to support context menu activation on disabled tool buttons. |
|
Returns the default size for this type of toolbar. Returns the default size for this type of toolbar. |
|
Load state from an XML element, - called by KXMLGUIBuilder. |
|
Returns the main window that this toolbar is docked with. |
|
|
|
|
Save the toolbar settings to group configGroup in config. |
|
Save state into an XML element, - called by KXMLGUIBuilder. |
|
This allows you to enable or disable the context menu.
enable - If false, then the context menu will be disabled Deprecated use setContextMenuPolicy |
|
Convenience function to set icon size |
|
Enable or disable toolbar editing via drag & drop of actions. This is called by KEditToolbar and should generally be set to disabled whenever KEditToolbar is not active. |
|
Allows you to lock and unlock all toolbars (i.e., disallow/allow moving of the toobars). |
|
Sets the XML gui client. |
|
|
|
Returns whether the toolbars are currently editable (drag & drop of actions). |
|
Returns whether the toolbars are locked (i.e., moving of the toobars disallowed). |
|
Returns the global setting for "Icon Text" Returns global setting for "Icon Text" |