exit(0);
}
-void Designer::new_track()
+void Designer::new_object()
{
use_select_tool();
mode = CATALOGUE;
- lbl_status->set_text("Select new track or press Esc to cancel");
+ lbl_status->set_text("Select new object or press Esc to cancel");
}
-void Designer::erase_tracks()
+void Designer::erase_objects()
{
use_select_tool();
- set<Track *> tracks = selection.get_objects<Track>();
+ set<Object *> objects = selection.get_objects();
selection.clear();
- for(set<Track *>::iterator i=tracks.begin(); i!=tracks.end(); ++i)
+ for(set<Object *>::iterator i=objects.begin(); i!=objects.end(); ++i)
{
overlay->clear(layout_3d->get_3d(**i));
delete *i;
if(key==Msp::Input::KEY_N && shift)
use_tool_with_selected_objects<ExtendTool>();
else if(key==Msp::Input::KEY_N)
- new_track();
+ new_object();
else if(key==Msp::Input::KEY_G)
use_tool_with_selected_objects<MoveTool>();
else if(key==Msp::Input::KEY_R)
use_select_tool();
}
else if(key==Msp::Input::KEY_X)
- erase_tracks();
+ erase_objects();
else if(key==Msp::Input::KEY_F && shift)
{
const set<Track *> &tracks = selection.get_objects<Track>();
pnl_content->add(*(btn = new GLtk::Button("New")));
btn->set_style("green");
btn->set_tooltip("Add a track piece (N)");
- btn->signal_clicked.connect(sigc::mem_fun(&designer, &Designer::new_track));
+ btn->signal_clicked.connect(sigc::mem_fun(&designer, &Designer::new_object));
pnl_content->add(*(btn = new GLtk::Button("Del")));
btn->set_style("red");
btn->set_tooltip("Delete selected tracks (X)");
- btn->signal_clicked.connect(sigc::mem_fun(&designer, &Designer::erase_tracks));
+ btn->signal_clicked.connect(sigc::mem_fun(&designer, &Designer::erase_objects));
pnl_content->add(*(btn = new GLtk::Button("Prop")));
btn->set_tooltip("Change properties of selected tracks (P)");