\section{KMenu\-Bar Class Reference}
\label{classKMenuBar}\index{KMenuBar@{KMenuBar}}
KDE Style-able menubar.  


{\tt \#include $<$kmenubar.h$>$}

Inheritance diagram for KMenu\-Bar:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=50pt]{classKMenuBar__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KMenu\-Bar:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=50pt]{classKMenuBar__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KMenu\-Bar} ({\bf QWidget} $\ast$parent=0, const char $\ast$name=0)\label{classKMenuBar_a0}

\item 
void {\bf set\-Top\-Level\-Menu} (bool top\_\-level=true)
\item 
bool {\bf is\-Top\-Level\-Menu} () const 
\item 
virtual void {\bf set\-Geometry} (const {\bf QRect} \&r)\label{classKMenuBar_a4}

\item 
virtual void {\bf set\-Geometry} (int x, int y, int w, int h)\label{classKMenuBar_a5}

\item 
virtual void {\bf resize} (int w, int h)\label{classKMenuBar_a6}

\item 
void {\bf resize} (const {\bf QSize} \&s)\label{classKMenuBar_a7}

\item 
virtual void {\bf show} ()\label{classKMenuBar_a8}

\item 
virtual void {\bf set\-Frame\-Style} (int)\label{classKMenuBar_a9}

\item 
virtual void {\bf set\-Line\-Width} (int)\label{classKMenuBar_a10}

\item 
virtual void {\bf set\-Margin} (int)\label{classKMenuBar_a11}

\item 
virtual {\bf QSize} {\bf size\-Hint} () const \label{classKMenuBar_a12}

\end{CompactItemize}
\subsection*{Protected Slots}
\begin{CompactItemize}
\item 
void {\bf slot\-Read\-Config} ()\label{classKMenuBar_j0}

\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
virtual void {\bf show\-Event} ({\bf QShow\-Event} $\ast$)\label{classKMenuBar_b0}

\item 
virtual void {\bf resize\-Event} ({\bf QResize\-Event} $\ast$)\label{classKMenuBar_b1}

\item 
virtual bool {\bf event\-Filter} ({\bf QObject} $\ast$, {\bf QEvent} $\ast$)\label{classKMenuBar_b2}

\item 
virtual bool {\bf x11Event} (XEvent $\ast$)\label{classKMenuBar_b3}

\item 
virtual void {\bf close\-Event} ({\bf QClose\-Event} $\ast$)\label{classKMenuBar_b4}

\item 
virtual void {\bf draw\-Contents} ({\bf QPainter} $\ast$)\label{classKMenuBar_b5}

\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast$data)\label{classKMenuBar_b6}

\end{CompactItemize}


\subsection{Detailed Description}
KDE Style-able menubar. 

This is required since {\bf QMenu\-Bar} is currently not handled by {\bf QStyle}.

\begin{Desc}
\item[Author:]Daniel \char`\"{}Mosfet\char`\"{} Duley. \end{Desc}
\begin{Desc}
\item[Version:]\begin{Desc}
\item[Id]{\bf kmenubar.h}{\rm (p.\,\pageref{kmenubar_8h})} 392834 2005-02-24 15:55:43Z lunakl \end{Desc}
\end{Desc}




Definition at line 42 of file kmenubar.h.

\subsection{Member Function Documentation}
\index{KMenuBar@{KMenu\-Bar}!setTopLevelMenu@{setTopLevelMenu}}
\index{setTopLevelMenu@{setTopLevelMenu}!KMenuBar@{KMenu\-Bar}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KMenu\-Bar::set\-Top\-Level\-Menu (bool {\em top\_\-level} = {\tt true})}\label{classKMenuBar_a2}


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 {\tt do} know that they need to use it.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em top\_\-level}]If set to true, then this menubar will be a top-level menu \end{description}
\end{Desc}


Definition at line 156 of file kmenubar.cpp.\index{KMenuBar@{KMenu\-Bar}!isTopLevelMenu@{isTopLevelMenu}}
\index{isTopLevelMenu@{isTopLevelMenu}!KMenuBar@{KMenu\-Bar}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KMenu\-Bar::is\-Top\-Level\-Menu () const}\label{classKMenuBar_a3}


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

\begin{Desc}
\item[Returns:]True if it is top-level. \end{Desc}


Definition at line 223 of file kmenubar.cpp.

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
kmenubar.h\item 
kmenubar.cpp\end{CompactItemize}
