#include <paramsd.h>
Definition at line 96 of file paramsd.h.
◆ ParamsEditor()
Definition at line 289 of file paramsd.cpp.
291 const char *name =
"ParamEditorMAIN";
292 sv =
new ScrollView(name, 1, 1, 200, 200, 300, 200);
300 SVMenuNode *svMenuRoot = BuildListOfAllLeaves(tess);
302 std::string paramfile;
305 paramfile +=
"edited";
307 SVMenuNode *std_menu = svMenuRoot->AddChild(
"Build Config File");
309 writeCommands[0] = nrParams + 1;
310 std_menu->AddChild(
"All Parameters", writeCommands[0], paramfile.c_str(),
"Config file name?");
312 writeCommands[1] = nrParams + 2;
313 std_menu->AddChild(
"changed_ Parameters Only", writeCommands[1], paramfile.c_str(),
314 "Config file name?");
316 svMenuRoot->BuildMenu(sv,
false);
◆ Notify()
void tesseract::ParamsEditor::Notify |
( |
const SVEvent * |
sve | ) |
|
|
overridevirtual |
Reimplemented from tesseract::SVEventHandler.
Definition at line 271 of file paramsd.cpp.
273 char *param = sve->parameter;
274 if (sve->command_id == writeCommands[0]) {
275 WriteParams(param,
false);
276 }
else if (sve->command_id == writeCommands[1]) {
277 WriteParams(param,
true);
281 sv_window_->
AddMessageF(
"Setting %s to %s", vc->GetName(), vc->GetValue().c_str());
static ParamContent * GetParamContentById(int id)
void AddMessageF(const char *format,...) __attribute__((format(printf
The documentation for this class was generated from the following files: