39 #ifndef GRAPHICS_DISABLED 50 toggle_value_ =
false;
51 is_check_box_entry_ =
false;
91 int tv,
bool check_box_entry,
const char* val,
93 : text_(txt), value_(val), description_(desc) {
94 cmd_event_ = command_event;
99 toggle_value_ = tv != 0;
100 is_check_box_entry_ = check_box_entry;
105 svmn->parent_ =
this;
107 if (child_ == NULL) {
111 while (cur->next_ != NULL) { cur = cur->next_; }
122 if ((parent_ != NULL) && (menu_bar)) {
123 if (is_check_box_entry_) {
128 }
else if ((parent_ != NULL) && (!menu_bar)) {
129 if (description_.
length() > 0) {
136 if (child_ != NULL) {
137 child_->
BuildMenu(sv, menu_bar);
delete child_;
140 next_->
BuildMenu(sv, menu_bar);
delete next_;
144 #endif // GRAPHICS_DISABLED
void MenuItem(const char *parent, const char *name)
const char * string() const
void BuildMenu(ScrollView *sv, bool menu_bar=true)
SVMenuNode * AddChild(const char *txt)
void PopupItem(const char *parent, const char *name)