From be8029ed57d68a7b8e94cfc5b82984a8b1c75e55 Mon Sep 17 00:00:00 2001 From: Krzysztof Kosi??ski Date: Tue, 12 Oct 2010 22:06:35 +0200 Subject: Remove the failed and unused "new gui" stuff. (bzr r9828) --- src/application/editor.h | 140 ----------------------------------------------- 1 file changed, 140 deletions(-) delete mode 100644 src/application/editor.h (limited to 'src/application/editor.h') diff --git a/src/application/editor.h b/src/application/editor.h deleted file mode 100644 index 4545022b8..000000000 --- a/src/application/editor.h +++ /dev/null @@ -1,140 +0,0 @@ -/** @file - * @brief Singleton class to manage an application used for editing SVG - * documents using GUI views - */ -/* - * Authors: - * Bryce W. Harrington - * Ralf Stephan - * - * Copyright (C) 2004 Bryce Harrington - * - * Released under GNU GPL. Read the file 'COPYING' for more information. - */ - -#ifndef INKSCAPE_APPLICATION_EDITOR_H -#define INKSCAPE_APPLICATION_EDITOR_H - -#include -#include -#include -#include -#include "app-prototype.h" - -class SPDesktop; -class SPDocument; -class SPEventContext; - -namespace Inkscape { - class Selection; - namespace XML { - class Document; - } - namespace UI { - namespace View { - class Edit; - } - } - namespace NSApplication { - -class Editor : public AppPrototype -{ -public: - static Editor *create (int argc, char **argv); - virtual ~Editor(); - - void* getWindow(); - - void toggleDialogs(); - void nextDesktop(); - void prevDesktop(); - - void refreshDisplay(); - void exit(); - - bool lastViewOfDocument(SPDocument* doc, SPDesktop* view) const; - - bool addView(SPDesktop* view); - bool deleteView(SPDesktop* view); - - static Inkscape::XML::Document *getPreferences(); - static SPDesktop* getActiveDesktop(); - static bool isDesktopActive (SPDesktop* dt) { return getActiveDesktop()==dt; } - static SPDesktop* createDesktop (SPDocument* doc); - static void addDesktop (SPDesktop* dt); - static void removeDesktop (SPDesktop* dt); - static void activateDesktop (SPDesktop* dt); - static void reactivateDesktop (SPDesktop* dt); - static bool isDuplicatedView (SPDesktop* dt); - - static SPDocument* getActiveDocument(); - static void addDocument (SPDocument* doc); - static void removeDocument (SPDocument* doc); - - static void selectionModified (Inkscape::Selection*, guint); - static void selectionChanged (Inkscape::Selection*); - static void subSelectionChanged (SPDesktop*); - static void selectionSet (Inkscape::Selection*); - static void eventContextSet (SPEventContext*); - static void hideDialogs(); - static void unhideDialogs(); - - static sigc::connection connectSelectionModified (const sigc::slot &slot); - static sigc::connection connectSelectionChanged (const sigc::slot &slot); - static sigc::connection connectSubselectionChanged (const sigc::slot &slot); - static sigc::connection connectSelectionSet (const sigc::slot &slot); - static sigc::connection connectEventContextSet (const sigc::slot &slot); - static sigc::connection connectDesktopActivated (const sigc::slot &slot); - static sigc::connection connectDesktopDeactivated (const sigc::slot &slot); - static sigc::connection connectShutdown (const sigc::slot &slot); - static sigc::connection connectDialogsHidden (const sigc::slot &slot); - static sigc::connection connectDialogsUnhidden (const sigc::slot &slot); - static sigc::connection connectExternalChange (const sigc::slot &slot); - - -protected: - Editor(Editor const &); - Editor& operator=(Editor const &); - - std::multiset _document_set; - GSList *_documents; - GSList *_desktops; - gchar *_argv0; - - bool _dialogs_toggle; - - sigc::signal _selection_modified_signal; - sigc::signal _selection_changed_signal; - sigc::signal _subselection_changed_signal; - sigc::signal _selection_set_signal; - sigc::signal _event_context_set_signal; - sigc::signal _desktop_activated_signal; - sigc::signal _desktop_deactivated_signal; - sigc::signal _shutdown_signal; - sigc::signal _dialogs_hidden_signal; - sigc::signal _dialogs_unhidden_signal; - sigc::signal _external_change_signal; - -private: - Editor(int argc, char **argv); - bool init(); -}; - -#define ACTIVE_DESKTOP Inkscape::NSApplication::Editor::getActiveDesktop() - -} // namespace NSApplication -} // namespace Inkscape - - -#endif /* !INKSCAPE_APPLICATION_EDITOR_H */ - -/* - Local Variables: - mode:c++ - c-file-style:"stroustrup" - c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +)) - indent-tabs-mode:nil - fill-column:99 - End: -*/ -// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 : -- cgit v1.2.3