[kdeui Index] [kdeui Hierarchy] [Headers]
KDE floatable menubar More...
#include <kmenubar.h>
Inherits: QFrame (qt)
This is floatable toolbar. It can be set to float, Top, or Bottom of KTopLevelWidget. It can be used without KTopLevelWidget, but then you should maintain items (toolbars, menubar, statusbar) yourself.
Interface is the same as QMenuBar, except that you can't add pixmaps.
If you want to add other methods for 100% compatibility with QMenuBar just add those methods, and pass all arguments ot menu bar. see kmenubar.cpp for details. It is extremly simple.
[public]
Positions of menubar.
[public]
Constructor. For all details about inserting items see QMenuBar
[public]
Destructor. Embeds menubar back if floating. Delete menubar in your destructor or closeEvent for 100% safety
[public]
Enable or disable moving. This only disables user moving menubar can be moved wit setMenuBarPos
[public]
Returns menubar position.
[public]
Enables/disables floating.
[public]
Sets position. Can be used when floating or moving is disabled. This cannot be used to set toolbar flat. For that, use setFlat .
[public]
Sets title for floating menu bar. Default is Main widget title.
[public virtual]
The rest is standard QMenuBar interface. See Qt docs for details.
[public]
This method switches flat/unflat mode. Carefull: might not work If menubar is floating.
[signal]
This signal is connected to KTopLevel::updateRects It is emited when menu bar changes its position.
[signal]
This signal is emited when item id is highlighted.
[signal]
This signal is emited when item id is activated.
Documentation generated by tasin@cd1 on Die Nov 30 17:31:44 CET 1999 | Kdoc |