kmenubar.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef _KMENUBAR_H
00026 #define _KMENUBAR_H
00027
00028 #include <qmenubar.h>
00029
00040 class KMenuBar : public QMenuBar
00041 {
00042 Q_OBJECT
00043
00044 public:
00045
00046 KMenuBar (QWidget *parent=0, const char *name=0);
00047 ~KMenuBar ();
00048
00066 void setTopLevelMenu(bool top_level = true);
00067
00073 bool isTopLevelMenu() const;
00074
00075
00076 virtual void setGeometry( const QRect &r );
00077 virtual void setGeometry( int x, int y, int w, int h );
00078 virtual void resize( int w, int h );
00079 void resize( const QSize& s ) { QMenuBar::resize( s ); }
00080
00081 virtual void show();
00082 virtual void setFrameStyle( int );
00083 virtual void setLineWidth( int );
00084 virtual void setMargin( int );
00085 protected slots:
00086 void slotReadConfig();
00087 protected:
00088 virtual void showEvent( QShowEvent* );
00089 virtual void resizeEvent( QResizeEvent* );
00090 virtual bool eventFilter(QObject *, QEvent *);
00091 virtual bool x11Event( XEvent* );
00092 private slots:
00093 void updateFallbackSize();
00094 void selectionTimeout();
00095 private:
00096 void setTopLevelMenuInternal(bool top_level);
00097 void checkSize( int& w, int& h );
00098 static int block_resize;
00099 protected:
00100 virtual void virtual_hook( int id, void* data );
00101 private:
00102 class KMenuBarPrivate;
00103 KMenuBarPrivate *d;
00104 };
00105
00106 #endif
This file is part of the documentation for kdeui Library Version 3.2.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Mar 4 22:43:53 2004 by
doxygen 1.3.6-20040222 written by
Dimitri van Heesch, © 1997-2003