X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Finstance.h;fp=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Finstance.h;h=374c7e48164208273825dd28b29b4b5f7c4d378a;hb=02252941b29de64037116f4d37991a38d9ff0d94;hp=bd68918ff8b597f5fdfdfcfa228e629af9d96661;hpb=34f6fabfcefdc878ba3c08b82358ae4aef439e99;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/instance.h b/synfig-studio/trunk/src/gtkmm/instance.h index bd68918..374c7e4 100644 --- a/synfig-studio/trunk/src/gtkmm/instance.h +++ b/synfig-studio/trunk/src/gtkmm/instance.h @@ -1,4 +1,4 @@ -/* === S I N F G =========================================================== */ +/* === S Y N F I G ========================================================= */ /*! \file instance.h ** \brief writeme ** @@ -21,19 +21,19 @@ /* === S T A R T =========================================================== */ -#ifndef __SINFG_STUDIO_INSTANCE_H -#define __SINFG_STUDIO_INSTANCE_H +#ifndef __SYNFIG_STUDIO_INSTANCE_H +#define __SYNFIG_STUDIO_INSTANCE_H /* === H E A D E R S ======================================================= */ #include #include #include -#include +#include #include -#include +#include #include "historytreestore.h" -#include +#include /* === M A C R O S ========================================================= */ @@ -48,7 +48,7 @@ namespace studio { class CanvasView; -class Instance : public sinfgapp::Instance +class Instance : public synfigapp::Instance { public: typedef std::list< etl::handle > CanvasViewList; @@ -61,19 +61,19 @@ public: Gtk::TreeModelColumn name; Gtk::TreeModelColumn id; - Gtk::TreeModelColumn canvas; + Gtk::TreeModelColumn canvas; Gtk::TreeModelColumn is_canvas; - Gtk::TreeModelColumn value_node; + Gtk::TreeModelColumn value_node; Gtk::TreeModelColumn is_value_node; - Gtk::TreeModelColumn value; + Gtk::TreeModelColumn value; Gtk::TreeModelColumn type; Gtk::TreeModelColumn link_id; Gtk::TreeModelColumn link_count; Gtk::TreeModelColumn is_editable; - Gtk::TreeModelColumn value_desc; + Gtk::TreeModelColumn value_desc; CanvasTreeModel() { @@ -127,7 +127,7 @@ private: protected: - Instance(sinfg::Canvas::Handle); + Instance(synfig::Canvas::Handle); public: @@ -155,20 +155,20 @@ public: //! Returns the number of instances that are currently open in the program static int get_count() { return instance_count_; } - //etl::handle get_canvas()const { return sinfgapp::Instance::get_canvas(); } + //etl::handle get_canvas()const { return synfigapp::Instance::get_canvas(); } - etl::handle find_canvas_view(etl::handle canvas); + etl::handle find_canvas_view(etl::handle canvas); //! Sets the focus to a specific canvas - void focus(etl::handle canvas); + void focus(etl::handle canvas); CanvasViewList & canvas_view_list() { return canvas_view_list_; } const CanvasViewList & canvas_view_list()const { return canvas_view_list_; } - bool save_as(const sinfg::String &filename)const; + bool save_as(const synfig::String &filename)const; - bool save_as(const sinfg::String &filename); + bool save_as(const synfig::String &filename); //! Opens a "Save As" dialog, and then saves the composition to that file void dialog_save_as(); @@ -195,25 +195,25 @@ public: bool safe_revert(); bool safe_close(); - void add_actions_to_menu(Gtk::Menu *menu, const sinfgapp::Action::ParamList ¶m_list, sinfgapp::Action::Category category=sinfgapp::Action::CATEGORY_ALL)const; - void add_actions_to_menu(Gtk::Menu *menu, const sinfgapp::Action::ParamList ¶m_list1,const sinfgapp::Action::ParamList ¶m_list2, sinfgapp::Action::Category category=sinfgapp::Action::CATEGORY_ALL)const; + void add_actions_to_menu(Gtk::Menu *menu, const synfigapp::Action::ParamList ¶m_list, synfigapp::Action::Category category=synfigapp::Action::CATEGORY_ALL)const; + void add_actions_to_menu(Gtk::Menu *menu, const synfigapp::Action::ParamList ¶m_list1,const synfigapp::Action::ParamList ¶m_list2, synfigapp::Action::Category category=synfigapp::Action::CATEGORY_ALL)const; - void add_actions_to_group(const Glib::RefPtr& action_group, sinfg::String& ui_info, const sinfgapp::Action::ParamList ¶m_list, sinfgapp::Action::Category category=sinfgapp::Action::CATEGORY_ALL)const; + void add_actions_to_group(const Glib::RefPtr& action_group, synfig::String& ui_info, const synfigapp::Action::ParamList ¶m_list, synfigapp::Action::Category category=synfigapp::Action::CATEGORY_ALL)const; - void process_action(sinfg::String name, sinfgapp::Action::ParamList param_list); + void process_action(synfig::String name, synfigapp::Action::ParamList param_list); - void make_param_menu(Gtk::Menu *menu,sinfg::Canvas::Handle canvas, sinfgapp::ValueDesc value_desc, float location=0.5f); + void make_param_menu(Gtk::Menu *menu,synfig::Canvas::Handle canvas, synfigapp::ValueDesc value_desc, float location=0.5f); - void make_param_menu(Gtk::Menu *menu,sinfg::Canvas::Handle canvas,const std::list& value_desc_list); + void make_param_menu(Gtk::Menu *menu,synfig::Canvas::Handle canvas,const std::list& value_desc_list); - static void edit_waypoint(sinfgapp::ValueDesc value_desc,sinfg::Waypoint waypoint); + static void edit_waypoint(synfigapp::ValueDesc value_desc,synfig::Waypoint waypoint); private: - void insert_canvas(Gtk::TreeRow row,sinfg::Canvas::Handle canvas); + void insert_canvas(Gtk::TreeRow row,synfig::Canvas::Handle canvas); public: - static etl::handle create(sinfg::Canvas::Handle canvas); + static etl::handle create(synfig::Canvas::Handle canvas); }; // END class Instance }; // END namespace studio