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


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

Inheritance diagram for KMenu\-Bar:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=51pt]{classKMenuBar__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KMenu\-Bar:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=51pt]{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)
\begin{CompactList}\small\item\em This controls whether or not this menubar will be a top-level bar similar to the way Macintosh handles menubars. \item\end{CompactList}\item 
bool {\bf is\-Top\-Level\-Menu} () const 
\begin{CompactList}\small\item\em Is our menubar a top-level (Macintosh style) menubar? \item\end{CompactList}\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 show} ()\label{classKMenuBar_a6}

\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 
void {\bf show\-Event} ({\bf QShow\-Event} $\ast$)\label{classKMenuBar_b0}

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

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

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

\end{CompactItemize}


\subsection{Detailed Description}
{\bf 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})},v 1.54 2002/10/29 08:47:10 lunakl Exp \end{Desc}
\end{Desc}




Definition at line 40 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} = 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 81 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 139 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}
