summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
c494ead)
If a tool finishes instantly and displays a status (such as SlopeTool
or ExtendTool when they encounter an error during construction), do not
replace it with the selection tool status.
cur_zone(0),
mode(TOOL),
sel_wrap(selection),
cur_zone(0),
mode(TOOL),
sel_wrap(selection),
+ cur_tool(0),
+ keep_status(0)
{
window.set_title("Railway Designer");
window.signal_close.connect(sigc::bind(sigc::mem_fun(this, &Designer::exit), 0));
{
window.set_title("Railway Designer");
window.signal_close.connect(sigc::bind(sigc::mem_fun(this, &Designer::exit), 0));
cur_tool->update_selection(selection);
use_select_tool();
}
cur_tool->update_selection(selection);
use_select_tool();
}
window.tick();
root.tick();
window.tick();
root.tick();
cur_tool = tool;
cur_tool->signal_status.connect(sigc::mem_fun(this, &Designer::tool_status));
cur_tool = tool;
cur_tool->signal_status.connect(sigc::mem_fun(this, &Designer::tool_status));
- tool_status(cur_tool->get_status());
+ if(keep_status<2)
+ tool_status(tool->get_status());
}
void Designer::use_select_tool()
}
void Designer::use_select_tool()
void Designer::tool_status(const string &status)
{
lbl_status->set_text(status);
void Designer::tool_status(const string &status)
{
lbl_status->set_text(status);
+ if(keep_status==1)
+ keep_status = 2;
}
void Designer::object_properties_response(int)
}
void Designer::object_properties_response(int)
Selection selection;
SelectionWrap sel_wrap;
Tool *cur_tool;
Selection selection;
SelectionWrap sel_wrap;
Tool *cur_tool;
CameraController *camera_ctl;
Msp::Time::TimeStamp last_tick;
CameraController *camera_ctl;
Msp::Time::TimeStamp last_tick;