#include <CSMenuBar.h>
Inheritance diagram for CSMenuBar:
Public Member Functions | |
CSMenuBar (void) | |
virtual | ~CSMenuBar () |
virtual std::string | getType () |
void | initMenuBar () |
virtual void | layoutSetup () |
virtual void | setMenuState (int state) |
virtual void | setActiveMenu (CSMenu *menu) |
virtual CSMenu * | getActiveMenu () |
virtual int | getMenuState (CSMenu *menu) |
virtual void | closeLastMenu () |
virtual void | resetMenu () |
CSMenu * | getLastActiveMenu () |
Static Public Attributes | |
const char * | CLASS = "CSMenuBar" |
static element, name of this class (introsepection) | |
Protected Member Functions | |
void | layoutSetupMenuBar () |
Protected Attributes | |
int | mMenuState |
|
Definition at line 14 of file CSMenuBar.cpp. References initMenuBar(), LOG_ENTER, LOG_EXIT, and TYPE_HORIZONTAL.
00014 : CSBar(TYPE_HORIZONTAL) 00015 { 00016 static char *functionName="CSMenuBar"; 00017 LOG_ENTER 00018 initMenuBar(); 00019 LOG_EXIT 00020 } |
Here is the call graph for this function:
|
Definition at line 22 of file CSMenuBar.cpp.
00023 { 00024 static char *functionName="~CSMenuBar"; 00025 } |
|
Definition at line 78 of file CSMenuBar.cpp. References CSBar::layoutSetupBar(), LOG_ENTER, and LOG_EXIT. Referenced by layoutSetup().
00079 { 00080 static char *functionName="layoutSetupMenuBar"; 00081 LOG_ENTER 00082 layoutSetupBar(); 00083 LOG_EXIT 00084 } |
Here is the call graph for this function:
|
Reimplemented from CSBar. Definition at line 41 of file CSMenuBar.h. References CLASS.
00041 {return (std::string) CLASS;} |
|
Definition at line 27 of file CSMenuBar.cpp. References BUTTON_DEFAULT, LOG_ENTER, LOG_EXIT, and mMenuState. Referenced by CSMenuBar().
00028 { 00029 static char *functionName="initMenuBar"; 00030 LOG_ENTER 00031 mMenuState = BUTTON_DEFAULT; 00032 mActiveMenu = 0; 00033 mLastActiveMenu = 0; 00034 LOG_EXIT 00035 } |
|
Reimplemented from CSBar. Definition at line 48 of file CSMenuBar.h. References layoutSetupMenuBar().
00048 {layoutSetupMenuBar();} |
Here is the call graph for this function:
|
Definition at line 49 of file CSMenuBar.h. References mMenuState. Referenced by CSMenu::getMenuBar(), and CSMenu::reactOnMessageMenu().
00049 {mMenuState = state;} |
|
Definition at line 49 of file CSMenuBar.cpp. Referenced by CSMenu::reactOnMessageMenu().
00050 { 00051 if (menu == 0) 00052 { 00053 return; 00054 } 00055 if (mActiveMenu != menu) 00056 { 00057 mLastActiveMenu = mActiveMenu; 00058 mActiveMenu = menu; 00059 } 00060 } |
|
Definition at line 51 of file CSMenuBar.h. Referenced by CSMenu::reactOnMessageMenu().
00051 {return mActiveMenu;}
|
|
Definition at line 61 of file CSMenuBar.cpp. References BUTTON_DEFAULT, and mMenuState. Referenced by CSMenu::getButtonState(), and CSMenu::reactOnMessageMenu().
00062 { 00063 // if (menu == mActiveMenu) 00064 { 00065 return mMenuState; 00066 } 00067 return BUTTON_DEFAULT; // only if enabled! 00068 } |
|
Definition at line 70 of file CSMenuBar.cpp. References CSMenu::closeMenu(). Referenced by CSMenu::openMenu(), CSMenu::reactOnMessageMenu(), and resetMenu().
00071 { 00072 if (mLastActiveMenu != 0) 00073 { 00074 mLastActiveMenu->closeMenu(); 00075 } 00076 } |
Here is the call graph for this function:
|
Definition at line 37 of file CSMenuBar.cpp. References BUTTON_DEFAULT, closeLastMenu(), CSMenu::closeMenu(), and mMenuState. Referenced by CSMenu::reactOnMessageMenu().
00038 { 00039 closeLastMenu(); 00040 if (mActiveMenu != 0) 00041 { 00042 mActiveMenu->closeMenu(); 00043 } 00044 mLastActiveMenu = 0; 00045 mActiveMenu = 0; 00046 mMenuState = BUTTON_DEFAULT; 00047 } |
Here is the call graph for this function:
|
Definition at line 55 of file CSMenuBar.h. Referenced by CSMenu::reactOnMessageMenu().
00055 {return mLastActiveMenu;}
|
|
Definition at line 34 of file CSMenuBar.h. Referenced by getMenuState(), initMenuBar(), resetMenu(), and setMenuState(). |
|
static element, name of this class (introsepection)
Reimplemented from CSBar. Definition at line 12 of file CSMenuBar.cpp. Referenced by CSLAF::getAreaInternal(), CSLAF::getBackgroundColorEnabledInternal(), CSLAF::getBorderInternal(), CSLAF::getHorizontalElementSpacingInternal(), CSMenu::getMenuBar(), getType(), and CSLAF::getVerticalElementSpacingInternal(). |