• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kdeui

KMenuBar Class Reference

KDE Style-able menubar. More...

#include <kmenubar.h>

Inheritance diagram for KMenuBar:

Inheritance graph
[legend]

List of all members.


Public Member Functions

bool isTopLevelMenu () const
 KMenuBar (QWidget *parent=0, const char *name=0)
void resize (const QSize &s)
virtual void resize (int w, int h)
virtual void setFrameStyle (int)
virtual void setGeometry (int x, int y, int w, int h)
virtual void setGeometry (const QRect &r)
virtual void setLineWidth (int)
virtual void setMargin (int)
void setTopLevelMenu (bool top_level=true)
virtual void show ()
virtual QSize sizeHint () const
 ~KMenuBar ()

Protected Slots

void slotReadConfig ()

Protected Member Functions

virtual void closeEvent (QCloseEvent *)
virtual void drawContents (QPainter *)
virtual bool eventFilter (QObject *, QEvent *)
virtual void resizeEvent (QResizeEvent *)
virtual void showEvent (QShowEvent *)
virtual void virtual_hook (int id, void *data)

Detailed Description

KDE Style-able menubar.

This is required since QMenuBar is currently not handled by QStyle.

Author:
Daniel "Mosfet" Duley.
Version:
Id
kmenubar.h 465272 2005-09-29 09:47:40Z mueller

Definition at line 42 of file kmenubar.h.


Constructor & Destructor Documentation

KMenuBar::KMenuBar ( QWidget *  parent = 0,
const char *  name = 0 
)

Definition at line 129 of file kmenubar.cpp.

KMenuBar::~KMenuBar (  ) 

Definition at line 149 of file kmenubar.cpp.


Member Function Documentation

void KMenuBar::closeEvent ( QCloseEvent *  e  )  [protected, virtual]

Definition at line 470 of file kmenubar.cpp.

void KMenuBar::drawContents ( QPainter *  p  )  [protected, virtual]

Reimplemented from QMenuBar.

Definition at line 478 of file kmenubar.cpp.

bool KMenuBar::eventFilter ( QObject *  obj,
QEvent *  ev 
) [protected, virtual]

Definition at line 239 of file kmenubar.cpp.

bool KMenuBar::isTopLevelMenu (  )  const

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

Returns:
True if it is top-level.

Definition at line 221 of file kmenubar.cpp.

void KMenuBar::resize ( const QSize &  s  )  [inline]

Definition at line 81 of file kmenubar.h.

void KMenuBar::resize ( int  w,
int  h 
) [virtual]

Definition at line 375 of file kmenubar.cpp.

void KMenuBar::resizeEvent ( QResizeEvent *  e  )  [protected, virtual]

Definition at line 346 of file kmenubar.cpp.

void KMenuBar::setFrameStyle ( int  style  )  [virtual]

Definition at line 446 of file kmenubar.cpp.

void KMenuBar::setGeometry ( int  x,
int  y,
int  w,
int  h 
) [virtual]

Definition at line 363 of file kmenubar.cpp.

void KMenuBar::setGeometry ( const QRect &  r  )  [virtual]

Definition at line 358 of file kmenubar.cpp.

void KMenuBar::setLineWidth ( int  width  )  [virtual]

Definition at line 454 of file kmenubar.cpp.

void KMenuBar::setMargin ( int  margin  )  [virtual]

Definition at line 462 of file kmenubar.cpp.

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 154 of file kmenubar.cpp.

void KMenuBar::show ( void   )  [virtual]

Reimplemented from QMenuBar.

Definition at line 227 of file kmenubar.cpp.

void KMenuBar::showEvent ( QShowEvent *  e  )  [protected, virtual]

Definition at line 293 of file kmenubar.cpp.

QSize KMenuBar::sizeHint ( void   )  const [virtual]

Definition at line 400 of file kmenubar.cpp.

void KMenuBar::slotReadConfig (  )  [protected, slot]

Definition at line 232 of file kmenubar.cpp.

void KMenuBar::virtual_hook ( int  id,
void *  data 
) [protected, virtual]

Definition at line 560 of file kmenubar.cpp.


The documentation for this class was generated from the following files:
  • kmenubar.h
  • kmenubar.cpp

kdeui

Skip menu "kdeui"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal