28 #include <tqmenubar.h>
30 #include <tdelibs_export.h>
48 KMenuBar (TQWidget *parent=0,
const char *name=0);
68 void setTopLevelMenu(
bool top_level =
true);
75 bool isTopLevelMenu()
const;
78 virtual void setGeometry(
const TQRect &r );
79 virtual void setGeometry(
int x,
int y,
int w,
int h );
80 virtual void resize(
int w,
int h );
81 void resize(
const TQSize& s ) { TQMenuBar::resize( s ); }
84 virtual void setFrameStyle(
int );
85 virtual void setLineWidth(
int );
86 virtual void setMargin(
int );
87 virtual TQSize sizeHint()
const;
89 void slotReadConfig();
91 virtual void showEvent( TQShowEvent* );
92 virtual void resizeEvent( TQResizeEvent* );
93 virtual bool eventFilter(TQObject *, TQEvent *);
95 virtual bool x11Event( XEvent* );
97 virtual void closeEvent( TQCloseEvent* );
98 virtual void drawContents( TQPainter* );
100 void updateFallbackSize();
101 void selectionTimeout();
103 void setTopLevelMenuInternal(
bool top_level);
104 void updateMenuBarSize();
105 void checkSize(
int& w,
int& h );
106 static int block_resize;
108 virtual void virtual_hook(
int id,
void* data );
110 class KMenuBarPrivate;