org.kde.koala

Class KMenuBar

public class KMenuBar extends QMenuBar

%KDE Style-able menubar. This is required since QMenuBar is currently not handled by QStyle.

Version: $Id: KMenuBar.java 473384 2005-10-23 14:17:09Z rdale $

Author: Daniel "Mosfet" Duley.

UNKNOWN: %KDE Style-able menubar.

Constructor Summary
protected KMenuBar(Class dummy)
KMenuBar(QWidget parent, String name)
KMenuBar(QWidget parent)
KMenuBar()
Method Summary
StringclassName()
protected voidcloseEvent(QCloseEvent arg1)
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
protected voiddrawContents(QPainter arg1)
booleaneventFilter(QObject arg1, QEvent arg2)
protected voidfinalize()
Deletes the wrapped C++ instance
booleanisDisposed()
Has the wrapped C++ instance been deleted?
booleanisTopLevelMenu()
Is our menubar a top-level (Macintosh style) menubar?
QMetaObjectmetaObject()
voidresize(int w, int h)
voidresize(QSize s)
protected voidresizeEvent(QResizeEvent arg1)
voidsetFrameStyle(int arg1)
voidsetGeometry(QRect r)
voidsetGeometry(int x, int y, int w, int h)
voidsetLineWidth(int arg1)
voidsetMargin(int arg1)
voidsetTopLevelMenu(boolean top_level)
This controls whether or not this menubar will be a top-level bar similar to the way Macintosh handles menubars.
voidsetTopLevelMenu()
voidshow()
voidshowEvent(QShowEvent arg1)
QSizesizeHint()
protected voidslotReadConfig()

Constructor Detail

KMenuBar

protected KMenuBar(Class dummy)

KMenuBar

public KMenuBar(QWidget parent, String name)

KMenuBar

public KMenuBar(QWidget parent)

KMenuBar

public KMenuBar()

Method Detail

className

public String className()

closeEvent

protected void closeEvent(QCloseEvent arg1)

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()

drawContents

protected void drawContents(QPainter arg1)

eventFilter

public boolean eventFilter(QObject arg1, QEvent arg2)

finalize

protected void finalize()
Deletes the wrapped C++ instance

isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?

isTopLevelMenu

public boolean isTopLevelMenu()
Is our menubar a top-level (Macintosh style) menubar?

Returns: True if it is top-level.

UNKNOWN: Is our menubar a top-level (Macintosh style) menubar?

metaObject

public QMetaObject metaObject()

resize

public void resize(int w, int h)

resize

public void resize(QSize s)

resizeEvent

protected void resizeEvent(QResizeEvent arg1)

setFrameStyle

public void setFrameStyle(int arg1)

setGeometry

public void setGeometry(QRect r)

setGeometry

public void setGeometry(int x, int y, int w, int h)

setLineWidth

public void setLineWidth(int arg1)

setMargin

public void setMargin(int arg1)

setTopLevelMenu

public void setTopLevelMenu(boolean top_level)
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

UNKNOWN: This controls whether or not this menubar will be a top-level bar similar to the way Macintosh handles menubars.

setTopLevelMenu

public void setTopLevelMenu()

show

public void show()

showEvent

public void showEvent(QShowEvent arg1)

sizeHint

public QSize sizeHint()

slotReadConfig

protected void slotReadConfig()