synfig-studio
1.0.3
|
#include <app.h>
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 DockManager * | get_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 StateManager * | get_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 () |
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) |
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.
|
virtual |
|
inlinestatic |
References dock_manager.
|
static |
References signal_present_all_.
Referenced by studio::Dock_Toolbox::Dock_Toolbox(), and studio::DockDialog::DockDialog().
|
static |
References signal_recent_files_changed_.
|
static |
References signal_canvas_view_focus_.
Referenced by set_selected_canvas_view().
|
static |
|
static |
|
static |
References signal_instance_deleted_.
Referenced by studio::Instance::close(), studio::CompView::CompView(), studio::Dock_Canvases::Dock_Canvases(), and studio::Dock_History::Dock_History().
|
static |
References state_manager.
|
inlinestatic |
Referenced by studio::CanvasView::activate(), studio::StateManager::add_state(), studio::CanvasView::deactivate(), studio::Dialog_Color::Dialog_Color(), studio::Dialog_Gradient::Dialog_Gradient(), studio::Dock_History::Dock_History(), studio::Dock_Keyframes::Dock_Keyframes(), studio::Dock_LayerGroups::Dock_LayerGroups(), studio::Dock_Layers::Dock_Layers(), studio::Dock_MetaData::Dock_MetaData(), studio::Dock_PalEdit::Dock_PalEdit(), studio::DockDialog::DockDialog(), studio::Widget_Keyframe_List::on_event(), studio::CanvasView::popup_main_menu(), studio::StateManager::StateManager(), studio::CanvasView::~CanvasView(), and studio::StateManager::~StateManager().
|
static |
|
static |
References app_base_path_.
Referenced by App(), studio::Dialog_Setup::refresh(), studio::Instance::run_plugin(), and studio::Splash::Splash().
|
static |
References get_config_file(), recent_files, synfigapp::Settings::save_to_file(), synfigapp::Main::settings(), and ui_language.
Referenced by ~App().
|
static |
References get_config_file(), synfigapp::Settings::load_from_file(), and synfigapp::Main::settings().
Referenced by App().
|
static |
References get_config_file().
Referenced by App().
|
static |
References get_config_file().
Referenced by App().
|
static |
References get_config_file(), and ui_language.
Referenced by App().
|
static |
References dock_manager, studio::DockManager::layout_from_template(), studio::DockManager::load_layout_from_string(), and studio::DockManager::show_all_dock_dialogs().
Referenced by App().
|
static |
|
static |
|
static |
|
static |
References synfigapp::Action::create().
Referenced by App().
|
static |
References recent_files.
|
static |
References ui_interface_.
Referenced by App(), studio::Instance::create(), dialog_open(), and quit().
|
static |
References get_instance(), get_selected_canvas_view(), set_selected_canvas_view(), and signal_instance_selected().
Referenced by studio::Instance::close(), studio::Instance::create(), and studio::Widget_CompSelect::on_changed().
|
static |
References signal_canvas_view_focus(), and signal_instance_selected().
Referenced by studio::Instance::close(), studio::DockBook::on_switch_page(), set_selected_instance(), and studio::DockBook::tab_button_pressed().
|
static |
References instance_list.
Referenced by open_as(), open_from_temporary_container_as(), and set_selected_instance().
|
inlinestatic |
Referenced by studio::Instance::close(), and studio::Dock_Toolbox::update_tools().
|
inlinestatic |
|
static |
References _, studio::Instance::create(), custom_filename_prefix, dialog_message_1b(), dialog_message_2b(), and get_instance().
Referenced by dialog_open(), open(), and studio::Instance::run_plugin().
|
static |
References _, studio::Instance::create(), custom_filename_prefix, dialog_message_1b(), dialog_message_2b(), and get_instance().
|
static |
References synfigapp::Action::create(), custom_filename_prefix, DPI2DPM, studio::Instance::get_count(), preferred_fps, preferred_x_size, and preferred_y_size.
Referenced by App().
|
static |
References _, ANIMATION_DIR_PREFERENCE, dialog_open_file_with_history_button(), dialog_select_list_item(), get_ui_interface(), and open_as().
Referenced by studio::Instance::open().
|
static |
References about.
|
static |
References _, auto_recover, studio::App::Busy::count, dialog_message_1b(), get_ui_interface(), instance_list, studio::AutoRecover::normal_shutdown(), and shutdown_in_progress.
Referenced by shutdown_request().
|
static |
References dialog_setup, and studio::Dialog_Setup::refresh().
|
static |
Referenced by studio::Dock_History::Dock_History().
|
static |
Referenced by studio::Dock_History::Dock_History().
|
static |
References max_recent_files_.
Referenced by studio::Dialog_Setup::refresh().
|
static |
References max_recent_files_.
|
static |
|
static |
References instance_list.
|
static |
References instance_list.
|
static |
References _App_time_format().
Referenced by studio::Widget_Timeslider::on_draw(), studio::Widget_Keyframe_List::on_event(), studio::Widget_Time::on_focus_in_event(), studio::Dialog_Setup::refresh(), studio::Widget_Time::refresh_text(), studio::CellRenderer_Time::render_vfunc(), and studio::CellRenderer_Time::start_editing_vfunc().
|
static |
References _App_time_format().
|
static |
References quit().
|
static |
References _, _preferences, synfigapp::Action::create(), and main_window.
Referenced by studio::CanvasView::image_import().
|
static |
References _, _preferences, synfigapp::Action::create(), and main_window.
|
static |
References _, _preferences, synfigapp::Action::create(), and main_window.
|
static |
References _, _preferences, synfigapp::Action::create(), and main_window.
|
static |
References _, _preferences, synfigapp::Action::create(), and main_window.
|
static |
References _, _preferences, synfigapp::Action::create(), main_window, on_open_dialog_with_history_selection_changed(), and RESPONSE_ACCEPT_WITH_HISTORY.
Referenced by dialog_open().
|
static |
|
static |
References _, _preferences, synfigapp::Action::create(), and main_window.
|
static |
References _, _preferences, synfigapp::Action::create(), and main_window.
|
static |
References _preferences, and main_window.
|
static |
References synfigapp::Action::create(), and main_window.
Referenced by dialog_open().
|
static |
References main_window.
Referenced by studio::Instance::dialog_cvs_commit(), studio::CanvasView::on_keyframe_description_set(), and studio::Instance::process_action().
|
static |
References synfigapp::Action::create(), and main_window.
|
static |
References _, and main_window.
|
static |
References _, main_window, and try_open_url().
|
static |
References main_window.
Referenced by App(), studio::Instance::dialog_cvs_add(), studio::Instance::dialog_cvs_commit(), studio::Instance::dialog_cvs_revert(), studio::Instance::dialog_cvs_update(), studio::Instance::dialog_save_as(), studio::CanvasView::image_import(), open_as(), open_from_temporary_container_as(), quit(), studio::Instance::revert(), studio::Instance::run_plugin(), studio::Instance::safe_close(), studio::Instance::save(), and studio::LayerParamTreeStore::set_value_impl().
|
static |
References main_window.
Referenced by studio::Dock_History::clear_redo(), studio::Dock_History::clear_undo(), studio::Dock_History::clear_undo_and_redo(), studio::Instance::dialog_cvs_commit(), studio::Instance::dialog_cvs_revert(), studio::Instance::dialog_cvs_update(), studio::Instance::dialog_save_as(), open_as(), open_from_temporary_container_as(), and studio::Instance::safe_revert().
|
static |
References main_window.
|
static |
References _, main_window, and try_open_url().
|
static |
References synfigapp::Main::get_user_app_directory().
Referenced by load_accel_map(), load_file_window_size(), load_language_settings(), load_settings(), and save_settings().
|
static |
|
friend |
|
friend |
Referenced by App().
|
static |
|
static |
Referenced by App().
|
static |
Referenced by App(), studio::Instance::close(), quit(), studio::Dialog_Setup::refresh(), and ~App().
|
static |
Referenced by App(), studio::DockDialog::DockDialog(), studio::DockDropArea::drop_on(), get_dock_manager(), studio::Dockable::present(), studio::DockBook::set_contents(), set_workspace_animating(), set_workspace_compositing(), set_workspace_default(), studio::CanvasView::update_title(), ~App(), studio::CanvasView::~CanvasView(), and studio::DockDialog::~DockDialog().
|
static |
Referenced by App(), show_setup(), and ~App().
|
static |
|
static |
|
static |
Referenced by App().
|
static |
|
static |
Referenced by App(), and studio::Dialog_Setup::refresh().
|
static |
Referenced by App(), dialog_about(), and ~App().
|
static |
Referenced by App(), dialog_entry(), dialog_help(), dialog_message_1b(), dialog_message_2b(), dialog_message_3b(), dialog_not_implemented(), dialog_open_file(), dialog_open_file_audio(), dialog_open_file_image(), dialog_open_file_sketch(), dialog_open_file_spal(), dialog_open_file_with_history_button(), dialog_paragraph(), dialog_save_file(), dialog_save_file_render(), dialog_save_file_sketch(), dialog_save_file_spal(), dialog_select_list_item(), studio::DockDialog::DockDialog(), studio::OneMoment::OneMoment(), open_url(), studio::DockManager::save_layout_to_string(), studio::DockManager::update_window_titles(), and ~App().
|
static |
Referenced by studio::StateManager::add_state(), App(), and studio::Dock_Toolbox::~Dock_Toolbox().
|
static |
|
static |
|
static |
Referenced by studio::Dialog_Setup::refresh().
|
static |
Referenced by studio::Duckmatic::signal_edited_duck().
|
static |
Referenced by studio::CanvasView::image_import(), and studio::Dialog_Setup::refresh().
|
static |
Referenced by studio::Dialog_Setup::refresh().
|
static |
Referenced by App(), and studio::Dialog_Setup::refresh().
|
static |
Referenced by App(), and init_ui_manager().
|
static |
Referenced by studio::Dialog_Setup::refresh(), and try_open_url().
|
static |
Referenced by studio::Dialog_Setup::refresh().
|
static |
|
static |
Referenced by new_instance(), and studio::Dialog_Setup::refresh().
|
static |
Referenced by new_instance().
|
static |
|
static |
Referenced by studio::Dialog_Setup::refresh().
|
static |
Referenced by new_instance(), and studio::Dialog_Setup::refresh().
|
static |
Referenced by studio::RenderSettings::RenderSettings().
|
static |
Referenced by studio::Dialog_Setup::refresh().
|
static |
|
static |
|
static |
Referenced by App(), studio::Dialog_Setup::Dialog_Setup(), load_language_settings(), and save_settings().