]> git.tdb.fi Git - r2c2.git/commitdiff
Clean up old clutter from Designer
authorMikko Rasa <tdb@tdb.fi>
Sat, 24 Aug 2013 13:54:36 +0000 (16:54 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 24 Aug 2013 13:54:36 +0000 (16:54 +0300)
source/designer/designer.cpp
source/designer/designer.h

index cfe3938a91d3c6258d631467f14d1bd0ad7ae5ac..7c100db390172cdbfe76cd90e84844725d3b40c8 100644 (file)
@@ -466,8 +466,8 @@ void Designer::use_tool(Tool *tool)
        }
 
        cur_tool = tool;
-       cur_tool->signal_status.connect(sigc::mem_fun(this, &Designer::manipulation_status));
-       manipulation_status(cur_tool->get_status());
+       cur_tool->signal_status.connect(sigc::mem_fun(this, &Designer::tool_status));
+       tool_status(cur_tool->get_status());
        mode = TOOL;
 }
 
@@ -567,17 +567,11 @@ void Designer::selection_changed()
        }
 }
 
-void Designer::manipulation_status(const string &status)
+void Designer::tool_status(const string &status)
 {
        lbl_status->set_text(status);
 }
 
-void Designer::measure_done()
-{
-       mode = SELECT;
-       selection_changed();
-}
-
 void Designer::track_properties_response(int)
 {
        const set<Track *> &tracks = selection.get_objects<Track>();
index dadbf068c1b3ed9a6bf3772a71f51220df4b1876..f89355cf95e3f882ed53f6d0f843d35e88ea08fa 100644 (file)
@@ -117,10 +117,7 @@ private:
        R2C2::Object *pick_object(const R2C2::Vector &);
        void update_track_icon(R2C2::Track3D &);
        void selection_changed();
-       void manipulation_status(const std::string &);
-       void manipulation_done(bool);
-       void measure_changed();
-       void measure_done();
+       void tool_status(const std::string &);
        void track_properties_response(int);
        void route_name_accept(const std::string &);
        void svg_export_accept(const std::string &);