-/* === S I N F G =========================================================== */
+/* === S Y N F I G ========================================================= */
/*! \file state_sketch.cpp
** \brief Template File
**
#include <gtkmm/dialog.h>
#include <gtkmm/entry.h>
-#include <sinfg/valuenode_dynamiclist.h>
+#include <synfig/valuenode_dynamiclist.h>
#include "state_sketch.h"
#include "state_stroke.h"
#include "canvasview.h"
#include "workarea.h"
#include "app.h"
-#include <sinfg/valuenode_bline.h>
+#include <synfig/valuenode_bline.h>
#include <ETL/hermite>
#include <ETL/calculus>
#include <utility>
#include "event_layerclick.h"
#include "toolbox.h"
-#include <sinfgapp/blineconvert.h>
-#include <sinfgapp/main.h>
+#include <synfigapp/blineconvert.h>
+#include <synfigapp/main.h>
#include <ETL/gaussian>
using namespace std;
using namespace etl;
-using namespace sinfg;
+using namespace synfig;
using namespace studio;
/* === M A C R O S ========================================================= */
~StateSketch_Context();
const etl::handle<CanvasView>& get_canvas_view()const{return canvas_view_;}
- etl::handle<sinfgapp::CanvasInterface> get_canvas_interface()const{return canvas_view_->canvas_interface();}
- sinfg::Time get_time()const { return get_canvas_interface()->get_time(); }
- sinfg::Canvas::Handle get_canvas()const{return canvas_view_->get_canvas();}
+ etl::handle<synfigapp::CanvasInterface> get_canvas_interface()const{return canvas_view_->canvas_interface();}
+ synfig::Time get_time()const { return get_canvas_interface()->get_time(); }
+ synfig::Canvas::Handle get_canvas()const{return canvas_view_->get_canvas();}
WorkArea * get_work_area()const{return canvas_view_->get_work_area();}
}; // END of class StateSketch_Context
void
StateSketch_Context::save_sketch()
{
- sinfg::String filename(basename(get_canvas()->get_file_name())+".sketch");
+ synfig::String filename(basename(get_canvas()->get_file_name())+".sketch");
while(App::dialog_save_file(_("Save Sketch"), filename))
{
void
StateSketch_Context::load_sketch()
{
- sinfg::String filename(basename(get_canvas()->get_file_name())+".sketch");
+ synfig::String filename(basename(get_canvas()->get_file_name())+".sketch");
while(App::dialog_open_file(_("Load Sketch"), filename))
{
assert(event.stroke_data);
- get_work_area()->add_persistant_stroke(event.stroke_data,sinfgapp::Main::get_foreground_color());
+ get_work_area()->add_persistant_stroke(event.stroke_data,synfigapp::Main::get_foreground_color());
return Smach::RESULT_ACCEPT;
}