#include <svmnode.h>
List of all members.
Detailed Description
Definition at line 33 of file svmnode.h.
Constructor & Destructor Documentation
SVMenuNode::SVMenuNode |
( |
| ) |
|
Definition at line 45 of file svmnode.cpp.
{
cmd_event_ = -1;
text_ = NULL;
child_ = NULL;
next_ = NULL;
parent_ = NULL;
toggle_value_ = false;
is_check_box_entry_ = false;
value_ = NULL;
description_ = NULL;
}
SVMenuNode::~SVMenuNode |
( |
| ) |
|
Member Function Documentation
SVMenuNode * SVMenuNode::AddChild |
( |
const char * |
txt | ) |
|
void SVMenuNode::AddChild |
( |
const char * |
txt, |
|
|
int |
command_event |
|
) |
| |
void SVMenuNode::AddChild |
( |
const char * |
txt, |
|
|
int |
command_event, |
|
|
int |
tv |
|
) |
| |
void SVMenuNode::AddChild |
( |
const char * |
txt, |
|
|
int |
command_event, |
|
|
const char * |
val |
|
) |
| |
void SVMenuNode::AddChild |
( |
const char * |
txt, |
|
|
int |
command_event, |
|
|
const char * |
val, |
|
|
const char * |
desc |
|
) |
| |
void SVMenuNode::BuildMenu |
( |
ScrollView * |
sv, |
|
|
bool |
menu_bar = true |
|
) |
| |
Definition at line 132 of file svmnode.cpp.
{
if ((parent_ != NULL) && (menu_bar)) {
if (is_check_box_entry_) {
sv->MenuItem(parent_->text_, text_, cmd_event_, toggle_value_);
} else { sv->MenuItem(parent_->text_, text_, cmd_event_); }
} else if ((parent_ != NULL) && (!menu_bar)) {
if (description_ != NULL) { sv->PopupItem(parent_->text_, text_,
cmd_event_, value_, description_);
} else { sv->PopupItem(parent_->text_, text_); }
}
if (child_ != NULL) { child_->BuildMenu(sv, menu_bar); delete child_; }
if (next_ != NULL) { next_->BuildMenu(sv, menu_bar); delete next_; }
}
The documentation for this class was generated from the following files: