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 | ||
KWnd* | fParent | ||
Static Public Members | |||
BMenuBar* | findMenuBar ( KWnd* parent) | ||
BMenuBar* | insertMenuBar ( KWnd* parent, int x, int y) |
This implementation is based on the Win32 menu model, and is not particularly clean, rewrite or not rewrite ?
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]
|
BMenu* KMenu::fMenu |
jboolean KMenu::isPopup |
KWnd* KMenu::fParent |