**
** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
-** Copyright (c) 2007 Chris Moore
+** Copyright (c) 2007, 2008 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
/* === C L A S S E S & S T R U C T S ======================================= */
+namespace synfig {
+ class TransformStack;
+}
+
namespace studio {
class CanvasViewUIInterface;
class Dialog_SoundSelect;
class Dialog_Preview;
-class synfig::TransformStack;
class Dock_Layers;
class Dock_Children;
class Dock_Keyframes;
synfig::Rect bbox;
- DEBUGPOINT_CLASS(1);
+ // DEBUGPOINT_CLASS(1);
//! State Machine
Smach smach_;
- DEBUGPOINT_CLASS(2);
+ // DEBUGPOINT_CLASS(2);
etl::loose_handle<Instance> instance_;
etl::handle<synfigapp::CanvasInterface> canvas_interface_;
- DEBUGPOINT_CLASS(3);
+ // DEBUGPOINT_CLASS(3);
//! Sound and information to play it
etl::handle<AudioContainer> 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<UniversalScrubber> universal_scrubber;
//! Tooltip controller
Gtk::Tooltips tooltips;
- DEBUGPOINT_CLASS(4);
+ // DEBUGPOINT_CLASS(4);
//! TreeModel for the layers
LayerTreeModel layer_tree_model;
//Glib::RefPtr<KeyframeTreeStore> keyframe_tree_store_;
- DEBUGPOINT_CLASS(5);
+ // DEBUGPOINT_CLASS(5);
//std::map<synfig::String,Glib::RefPtr<Gtk::TreeModel> > tree_model_book_;
std::map<synfig::String,Glib::RefPtr<Glib::ObjectBase> > ref_obj_book_;
Glib::RefPtr<Gtk::ToggleAction> duck_mask_angle;
Gtk::RadioButtonGroup quality_group;
+ Gtk::RadioButtonGroup low_res_pixel_size_group;
Glib::RefPtr<Gtk::ActionGroup> action_group;
CanvasView(etl::loose_handle<Instance> instance,etl::handle<synfigapp::CanvasInterface> canvas_interface);
//! Constructor Helper
- Gtk::Widget* create_layer_tree();
+ // Gtk::Widget* create_layer_tree();
//! Constructor Helper
- Gtk::Widget* create_children_tree();
+ // Gtk::Widget* create_children_tree();
//! Constructor Helper
- Gtk::Widget* create_keyframe_tree();
+ // Gtk::Widget* create_keyframe_tree();
//! Constructor Helper
Gtk::Widget* create_status_bar();
void rebuild_ducks_layer_(synfig::TransformStack& transform_stack, synfig::Canvas::Handle canvas, std::set<synfig::Layer::Handle>& selected_list);
+ void decrease_low_res_pixel_size();
+ void increase_low_res_pixel_size();
+
/*
-- ** -- P U B L I C M E T H O D S -----------------------------------------
*/
void image_import();
- void on_waypoint_clicked(synfigapp::ValueDesc,synfig::Waypoint, int button);
+ void on_waypoint_clicked_canvasview(synfigapp::ValueDesc,std::set<synfig::Waypoint,std::less<synfig::UniqueID> >, int button, synfig::Waypoint::Side side);
void preview_option() {on_preview_option();}
void on_edited_value(synfigapp::ValueDesc,synfig::ValueBase);
- //void on_waypoint_clicked(synfigapp::ValueDesc,synfig::ValueNode_Animated::WaypointList::iterator, int button);
-
void on_drop_drag_data_received(const Glib::RefPtr<Gdk::DragContext>& context, int x, int y, const Gtk::SelectionData& selection_data, guint info, guint time);
//void on_audio_play();
public:
static etl::handle<studio::CanvasView> create(etl::loose_handle<Instance> instance,etl::handle<synfig::Canvas> canvas);
+ static std::list<int>& get_pixel_sizes();
+
}; // END of class CanvasView
}; // END of namespace studio