mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 22:02:49 -06:00
28 lines
512 B
C++
28 lines
512 B
C++
#include "e011.h"
|
|
|
|
void App::InitTree() {
|
|
|
|
tree.Clear();
|
|
tree.NoRoot();
|
|
tree.Add(0, config_1(), 1, t_("Config"), false);
|
|
tree.Add(0, mappa_1(), 2, t_("Map"), false);
|
|
return;
|
|
}
|
|
|
|
void App::TreeCursor() {
|
|
if(!IsNull(tree)) {
|
|
if(tree.GetCursorLine() == 1) {
|
|
mainFrame.Zoom(0);
|
|
LoadConfForm();
|
|
//tree.KillCursor();
|
|
}
|
|
else if(tree.GetCursorLine() == 2) {
|
|
mainFrame.Zoom(1);
|
|
//tree.KillCursor();
|
|
}
|
|
else {
|
|
mainFrame.Zoom(100);
|
|
tree.KillCursor();
|
|
}
|
|
}
|
|
}
|