Main Page   Class Hierarchy   Compound List   File List   Header Files   Compound Members   File Members  

KMenu Class Reference

Implementation of native menus. More...

List of all members.


Public Members

 KMenu ( jboolean popup)
bool lock ()
void unlock ()
BMenu* NATIVE ()
void removeItem ( USHORT id)
BMenuItem* findItem (jobject id )
!!! this scans all the menu items looking for id but there should be a better way.

void checkItem ( jobject id, jboolean state)
void enableItem ( jobject id, jboolean state)
void insertItem ( char* item, jobject id, int pos, BMenu * sub)
void assign ( KWnd* parent, int x, int y)
 ~KMenu ()
BMenu* fMenu
jboolean isPopup
KWndfParent

Static Public Members

BMenuBar* findMenuBar ( KWnd* parent)
BMenuBar* insertMenuBar ( KWnd* parent, int x, int y)


Detailed Description

Implementation of native menus.

This implementation is based on the Win32 menu model, and is not particularly clean, rewrite or not rewrite ?


Member Function Documentation

KMenu::KMenu (jboolean popup) [inline]

bool KMenu::lock () [inline]

void KMenu::unlock () [inline]

BMenu * KMenu::NATIVE () [inline]

void KMenu::removeItem (USHORT id) [inline]

BMenuItem * KMenu::findItem (jobject id) [inline]

!!! this scans all the menu items looking for id but there should be a better way.

void KMenu::checkItem (jobject id, jboolean state) [inline]

void KMenu::enableItem (jobject id, jboolean state) [inline]

void KMenu::insertItem (char * item, jobject id, int pos, BMenu * sub) [inline]

void KMenu::assign (KWnd * parent, int x, int y) [inline]

KMenu::~KMenu () [inline]

BMenuBar * KMenu::findMenuBar (KWnd * parent) [inline, static]

BMenuBar * KMenu::insertMenuBar (KWnd * parent, int x, int y) [inline, static]


Member Data Documentation

BMenu* KMenu::fMenu

jboolean KMenu::isPopup

KWnd* KMenu::fParent


The documentation for this class was generated from the following file:
Generated at Sat Jun 10 12:37:10 2000 by doxygen 1.0.0 written by Dimitri van Heesch, © 1997-1999