#include <svmnode.h>
Definition at line 38 of file svmnode.h.
◆ SVMenuNode()
tesseract::SVMenuNode::SVMenuNode |
( |
| ) |
|
Definition at line 46 of file svmnode.cpp.
51 toggle_value_ =
false;
52 is_check_box_entry_ =
false;
◆ ~SVMenuNode()
tesseract::SVMenuNode::~SVMenuNode |
( |
| ) |
|
|
default |
◆ AddChild() [1/5]
SVMenuNode * tesseract::SVMenuNode::AddChild |
( |
const char * |
txt | ) |
|
Definition at line 59 of file svmnode.cpp.
60 auto *s =
new SVMenuNode(-1, txt,
false,
false);
SVMenuNode * AddChild(const char *txt)
◆ AddChild() [2/5]
void tesseract::SVMenuNode::AddChild |
( |
const char * |
txt, |
|
|
int |
command_event |
|
) |
| |
◆ AddChild() [3/5]
void tesseract::SVMenuNode::AddChild |
( |
const char * |
txt, |
|
|
int |
command_event, |
|
|
const char * |
val |
|
) |
| |
◆ AddChild() [4/5]
void tesseract::SVMenuNode::AddChild |
( |
const char * |
txt, |
|
|
int |
command_event, |
|
|
const char * |
val, |
|
|
const char * |
desc |
|
) |
| |
◆ AddChild() [5/5]
void tesseract::SVMenuNode::AddChild |
( |
const char * |
txt, |
|
|
int |
command_event, |
|
|
int |
tv |
|
) |
| |
◆ BuildMenu()
void tesseract::SVMenuNode::BuildMenu |
( |
ScrollView * |
sv, |
|
|
bool |
menu_bar = true |
|
) |
| |
Definition at line 120 of file svmnode.cpp.
121 if ((parent_ !=
nullptr) && (menu_bar)) {
122 if (is_check_box_entry_) {
123 sv->MenuItem(parent_->text_.c_str(), text_.c_str(), cmd_event_, toggle_value_);
125 sv->MenuItem(parent_->text_.c_str(), text_.c_str(), cmd_event_);
127 }
else if ((parent_ !=
nullptr) && (!menu_bar)) {
128 if (description_.length() > 0) {
129 sv->PopupItem(parent_->text_.c_str(), text_.c_str(), cmd_event_, value_.c_str(),
130 description_.c_str());
132 sv->PopupItem(parent_->text_.c_str(), text_.c_str());
135 if (child_ !=
nullptr) {
139 if (next_ !=
nullptr) {
void BuildMenu(ScrollView *sv, bool menu_bar=true)
The documentation for this class was generated from the following files: