synfig-studio  1.0.3
Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Friends | List of all members
studio::App Class Reference

#include <app.h>

Inheritance diagram for studio::App:
studio::IconController

Classes

struct  Busy

Public Types

enum  Response { RESPONSE_ACCEPT_WITH_HISTORY = 1 }

Public Member Functions

 App (const synfig::String &basepath, int *argc, char ***argv)
virtual ~App ()

Static Public Member Functions

static DockManagerget_dock_manager ()
static sigc::signal< void > & signal_present_all ()
static sigc::signal< void > & signal_recent_files_changed ()
static sigc::signal< void,
etl::loose_handle< CanvasView > > & 
signal_canvas_view_focus ()
static sigc::signal< void,
etl::handle< Instance > > & 
signal_instance_selected ()
static sigc::signal< void,
etl::handle< Instance > > & 
signal_instance_created ()
static sigc::signal< void,
etl::handle< Instance > > & 
signal_instance_deleted ()
static StateManagerget_state_manager ()
static Glib::RefPtr< UIManager > & ui_manager ()
static void add_recent_file (const etl::handle< Instance > instance)
static synfig::String get_base_path ()
static void save_settings ()
static bool load_settings (const synfig::String &key_filter="")
static void load_accel_map ()
static void load_file_window_size ()
static void load_language_settings ()
static void set_workspace_default ()
static void set_workspace_compositing ()
static void set_workspace_animating ()
static void restore_default_settings ()
static void apply_gtk_settings (bool)
static const std::list
< std::string > & 
get_recent_files ()
static const etl::handle
< synfigapp::UIInterface > & 
get_ui_interface ()
static void set_selected_instance (etl::loose_handle< Instance > instance)
static void set_selected_canvas_view (etl::loose_handle< CanvasView >)
static etl::loose_handle
< Instance
get_instance (etl::handle< synfig::Canvas > canvas)
static etl::loose_handle
< Instance
get_selected_instance ()
static etl::loose_handle
< CanvasView
get_selected_canvas_view ()
static bool open (std::string filename)
static bool open_as (std::string filename, std::string as, synfig::FileContainerZip::file_size_t truncate_storage_size=0)
static bool open_from_temporary_container_as (std::string container_filename_base, std::string as)
static void new_instance ()
static void dialog_open (std::string filename="")
static void dialog_about ()
static void quit ()
static void show_setup ()
static void undo ()
static void redo ()
static int get_max_recent_files ()
static void set_max_recent_files (int x)
static bool jack_is_locked ()
static void jack_lock ()
static void jack_unlock ()
static synfig::Time::Format get_time_format ()
static void set_time_format (synfig::Time::Format x)
static bool shutdown_request (GdkEventAny *bleh=NULL)
static bool dialog_open_file (const std::string &title, std::string &filename, std::string preference)
static bool dialog_open_file_spal (const std::string &title, std::string &filename, std::string preference)
static bool dialog_open_file_sketch (const std::string &title, std::string &filename, std::string preference)
static bool dialog_open_file_image (const std::string &title, std::string &filename, std::string preference)
static bool dialog_open_file_audio (const std::string &title, std::string &filename, std::string preference)
static bool dialog_open_file_with_history_button (const std::string &title, std::string &filename, bool &show_history, std::string preference)
static bool dialog_save_file (const std::string &title, std::string &filename, std::string preference)
static bool dialog_save_file_spal (const std::string &title, std::string &filename, std::string preference)
static bool dialog_save_file_sketch (const std::string &title, std::string &filename, std::string preference)
static bool dialog_save_file_render (const std::string &title, std::string &filename, std::string preference)
static bool dialog_select_list_item (const std::string &title, const std::string &message, const std::list< std::string > &list, int &item_index)
static bool dialog_entry (const std::string &action, const std::string &content, std::string &text, const std::string &button1, const std::string &button2)
static bool dialog_paragraph (const std::string &title, const std::string &message, std::string &text)
static void dialog_not_implemented ()
static void dialog_help ()
static void dialog_message_1b (const std::string &type, const std::string &message, const std::string &detials, const std::string &button1, const std::string &long_details="long_details")
static bool dialog_message_2b (const std::string &message, const std::string &details, const Gtk::MessageType &type, const std::string &button1, const std::string &button2)
static int dialog_message_3b (const std::string &message, const std::string &details, const Gtk::MessageType &type, const std::string &button1, const std::string &button2, const std::string &button3)
static void open_url (const std::string &url)
static synfig::String get_config_file (const synfig::String &file)
static void setup_changed ()

Static Public Attributes

static Dialog_Inputdialog_input
static DeviceTrackerdevice_tracker = 0
static AutoRecoverauto_recover = NULL
static DockManagerdock_manager = 0
static Dialog_Setupdialog_setup
static Dialog_Gradientdialog_gradient
static Dialog_Colordialog_color
static Dialog_ToolOptionsdialog_tool_options
static synfig::Distance::System distance_system
static synfig::Gamma gamma
static Aboutabout = NULL
static MainWindowmain_window = NULL
static Dock_Toolboxdock_toolbox = NULL
static std::list< etl::handle
< Instance > > 
instance_list
static bool shutdown_in_progress
static bool use_colorspace_gamma = true
static bool restrict_radius_ducks = true
static bool resize_imported_images = false
static bool enable_experimental_features = false
static bool use_dark_theme = false
static synfigapp::PluginManager plugin_manager
static synfig::String browser_command
static synfig::String brushes_path
static synfig::String custom_filename_prefix
static int preferred_x_size = 480
static int preferred_y_size = 270
static synfig::String predefined_size
static synfig::String predefined_fps
static float preferred_fps = 24.0
static synfig::String sequence_separator
static bool navigator_uses_cairo = false
static bool workarea_uses_cairo = false
static bool enable_mainwin_menubar = true
static synfig::String ui_language

Friends

class Preferences
class Dialog_Setup

Additional Inherited Members

- Private Member Functions inherited from studio::IconController
 IconController (const synfig::String &basepath)
 ~IconController ()
void init_icons (const synfig::String &path_to_icons)
- Static Private Member Functions inherited from studio::IconController
static Glib::RefPtr< Gdk::Cursor > get_normal_cursor ()
static Glib::RefPtr< Gdk::Cursor > get_tool_cursor (const Glib::ustring &name, const Glib::RefPtr< Gdk::Window > &window)

Member Enumeration Documentation

Enumerator:
RESPONSE_ACCEPT_WITH_HISTORY 

Constructor & Destructor Documentation

App::App ( const synfig::String &  basepath,
int *  argc,
char ***  argv 
)

Must be done before Dock_Timetrack and Dock_Curves : both are connected to a studio::LayerTree::param_tree_view_'s signal, and studio::LayerTree is created from Dock_Layers::init_canvas_view_vfunc

References _, _preferences, about, synfigapp::Settings::add_domain(), studio::StateManager::add_state(), app_base_path_, apply_gtk_settings(), auto_recover, synfigapp::Action::create(), device_tracker, dialog_color, dialog_gradient, dialog_input, dialog_message_1b(), Dialog_Setup, dialog_setup, dialog_tool_options, distance_system, dock_canvases, dock_children, dock_curves, dock_history, dock_info, dock_keyframes, dock_layer_groups, dock_layers, dock_manager, dock_meta_data, dock_navigator, dock_params, dock_timetrack, dock_toolbox, gamma, get_base_path(), studio::Splash::get_callback(), synfigapp::Main::get_selected_input_device(), get_ui_interface(), synfigapp::Main::get_user_app_directory(), IMAGE_DIR, studio::IconController::init_icons(), init_ui_manager(), ipc, load_accel_map(), synfigapp::PluginManager::load_dir(), load_file_window_size(), load_language_settings(), studio::DeviceTracker::load_preferences(), load_settings(), main_window, module_list_, new_instance(), open(), PLUGIN_DIR, plugin_manager, studio::Dockable::present(), studio::AutoRecover::recover(), studio::AutoRecover::recovery_needed(), studio::DockManager::register_dockable(), synfigapp::UIInterface::RESPONSE_OK, studio::DeviceTracker::save_preferences(), synfigapp::Main::set_bline_width(), set_workspace_default(), synfigapp::Main::settings(), studio::DockManager::show_all_dock_dialogs(), shutdown_in_progress, studio::Dialog_Input::signal_apply(), studio::state_bline, studio::state_brush, studio::state_circle, studio::state_draw, studio::state_eyedrop, studio::state_fill, studio::state_gradient, studio::state_lasso, state_manager, studio::state_mirror, studio::state_normal, studio::state_polygon, studio::state_rectangle, studio::state_rotate, studio::state_scale, studio::state_sketch, studio::state_smooth_move, studio::state_star, studio::state_text, studio::state_width, studio::state_zoom, ui_interface_, ui_language, and use_dark_theme.

App::~App ( )
virtual

Member Function Documentation

static DockManager* studio::App::get_dock_manager ( )
inlinestatic

References dock_manager.

sigc::signal< void > & App::signal_present_all ( )
static
sigc::signal< void > & App::signal_recent_files_changed ( )
static
sigc::signal< void, etl::loose_handle< CanvasView > > & App::signal_canvas_view_focus ( )
static
sigc::signal< void, etl::handle< Instance > > & App::signal_instance_selected ( )
static
sigc::signal< void, etl::handle< Instance > > & App::signal_instance_created ( )
static
sigc::signal< void, etl::handle< Instance > > & App::signal_instance_deleted ( )
static
StateManager * App::get_state_manager ( )
static

References state_manager.

static Glib::RefPtr<UIManager>& studio::App::ui_manager ( )
inlinestatic
void App::add_recent_file ( const etl::handle< Instance instance)
static
synfig::String studio::App::get_base_path ( )
static
void App::save_settings ( )
static
bool App::load_settings ( const synfig::String &  key_filter = "")
static
void App::load_accel_map ( )
static

References get_config_file().

Referenced by App().

void App::load_file_window_size ( )
static

References get_config_file().

Referenced by App().

void App::load_language_settings ( )
static

References get_config_file(), and ui_language.

Referenced by App().

void App::set_workspace_default ( )
static
void App::set_workspace_compositing ( )
static
void App::set_workspace_animating ( )
static
void App::restore_default_settings ( )
static
void App::apply_gtk_settings ( bool  use_dark)
static

References synfigapp::Action::create().

Referenced by App().

const std::list< std::string > & App::get_recent_files ( )
static

References recent_files.

const etl::handle< synfigapp::UIInterface > & App::get_ui_interface ( )
static
void App::set_selected_instance ( etl::loose_handle< Instance instance)
static
void App::set_selected_canvas_view ( etl::loose_handle< CanvasView canvas_view)
static
etl::loose_handle< Instance > App::get_instance ( etl::handle< synfig::Canvas >  canvas)
static
static etl::loose_handle<Instance> studio::App::get_selected_instance ( )
inlinestatic
static etl::loose_handle<CanvasView> studio::App::get_selected_canvas_view ( )
inlinestatic
bool App::open ( std::string  filename)
static

References open_as().

Referenced by App().

bool App::open_as ( std::string  filename,
std::string  as,
synfig::FileContainerZip::file_size_t  truncate_storage_size = 0 
)
static
bool App::open_from_temporary_container_as ( std::string  container_filename_base,
std::string  as 
)
static
void App::new_instance ( )
static
void App::dialog_open ( std::string  filename = "")
static
void App::dialog_about ( )
static

References about.

void App::quit ( )
static
void App::show_setup ( )
static
void studio::App::undo ( )
static
void studio::App::redo ( )
static
int studio::App::get_max_recent_files ( )
static
void studio::App::set_max_recent_files ( int  x)
static

References max_recent_files_.

bool App::jack_is_locked ( )
static
void App::jack_lock ( )
static

References instance_list.

void App::jack_unlock ( )
static

References instance_list.

Time::Format App::get_time_format ( )
static
void App::set_time_format ( synfig::Time::Format  x)
static

References _App_time_format().

bool App::shutdown_request ( GdkEventAny *  bleh = NULL)
static

References quit().

bool App::dialog_open_file ( const std::string &  title,
std::string &  filename,
std::string  preference 
)
static
bool App::dialog_open_file_spal ( const std::string &  title,
std::string &  filename,
std::string  preference 
)
static
bool App::dialog_open_file_sketch ( const std::string &  title,
std::string &  filename,
std::string  preference 
)
static
bool App::dialog_open_file_image ( const std::string &  title,
std::string &  filename,
std::string  preference 
)
static
bool App::dialog_open_file_audio ( const std::string &  title,
std::string &  filename,
std::string  preference 
)
static
bool App::dialog_open_file_with_history_button ( const std::string &  title,
std::string &  filename,
bool &  show_history,
std::string  preference 
)
static
bool App::dialog_save_file ( const std::string &  title,
std::string &  filename,
std::string  preference 
)
static
bool App::dialog_save_file_spal ( const std::string &  title,
std::string &  filename,
std::string  preference 
)
static
bool App::dialog_save_file_sketch ( const std::string &  title,
std::string &  filename,
std::string  preference 
)
static
bool App::dialog_save_file_render ( const std::string &  title,
std::string &  filename,
std::string  preference 
)
static

References _preferences, and main_window.

bool App::dialog_select_list_item ( const std::string &  title,
const std::string &  message,
const std::list< std::string > &  list,
int &  item_index 
)
static

References synfigapp::Action::create(), and main_window.

Referenced by dialog_open().

bool App::dialog_entry ( const std::string &  action,
const std::string &  content,
std::string &  text,
const std::string &  button1,
const std::string &  button2 
)
static
bool App::dialog_paragraph ( const std::string &  title,
const std::string &  message,
std::string &  text 
)
static
void App::dialog_not_implemented ( )
static

References _, and main_window.

void App::dialog_help ( )
static

References _, main_window, and try_open_url().

void App::dialog_message_1b ( const std::string &  type,
const std::string &  message,
const std::string &  detials,
const std::string &  button1,
const std::string &  long_details = "long_details" 
)
static
bool App::dialog_message_2b ( const std::string &  message,
const std::string &  details,
const Gtk::MessageType &  type,
const std::string &  button1,
const std::string &  button2 
)
static
int App::dialog_message_3b ( const std::string &  message,
const std::string &  details,
const Gtk::MessageType &  type,
const std::string &  button1,
const std::string &  button2,
const std::string &  button3 
)
static

References main_window.

void App::open_url ( const std::string &  url)
static

References _, main_window, and try_open_url().

synfig::String App::get_config_file ( const synfig::String &  file)
static
void studio::App::setup_changed ( )
static

Friends And Related Function Documentation

friend class Preferences
friend
friend class Dialog_Setup
friend

Referenced by App().

Member Data Documentation

studio::Dialog_Input * studio::App::dialog_input
static

Referenced by App(), and ~App().

studio::DeviceTracker * studio::App::device_tracker = 0
static

Referenced by App().

studio::AutoRecover * studio::App::auto_recover = NULL
static
studio::DockManager * studio::App::dock_manager = 0
static
studio::Dialog_Setup * App::dialog_setup
static

Referenced by App(), show_setup(), and ~App().

studio::Dialog_Gradient * studio::App::dialog_gradient
static

Referenced by App(), and ~App().

studio::Dialog_Color * studio::App::dialog_color
static

Referenced by App(), and ~App().

studio::Dialog_ToolOptions * studio::App::dialog_tool_options
static

Referenced by App().

synfig::Distance::System App::distance_system
static
synfig::Gamma App::gamma
static
studio::About * studio::App::about = NULL
static

Referenced by App(), dialog_about(), and ~App().

studio::MainWindow * studio::App::main_window = NULL
static
studio::Dock_Toolbox * studio::App::dock_toolbox = NULL
static
std::list< etl::handle< Instance > > App::instance_list
static
bool App::shutdown_in_progress
static
bool studio::App::use_colorspace_gamma = true
static
bool studio::App::restrict_radius_ducks = true
static
bool studio::App::resize_imported_images = false
static
bool studio::App::enable_experimental_features = false
static
bool studio::App::use_dark_theme = false
static
synfigapp::PluginManager studio::App::plugin_manager
static

Referenced by App(), and init_ui_manager().

String studio::App::browser_command
static
String studio::App::brushes_path
static
String studio::App::custom_filename_prefix
static
int studio::App::preferred_x_size = 480
static
int studio::App::preferred_y_size = 270
static

Referenced by new_instance().

String studio::App::predefined_size
static
String studio::App::predefined_fps
static
float studio::App::preferred_fps = 24.0
static
String studio::App::sequence_separator
static
bool studio::App::navigator_uses_cairo = false
static
bool studio::App::workarea_uses_cairo = false
static
bool studio::App::enable_mainwin_menubar = true
static
String studio::App::ui_language
static

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