#include <tdemenubar.h>
Inherits TQMenuBar.
Public Member Functions | |
KMenuBar (TQWidget *parent=0, const char *name=0) | |
void | setTopLevelMenu (bool top_level=true) |
bool | isTopLevelMenu () const |
virtual void | setGeometry (const TQRect &r) |
virtual void | setGeometry (int x, int y, int w, int h) |
virtual void | resize (int w, int h) |
void | resize (const TQSize &s) |
virtual void | show () |
virtual void | setFrameStyle (int) |
virtual void | setLineWidth (int) |
virtual void | setMargin (int) |
virtual TQSize | sizeHint () const |
Protected Slots | |
void | slotReadConfig () |
Protected Member Functions | |
virtual void | showEvent (TQShowEvent *) |
virtual void | resizeEvent (TQResizeEvent *) |
virtual bool | eventFilter (TQObject *, TQEvent *) |
virtual void | closeEvent (TQCloseEvent *) |
virtual void | drawContents (TQPainter *) |
virtual void | virtual_hook (int id, void *data) |
Detailed Description
KDE Style-able menubar.
This is required since TQMenuBar is currently not handled by TQStyle.
- Version
- $Id$
Definition at line 42 of file tdemenubar.h.
Constructor & Destructor Documentation
◆ KMenuBar()
KMenuBar::KMenuBar | ( | TQWidget * | parent = 0 , |
const char * | name = 0 |
||
) |
Definition at line 133 of file tdemenubar.cpp.
◆ ~KMenuBar()
KMenuBar::~KMenuBar | ( | ) |
Definition at line 153 of file tdemenubar.cpp.
Member Function Documentation
◆ closeEvent()
|
protectedvirtual |
Definition at line 478 of file tdemenubar.cpp.
◆ drawContents()
|
protectedvirtual |
Definition at line 486 of file tdemenubar.cpp.
◆ eventFilter()
|
protectedvirtual |
Definition at line 243 of file tdemenubar.cpp.
◆ isTopLevelMenu()
bool KMenuBar::isTopLevelMenu | ( | ) | const |
Is our menubar a top-level (Macintosh style) menubar?
- Returns
- True if it is top-level.
Definition at line 225 of file tdemenubar.cpp.
◆ resize() [1/2]
|
inline |
Definition at line 81 of file tdemenubar.h.
◆ resize() [2/2]
|
virtual |
Definition at line 383 of file tdemenubar.cpp.
◆ resizeEvent()
|
protectedvirtual |
Definition at line 354 of file tdemenubar.cpp.
◆ setFrameStyle()
|
virtual |
Definition at line 454 of file tdemenubar.cpp.
◆ setGeometry() [1/2]
|
virtual |
Definition at line 366 of file tdemenubar.cpp.
◆ setGeometry() [2/2]
|
virtual |
Definition at line 371 of file tdemenubar.cpp.
◆ setLineWidth()
|
virtual |
Definition at line 462 of file tdemenubar.cpp.
◆ setMargin()
|
virtual |
Definition at line 470 of file tdemenubar.cpp.
◆ setTopLevelMenu()
void KMenuBar::setTopLevelMenu | ( | bool | top_level = true | ) |
This controls whether or not this menubar will be a top-level bar similar to the way Macintosh handles menubars.
This overrides any global config settings.
Keep in mind that it is probably a really bad idea to use this unless you really know what you're doing. A feature like a top-level menubar is one that should really be shared by all applications. If your app is the only one with a top-level bar, then things might look very... odd.
This is included only for those people that do
know that they need to use it.
- Parameters
-
top_level If set to true, then this menubar will be a top-level menu
Definition at line 158 of file tdemenubar.cpp.
◆ show()
|
virtual |
Definition at line 231 of file tdemenubar.cpp.
◆ showEvent()
|
protectedvirtual |
Definition at line 297 of file tdemenubar.cpp.
◆ sizeHint()
|
virtual |
Definition at line 408 of file tdemenubar.cpp.
◆ slotReadConfig
|
protectedslot |
Definition at line 236 of file tdemenubar.cpp.
◆ virtual_hook()
|
protectedvirtual |
Definition at line 568 of file tdemenubar.cpp.
The documentation for this class was generated from the following files: