Lines Matching refs:Application
76 // Inkscape::Application static members
77 Inkscape::Application * Inkscape::Application::_S_inst = NULL;
78 bool Inkscape::Application::_crashIsHappening = false;
104 * - Application::_deskops has to be a pointer because of a signal bug somewhere else. Basically, it will attempt to access a deleted object in sp_ui_close_all(),
105 * but if it's a pointer we can stop and return NULL in Application::active_desktop()
106 * - These functions are calling Application::create for no good reason I can determine:
138 void inkscape_ref(Inkscape::Application & in)
143 void inkscape_unref(Inkscape::Application & in)
147 if (&in == Inkscape::Application::_S_inst) {
149 delete Inkscape::Application::_S_inst;
152 g_error("Attempt to unref an Application (=%p) not the current instance (=%p) (maybe it's already been destroyed?)",
153 &in, Inkscape::Application::_S_inst);
160 g_assert(Inkscape::Application::exists());
170 Application*
171 Application::operator &() const
173 return const_cast<Application*>(this);
176 * Creates a new Inkscape::Application global object.
179 Application::create(const char *argv0, bool use_gui)
181 if (!Application::exists()) {
182 new Application(argv0, use_gui);
190 * Checks whether the current Inkscape::Application global object exists.
193 Application::exists()
195 return Application::_S_inst != NULL;
199 * Returns the current Inkscape::Application global object.
200 * \pre Application::_S_inst != NULL
202 Application&
203 Application::instance()
206 g_error("Inkscape::Application does not yet exist.");
208 return *Application::_S_inst;
216 int Application::autosave()
365 void Application::autosave_init()
386 void Application::argv0(char const* argv)
392 * Creates a new Inkscape::Application.
394 * \pre Application::_S_inst == NULL
397 Application::Application(const char* argv, bool use_gui) :
408 segv_handler = signal (SIGSEGV, Application::crash_handler);
409 abrt_handler = signal (SIGABRT, Application::crash_handler);
410 fpe_handler = signal (SIGFPE, Application::crash_handler);
411 ill_handler = signal (SIGILL, Application::crash_handler);
413 bus_handler = signal (SIGBUS, Application::crash_handler);
418 // \TODO: this belongs to Application::init but if it isn't here
474 Application::~Application()
502 void Application::mapalt(guint maskvalue)
512 Application::crash_handler (int /*signum*/)
718 bool Application::load_menus()
743 Application::selection_modified (Inkscape::Selection *selection, guint flags)
754 Application::selection_changed (Inkscape::Selection * selection)
764 Application::subselection_changed (SPDesktop *desktop)
775 Application::selection_set (Inkscape::Selection * selection)
787 Application::eventcontext_set (Inkscape::UI::Tools::ToolBase * eventcontext)
799 Application::add_desktop (SPDesktop * desktop)
821 Application::remove_desktop (SPDesktop * desktop)
860 Application::activate_desktop (SPDesktop * desktop)
892 Application::reactivate_desktop (SPDesktop * desktop)
904 Application::find_desktop_by_dkey (unsigned int dkey)
916 Application::maximum_dkey()
931 Application::next_desktop ()
961 Application::prev_desktop ()
987 Application::switch_desktops_next ()
993 Application::switch_desktops_prev()
999 Application::dialogs_hide()
1008 Application::dialogs_unhide()
1017 Application::dialogs_toggle()
1027 Application::external_change()
1036 Application::add_document (SPDocument *document)
1065 Application::remove_document (SPDocument *document)
1096 Application::active_desktop()
1106 Application::active_document()
1120 Application::sole_desktop_for_document(SPDesktop const &desktop) {
1136 Application::active_event_context (void)
1146 Application::active_action_context()
1161 Application::action_context_for_document(SPDocument *doc)
1187 Application::refresh_display ()
1200 Application::exit ()
1210 Application::homedir_path(const char *filename)
1217 if (Application::exists()) {
1218 homedir = g_path_get_dirname(Application::instance()._argv0);
1230 Application::profile_path(const char *filename)
1248 // prefer c:\Documents and Settings\UserName\Application Data\ to
1342 Application::get_menus()
1350 Application::get_all_desktops(std::list< SPDesktop* >& listbuf)