studio::WorkArea Class Reference

#include <workarea.h>

Inheritance diagram for studio::WorkArea:

studio::Duckmatic

List of all members.

Public Types

enum  DragMode {
  DRAG_NONE = 0, DRAG_WINDOW, DRAG_DUCK, DRAG_GUIDE,
  DRAG_BOX
}

Public Member Functions

void insert_renderer (const etl::handle< WorkAreaRenderer > &x)
void insert_renderer (const etl::handle< WorkAreaRenderer > &x, int priority)
void erase_renderer (const etl::handle< WorkAreaRenderer > &x)
void resort_render_set ()
const etl::loose_handle
< synfig::ValueNode > & 
get_selected_value_node ()
const synfig::Point & get_drag_point () const
std::vector< std::pair
< Glib::RefPtr< Gdk::Pixbuf >
, int > > & 
get_tile_book ()
int get_refreshes () const
bool get_canceled () const
bool get_queued () const
bool get_rendering () const
bool get_full_frame () const
int get_tile_w () const
int get_tile_h () const
bool get_allow_layer_clicks ()
void set_allow_layer_clicks (bool value)
bool get_allow_duck_clicks ()
void set_allow_duck_clicks (bool value)
sigc::signal< void > & signal_onion_skin_changed ()
sigc::signal< void > & signal_rendering ()
sigc::signal< void > & signal_cursor_moved ()
sigc::signal< void > & signal_view_window_changed ()
void view_window_changed ()
sigc::signal< void, GdkDevice * > & signal_input_device_changed ()
sigc::signal< void > & signal_popup_menu ()
sigc::signal< void,
synfig::Point > & 
signal_user_click (int button=0)
 One signal per button (5 buttons).
sigc::signal< void,
etl::handle< synfig::Layer > > & 
signal_layer_selected ()
void set_onion_skin (bool x)
bool get_onion_skin () const
void toggle_onion_skin ()
void set_onion_skins (int *onions)
void set_selected_value_node (etl::loose_handle< synfig::ValueNode > x)
bool is_dragging ()
DragMode get_dragging_mode ()
 WorkArea (etl::loose_handle< synfigapp::CanvasInterface > canvas_interface)
virtual ~WorkArea ()
void set_cursor (const Gdk::Cursor &x)
void set_cursor (Gdk::CursorType x)
const synfig::Point & get_cursor_pos () const
Gtk::Adjustment * get_scrollx_adjustment ()
Gtk::Adjustment * get_scrolly_adjustment ()
const Gtk::Adjustment * get_scrollx_adjustment () const
const Gtk::Adjustment * get_scrolly_adjustment () const
void set_instance (etl::loose_handle< studio::Instance > x)
void set_canvas (etl::handle< synfig::Canvas > x)
void set_canvas_view (etl::loose_handle< studio::CanvasView > x)
etl::handle< synfig::Canvas > get_canvas () const
etl::handle< studio::Instanceget_instance () const
etl::loose_handle
< studio::CanvasView
get_canvas_view () const
void refresh_dimension_info ()
void enable_grid ()
 Enables showing of the grid.
void disable_grid ()
 Disables showing of the grid.
void toggle_grid ()
 Toggles the showing of the grid.
bool grid_status () const
 Returns the state of the show_grid flag.
void toggle_grid_snap ()
bool get_show_guides () const
void set_show_guides (bool x)
void toggle_show_guides ()
bool get_low_resolution_flag () const
void set_low_resolution_flag (bool x)
void toggle_low_resolution_flag ()
void queue_scroll ()
 ???
void set_grid_size (const synfig::Vector &s)
 Sets the size of the grid.
void popup_menu ()
 ??
int get_quality () const
int get_low_res_pixel_size () const
void set_quality (int x)
void set_low_res_pixel_size (int x)
int get_w () const
int get_h () const
int get_bpp () const
const synfig::RendDesc & get_rend_desc () const
 ??
void set_rend_desc (const synfig::RendDesc &x)
 ??
synfig::Point screen_to_comp_coords (synfig::Point pos) const
 Converts screen coords (ie: pixels) to composition coordinates.
synfig::Point comp_to_screen_coords (synfig::Point pos) const
 Converts composition coordinates to screen coords (ie: pixels).
float get_pw () const
float get_ph () const
const synfig::Point & get_window_tl () const
const synfig::Point & get_window_br () const
bool async_update_preview ()
void async_update_finished ()
void async_render_preview (synfig::Time time)
void async_render_preview ()
bool sync_update_preview ()
bool sync_render_preview (synfig::Time time)
bool sync_render_preview ()
void sync_render_preview_hook ()
void queue_render_preview ()
void queue_draw_preview ()
void zoom_in ()
void zoom_out ()
void zoom_fit ()
void zoom_norm ()
float get_zoom () const
void set_zoom (float z)
void set_progress_callback (synfig::ProgressCallback *x)
synfig::ProgressCallback * get_progress_callback ()
void set_focus_point (const synfig::Point &x)
synfig::Point get_focus_point () const
void done_rendering ()
bool refresh (GdkEventExpose *bleh=NULL)
void reset_cursor ()
void refresh_cursor ()
void save_meta_data ()
void load_meta_data ()

Public Attributes

bool solid_lines
GuideList::iterator curr_guide
int timecode_width
int timecode_height

Friends

class WorkAreaTarget
class WorkAreaTarget_Full
class DirtyTrap
class WorkAreaRenderer
class WorkAreaProgress


Member Enumeration Documentation

Enumerator:
DRAG_NONE 
DRAG_WINDOW 
DRAG_DUCK 
DRAG_GUIDE 
DRAG_BOX 


Constructor & Destructor Documentation

WorkArea::WorkArea ( etl::loose_handle< synfigapp::CanvasInterface canvas_interface  ) 

WorkArea::~WorkArea (  )  [virtual]


Member Function Documentation

void WorkArea::insert_renderer ( const etl::handle< WorkAreaRenderer > &  x  ) 

Referenced by insert_renderer(), and WorkArea().

void WorkArea::insert_renderer ( const etl::handle< WorkAreaRenderer > &  x,
int  priority 
)

References insert_renderer().

void WorkArea::erase_renderer ( const etl::handle< WorkAreaRenderer > &  x  ) 

void WorkArea::resort_render_set (  ) 

const etl::loose_handle<synfig::ValueNode>& studio::WorkArea::get_selected_value_node (  )  [inline]

const synfig::Point& studio::WorkArea::get_drag_point (  )  const [inline]

std::vector< std::pair<Glib::RefPtr<Gdk::Pixbuf>,int> >& studio::WorkArea::get_tile_book (  )  [inline]

int studio::WorkArea::get_refreshes (  )  const [inline]

bool studio::WorkArea::get_canceled (  )  const [inline]

bool studio::WorkArea::get_queued (  )  const [inline]

bool studio::WorkArea::get_rendering (  )  const [inline]

bool studio::WorkArea::get_full_frame (  )  const [inline]

int studio::WorkArea::get_tile_w (  )  const [inline]

int studio::WorkArea::get_tile_h (  )  const [inline]

bool studio::WorkArea::get_allow_layer_clicks (  )  [inline]

void studio::WorkArea::set_allow_layer_clicks ( bool  value  )  [inline]

bool studio::WorkArea::get_allow_duck_clicks (  )  [inline]

void studio::WorkArea::set_allow_duck_clicks ( bool  value  )  [inline]

sigc::signal<void>& studio::WorkArea::signal_onion_skin_changed (  )  [inline]

Referenced by set_onion_skin().

sigc::signal<void>& studio::WorkArea::signal_rendering (  )  [inline]

sigc::signal<void>& studio::WorkArea::signal_cursor_moved (  )  [inline]

sigc::signal<void>& studio::WorkArea::signal_view_window_changed (  )  [inline]

Referenced by view_window_changed().

void studio::WorkArea::view_window_changed (  )  [inline]

sigc::signal<void,GdkDevice* >& studio::WorkArea::signal_input_device_changed (  )  [inline]

sigc::signal<void>& studio::WorkArea::signal_popup_menu (  )  [inline]

Referenced by popup_menu().

sigc::signal<void,synfig::Point>& studio::WorkArea::signal_user_click ( int  button = 0  )  [inline]

One signal per button (5 buttons).

sigc::signal<void, etl::handle<synfig::Layer> >& studio::WorkArea::signal_layer_selected (  )  [inline]

void WorkArea::set_onion_skin ( bool  x  ) 

bool WorkArea::get_onion_skin (  )  const

void studio::WorkArea::toggle_onion_skin (  )  [inline]

void WorkArea::set_onion_skins ( int *  onions  ) 

void WorkArea::set_selected_value_node ( etl::loose_handle< synfig::ValueNode >  x  ) 

bool studio::WorkArea::is_dragging (  )  [inline]

References DRAG_NONE.

DragMode studio::WorkArea::get_dragging_mode (  )  [inline]

void studio::WorkArea::set_cursor ( const Gdk::Cursor &  x  ) 

void studio::WorkArea::set_cursor ( Gdk::CursorType  x  ) 

const synfig::Point& studio::WorkArea::get_cursor_pos (  )  const [inline]

Gtk::Adjustment* studio::WorkArea::get_scrollx_adjustment (  )  [inline]

Gtk::Adjustment* studio::WorkArea::get_scrolly_adjustment (  )  [inline]

const Gtk::Adjustment* studio::WorkArea::get_scrollx_adjustment (  )  const [inline]

const Gtk::Adjustment* studio::WorkArea::get_scrolly_adjustment (  )  const [inline]

void studio::WorkArea::set_instance ( etl::loose_handle< studio::Instance x  )  [inline]

void studio::WorkArea::set_canvas ( etl::handle< synfig::Canvas >  x  )  [inline]

void studio::WorkArea::set_canvas_view ( etl::loose_handle< studio::CanvasView x  )  [inline]

etl::handle<synfig::Canvas> studio::WorkArea::get_canvas (  )  const [inline]

etl::handle<studio::Instance> studio::WorkArea::get_instance (  )  const [inline]

etl::loose_handle<studio::CanvasView> studio::WorkArea::get_canvas_view (  )  const [inline]

void WorkArea::refresh_dimension_info (  ) 

void WorkArea::enable_grid (  ) 

Enables showing of the grid.

References save_meta_data().

void WorkArea::disable_grid (  ) 

Disables showing of the grid.

References save_meta_data().

void WorkArea::toggle_grid (  ) 

Toggles the showing of the grid.

References save_meta_data().

bool studio::WorkArea::grid_status (  )  const [inline]

Returns the state of the show_grid flag.

Referenced by studio::Renderer_Grid::get_enabled_vfunc().

void studio::WorkArea::toggle_grid_snap (  )  [inline]

bool studio::WorkArea::get_show_guides (  )  const [inline]

void WorkArea::set_show_guides ( bool  x  ) 

References save_meta_data().

Referenced by toggle_show_guides().

void studio::WorkArea::toggle_show_guides (  )  [inline]

bool studio::WorkArea::get_low_resolution_flag (  )  const [inline]

void WorkArea::set_low_resolution_flag ( bool  x  ) 

void WorkArea::toggle_low_resolution_flag (  ) 

void WorkArea::queue_scroll (  ) 

void WorkArea::set_grid_size ( const synfig::Vector &  s  ) 

Sets the size of the grid.

Reimplemented from studio::Duckmatic.

References save_meta_data(), and studio::Duckmatic::set_grid_size().

Referenced by load_meta_data().

void WorkArea::popup_menu (  ) 

??

References signal_popup_menu().

Referenced by WorkArea().

int studio::WorkArea::get_quality (  )  const [inline]

int studio::WorkArea::get_low_res_pixel_size (  )  const [inline]

void WorkArea::set_quality ( int  x  ) 

void WorkArea::set_low_res_pixel_size ( int  x  ) 

int studio::WorkArea::get_w (  )  const [inline]

int studio::WorkArea::get_h (  )  const [inline]

int studio::WorkArea::get_bpp (  )  const [inline]

const synfig::RendDesc& studio::WorkArea::get_rend_desc (  )  const [inline]

??

void studio::WorkArea::set_rend_desc ( const synfig::RendDesc &  x  )  [inline]

synfig::Point WorkArea::screen_to_comp_coords ( synfig::Point  pos  )  const

Converts screen coords (ie: pixels) to composition coordinates.

References get_canvas(), and get_focus_point().

Referenced by studio::WorkAreaRenderer::screen_to_comp_coords().

synfig::Point WorkArea::comp_to_screen_coords ( synfig::Point  pos  )  const

Converts composition coordinates to screen coords (ie: pixels).

Referenced by studio::WorkAreaRenderer::comp_to_screen_coords().

float studio::WorkArea::get_pw (  )  const [inline]

float studio::WorkArea::get_ph (  )  const [inline]

const synfig::Point& studio::WorkArea::get_window_tl (  )  const [inline]

const synfig::Point& studio::WorkArea::get_window_br (  )  const [inline]

bool studio::WorkArea::async_update_preview (  ) 

void studio::WorkArea::async_update_finished (  ) 

References _, done_rendering(), and get_canvas_view().

Referenced by async_update_preview().

void studio::WorkArea::async_render_preview ( synfig::Time  time  ) 

void WorkArea::async_render_preview (  ) 

bool studio::WorkArea::sync_update_preview (  ) 

bool studio::WorkArea::sync_render_preview ( synfig::Time  time  ) 

bool WorkArea::sync_render_preview (  ) 

void WorkArea::sync_render_preview_hook (  ) 

void studio::WorkArea::queue_render_preview (  ) 

void studio::WorkArea::queue_draw_preview (  ) 

void studio::WorkArea::zoom_in (  ) 

References set_zoom().

Referenced by WorkArea().

void studio::WorkArea::zoom_out (  ) 

References set_zoom().

Referenced by WorkArea().

void studio::WorkArea::zoom_fit (  ) 

References get_focus_point(), set_focus_point(), and set_zoom().

Referenced by WorkArea().

void studio::WorkArea::zoom_norm (  ) 

References set_zoom().

Referenced by WorkArea().

float studio::WorkArea::get_zoom (  )  const [inline]

void studio::WorkArea::set_zoom ( float  z  ) 

void studio::WorkArea::set_progress_callback ( synfig::ProgressCallback *  x  )  [inline]

synfig::ProgressCallback* studio::WorkArea::get_progress_callback (  )  [inline]

void WorkArea::set_focus_point ( const synfig::Point &  x  ) 

synfig::Point WorkArea::get_focus_point (  )  const

void WorkArea::done_rendering (  ) 

bool WorkArea::refresh ( GdkEventExpose *  bleh = NULL  ) 

void studio::WorkArea::reset_cursor (  ) 

void studio::WorkArea::refresh_cursor (  ) 

void WorkArea::save_meta_data (  ) 

void WorkArea::load_meta_data (  ) 


Friends And Related Function Documentation

friend class WorkAreaTarget [friend]

friend class WorkAreaTarget_Full [friend]

Referenced by async_update_preview().

friend class DirtyTrap [friend]

friend class WorkAreaRenderer [friend]

friend class WorkAreaProgress [friend]

Referenced by sync_update_preview().


Member Data Documentation

Referenced by load_meta_data(), and WorkArea().

GuideList::iterator studio::WorkArea::curr_guide


The documentation for this class was generated from the following files:

Generated on Fri Jul 31 00:03:28 2009 for synfig-studio by  doxygen 1.5.6