X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fcanvasview.h;h=57799b1f46a4a62ac5a06c2e2e612aef70a0220d;hb=78432386722217ddba2ba0597a96ad5d81e069ca;hp=ef1c9e192b8ac0e9a9e96406b8ce5c06c6174121;hpb=3f7b0cb177d3f3c6cf926add2bf807811f743f72;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/canvasview.h b/synfig-studio/trunk/src/gtkmm/canvasview.h index ef1c9e1..57799b1 100644 --- a/synfig-studio/trunk/src/gtkmm/canvasview.h +++ b/synfig-studio/trunk/src/gtkmm/canvasview.h @@ -6,6 +6,7 @@ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley +** Copyright (c) 2007 Chris Moore ** ** This package is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public License as @@ -97,6 +98,10 @@ /* === C L A S S E S & S T R U C T S ======================================= */ +namespace synfig { + class TransformStack; +} + namespace studio { class CanvasViewUIInterface; @@ -120,7 +125,6 @@ class Widget_Time; class Dialog_SoundSelect; class Dialog_Preview; -class synfig::TransformStack; class Dock_Layers; class Dock_Children; class Dock_Keyframes; @@ -154,7 +158,7 @@ public: typedef ChildrenTreeStore::Model ChildrenTreeModel; //! Create an instance of this class whenever doing a longer task. - /*! Make sure that you check the bool value of this class occasionaly + /*! Make sure that you check the bool value of this class occasionally ** to make sure the action has not been canceled. */ class IsWorking { @@ -184,31 +188,31 @@ private: synfig::Rect bbox; - DEBUGPOINT_CLASS(1); + // DEBUGPOINT_CLASS(1); //! State Machine Smach smach_; - DEBUGPOINT_CLASS(2); + // DEBUGPOINT_CLASS(2); etl::loose_handle instance_; etl::handle canvas_interface_; - DEBUGPOINT_CLASS(3); + // DEBUGPOINT_CLASS(3); //! Sound and information to play it etl::handle audio; studio::Widget_Sound *disp_audio; //should this be put into thing too? - SigC::Connection playcon; - SigC::Connection stopcon; + sigc::connection playcon; + sigc::connection stopcon; std::auto_ptr universal_scrubber; - //! Tooltip controler + //! Tooltip controller Gtk::Tooltips tooltips; - DEBUGPOINT_CLASS(4); + // DEBUGPOINT_CLASS(4); //! TreeModel for the layers LayerTreeModel layer_tree_model; @@ -222,7 +226,7 @@ private: //Glib::RefPtr keyframe_tree_store_; - DEBUGPOINT_CLASS(5); + // DEBUGPOINT_CLASS(5); //std::map > tree_model_book_; std::map > ref_obj_book_; @@ -316,6 +320,7 @@ private: Glib::RefPtr duck_mask_angle; Gtk::RadioButtonGroup quality_group; + Gtk::RadioButtonGroup low_res_pixel_size_group; Glib::RefPtr action_group; @@ -504,8 +509,11 @@ public: //! Updates the title of the window void update_title(); + //! Closes this document + bool close_instance(); + //! Closes this canvas view - bool close(); + bool close_view(); //! Stops the currently executing action /*! \see get_cancel_status(), reset_cancel_status(), IsWorking */ @@ -571,14 +579,6 @@ public: //t Enables or disables interaction with the timebar void set_sensitive_timebar(bool sensitive); - void do_rotoscope_bline(); - - void do_rotoscope(); - - void do_rotoscope_poly(); - - void do_eyedrop(); - void time_zoom_in(); void time_zoom_out(); @@ -597,6 +597,8 @@ public: void present(); + bool is_playing() { return is_playing_; } + /* -- ** -- S I G N A L T E R M I N A L S ------------------------------------- */ @@ -670,6 +672,7 @@ private: void on_audio_offset_notify(); bool on_duck_changed(const synfig::Point &value,const synfigapp::ValueDesc& value_desc); + bool on_duck_angle_changed(const synfig::Angle &rotation,const synfigapp::ValueDesc& value_desc); void on_layer_toggle(synfig::Layer::Handle); @@ -683,6 +686,7 @@ private: bool on_audio_scrub(); protected: + bool close_instance_when_safe(); bool on_delete_event(GdkEventAny* event); /*