synfig-studio  1.0.3
Namespaces | Macros | Functions | Variables
app.cpp File Reference

writeme More...

#include <fstream>
#include <iostream>
#include <locale>
#include <cstring>
#include <gtkmm/filechooserdialog.h>
#include <gtkmm/dialog.h>
#include <gtkmm/messagedialog.h>
#include <gtkmm/label.h>
#include <gtkmm/stock.h>
#include <gtkmm/stockitem.h>
#include <gtkmm/iconsource.h>
#include <gtkmm/accelmap.h>
#include <gtkmm/uimanager.h>
#include <gtkmm/textview.h>
#include <gtkmm/filefilter.h>
#include <gtkmm/cssprovider.h>
#include <glibmm/main.h>
#include <glibmm/thread.h>
#include <glibmm/miscutils.h>
#include <glibmm/spawn.h>
#include <gtk/gtk.h>
#include <gdkmm/general.h>
#include <synfig/loadcanvas.h>
#include <synfig/savecanvas.h>
#include <synfig/importer.h>
#include <synfig/filesystemnative.h>
#include <synfig/filesystemgroup.h>
#include <synfig/filecontainertemporary.h>
#include "app.h"
#include "dialogs/about.h"
#include "splash.h"
#include "instance.h"
#include "canvasview.h"
#include "dialogs/dialog_setup.h"
#include "dialogs/dialog_gradient.h"
#include "dialogs/dialog_input.h"
#include "dialogs/dialog_color.h"
#include "mainwindow.h"
#include "docks/dock_toolbox.h"
#include "onemoment.h"
#include "docks/dockmanager.h"
#include "states/state_eyedrop.h"
#include "states/state_normal.h"
#include "states/state_mirror.h"
#include "states/state_draw.h"
#include "states/state_lasso.h"
#include "states/state_fill.h"
#include "states/state_bline.h"
#include "states/state_brush.h"
#include "states/state_polygon.h"
#include "states/state_sketch.h"
#include "states/state_gradient.h"
#include "states/state_circle.h"
#include "states/state_rectangle.h"
#include "states/state_smoothmove.h"
#include "states/state_scale.h"
#include "states/state_star.h"
#include "states/state_text.h"
#include "states/state_width.h"
#include "states/state_rotate.h"
#include "states/state_zoom.h"
#include "devicetracker.h"
#include "docks/dialog_tooloptions.h"
#include "widgets/widget_enum.h"
#include "autorecover.h"
#include <synfigapp/settings.h>
#include "docks/dock_history.h"
#include "docks/dock_canvases.h"
#include "docks/dock_keyframes.h"
#include "docks/dock_layers.h"
#include "docks/dock_params.h"
#include "docks/dock_metadata.h"
#include "docks/dock_children.h"
#include "docks/dock_info.h"
#include "docks/dock_navigator.h"
#include "docks/dock_layergroups.h"
#include "docks/dock_timetrack.h"
#include "docks/dock_curves.h"
#include "modules/module.h"
#include "modules/mod_palette/mod_palette.h"
#include "ipc.h"
#include "statemanager.h"
#include <gtkmm/filechooser.h>
#include "general.h"
#include <synfigapp/main.h>

Namespaces

namespace  studio

Macros

#define DPM2DPI(x)   (float(x)/39.3700787402f)
#define DPI2DPM(x)   (float(x)*39.3700787402f)
#define IMAGE_DIR   "/usr/local/share/pixmaps"
#define IMAGE_EXT   "tif"
#define PLUGIN_DIR   "/usr/local/share/synfig/plugins"
#define DEFINE_ACTION(x, stock)   { Glib::RefPtr<Gtk::Action> action( Gtk::Action::create(x, stock) ); actions_action_group->add(action); }
#define ACCEL(accel, path)
#define ACCEL2(accel)

Functions

bool studio::really_delete_widget (Gtk::Widget *widget)
void studio::delete_widget (Gtk::Widget *widget)
void init_ui_manager ()
static Time::Format _App_time_format (Time::FORMAT_FRAMES)
gint Signal_Open_Ok (GtkWidget *, int *val)
gint Signal_Open_Cancel (GtkWidget *, int *val)
void on_open_dialog_with_history_selection_changed (Gtk::FileChooserDialog *dialog, Gtk::Button *history_button)
static bool try_open_url (const std::string &url)

Variables

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 std::list< std::string > recent_files
etl::handle< studio::ModPalettemod_palette_
static etl::handle
< synfigapp::UIInterface
ui_interface_
studio::IPCipc = NULL
studio::Dock_Historydock_history
studio::Dock_Canvasesdock_canvases
studio::Dock_Keyframesdock_keyframes
studio::Dock_Layersdock_layers
studio::Dock_Paramsdock_params
studio::Dock_MetaDatadock_meta_data
studio::Dock_Childrendock_children
studio::Dock_Infodock_info
studio::Dock_LayerGroupsdock_layer_groups
studio::Dock_Navigatordock_navigator
studio::Dock_Timetrackdock_timetrack
studio::Dock_Curvesdock_curves
std::list< etl::handle
< studio::Module > > 
module_list_
static int max_recent_files_ = 25
static synfig::String app_base_path_
studio::StateManagerstate_manager
::Preferences _preferences

Detailed Description

writeme

$Id$

Macro Definition Documentation

#define DPM2DPI (   x)    (float(x)/39.3700787402f)
#define DPI2DPM (   x)    (float(x)*39.3700787402f)
#define IMAGE_DIR   "/usr/local/share/pixmaps"

Referenced by studio::App::App().

#define IMAGE_EXT   "tif"
#define PLUGIN_DIR   "/usr/local/share/synfig/plugins"

Referenced by studio::App::App().

#define DEFINE_ACTION (   x,
  stock 
)    { Glib::RefPtr<Gtk::Action> action( Gtk::Action::create(x, stock) ); actions_action_group->add(action); }

Referenced by init_ui_manager().

#define ACCEL (   accel,
  path 
)
Value:
{ \
Gtk::AccelKey accel_key(accel,path); \
Gtk::AccelMap::add_entry(accel_key.get_path(), accel_key.get_key(), accel_key.get_mod()); \
}

Referenced by init_ui_manager().

#define ACCEL2 (   accel)
Value:
{ \
Gtk::AccelKey accel_key(accel); \
Gtk::AccelMap::add_entry(accel_key.get_path(), accel_key.get_key(), accel_key.get_mod()); \
}

Referenced by init_ui_manager().

Function Documentation

void init_ui_manager ( )
static Time::Format _App_time_format ( Time::FORMAT_FRAMES  )
static
gint Signal_Open_Ok ( GtkWidget *  ,
int *  val 
)
gint Signal_Open_Cancel ( GtkWidget *  ,
int *  val 
)
void on_open_dialog_with_history_selection_changed ( Gtk::FileChooserDialog *  dialog,
Gtk::Button *  history_button 
)
static bool try_open_url ( const std::string &  url)
static

Variable Documentation

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
std::list<std::string> recent_files
static
etl::handle< studio::ModPalette > mod_palette_
etl::handle<synfigapp::UIInterface> ui_interface_
static
studio::IPC* ipc = NULL
studio::Dock_History* dock_history

Referenced by studio::App::App().

studio::Dock_Canvases* dock_canvases

Referenced by studio::App::App().

studio::Dock_Keyframes* dock_keyframes

Referenced by studio::App::App().

studio::Dock_Layers* dock_layers

Referenced by studio::App::App().

studio::Dock_Params* dock_params

Referenced by studio::App::App().

studio::Dock_MetaData* dock_meta_data

Referenced by studio::App::App().

studio::Dock_Children* dock_children

Referenced by studio::App::App().

studio::Dock_Info* dock_info

Referenced by studio::App::App().

studio::Dock_LayerGroups* dock_layer_groups

Referenced by studio::App::App().

studio::Dock_Navigator* dock_navigator

Referenced by studio::App::App().

studio::Dock_Timetrack* dock_timetrack

Referenced by studio::App::App().

studio::Dock_Curves* dock_curves

Referenced by studio::App::App().

std::list< etl::handle< studio::Module > > module_list_
int max_recent_files_ = 25
static
synfig::String app_base_path_
static
studio::StateManager* state_manager
::Preferences _preferences
static