Code

dead code removal
authormental <mental@users.sourceforge.net>
Tue, 1 Jul 2008 23:16:48 +0000 (23:16 +0000)
committermental <mental@users.sourceforge.net>
Tue, 1 Jul 2008 23:16:48 +0000 (23:16 +0000)
src/ui/dialog/Makefile_insert
src/ui/dialog/export.cpp [deleted file]
src/ui/dialog/export.h [deleted file]
src/ui/dialog/layer-editor.cpp [deleted file]
src/ui/dialog/layer-editor.h [deleted file]
src/ui/dialog/text-properties.cpp [deleted file]
src/ui/dialog/text-properties.h [deleted file]
src/ui/dialog/tree-editor.cpp [deleted file]
src/ui/dialog/tree-editor.h [deleted file]
src/ui/dialog/xml-editor.cpp [deleted file]
src/ui/dialog/xml-editor.h [deleted file]

index e300fe5b3eb8e9e90ea95a25b173627bd0465d09..6c75a6c81df07790a114fcff52b42782dc5d722a 100644 (file)
@@ -22,8 +22,6 @@ ui_dialog_libuidialog_a_SOURCES =             \
        ui/dialog/document-metadata.h           \
        ui/dialog/document-properties.cpp       \
        ui/dialog/document-properties.h         \
-       ui/dialog/export.cpp                    \
-       ui/dialog/export.h                      \
        ui/dialog/extension-editor.cpp          \
        ui/dialog/extension-editor.h            \
        ui/dialog/filedialog.cpp                \
@@ -40,8 +38,6 @@ ui_dialog_libuidialog_a_SOURCES =             \
        ui/dialog/inkscape-preferences.h        \
        ui/dialog/input.cpp     \
        ui/dialog/input.h       \
-       ui/dialog/layer-editor.cpp              \
-       ui/dialog/layer-editor.h                \
        ui/dialog/livepatheffect-editor.cpp             \
        ui/dialog/livepatheffect-editor.h               \
        ui/dialog/memory.cpp                    \
@@ -54,19 +50,13 @@ ui_dialog_libuidialog_a_SOURCES =           \
        ui/dialog/scriptdialog.h                \
        ui/dialog/svg-fonts-dialog.cpp  \
        ui/dialog/svg-fonts-dialog.h            \
-       ui/dialog/text-properties.cpp           \
-       ui/dialog/text-properties.h             \
        ui/dialog/tracedialog.cpp               \
        ui/dialog/tracedialog.h                 \
        ui/dialog/transformation.cpp            \
        ui/dialog/transformation.h              \
-       ui/dialog/tree-editor.cpp               \
-       ui/dialog/tree-editor.h                 \
        ui/dialog/undo-history.cpp              \
        ui/dialog/undo-history.h                \
        $(inkboard_dialogs)     \
-       ui/dialog/xml-editor.cpp                \
-       ui/dialog/xml-editor.h                  \
        ui/dialog/aboutbox.cpp              \
        ui/dialog/aboutbox.h            \
        ui/dialog/ocaldialogs.cpp       \
diff --git a/src/ui/dialog/export.cpp b/src/ui/dialog/export.cpp
deleted file mode 100644 (file)
index f95944c..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-/**
- * \brief Export dialog
- *
- * Authors:
- *   Bryce W. Harrington <bryce@bryceharrington.org>
- *
- * Copyright (C) 2004, 2005 Authors
- *
- * Released under GNU GPL.  Read the file 'COPYING' for more information.
- */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "export.h"
-#include "verbs.h"
-
-namespace Inkscape {
-namespace UI {
-namespace Dialog {
-
-Export::Export() 
-    : UI::Widget::Panel("", "dialogs.export", SP_VERB_FILE_EXPORT),
-      _page_export(1, 1)
-{
-    _getContents()->set_spacing(4);
-
-    // Notebook for individual transformations
-    _getContents()->pack_start(_notebook, true, true);
-
-    _notebook.append_page(_page_export, _("Export"));
-
-    // TODO:  Insert widgets
-
-    show_all_children();
-}
-
-Export::~Export() 
-{
-}
-
-} // namespace Dialog
-} // namespace UI
-} // namespace Inkscape
-
-/*
-  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 :
diff --git a/src/ui/dialog/export.h b/src/ui/dialog/export.h
deleted file mode 100644 (file)
index 5d83ae5..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-/**
- * \brief Export dialog
- *
- * Authors:
- *   Bryce W. Harrington <bryce@bryceharrington.org>
- *
- * Copyright (C) 2004, 2005 Authors
- *
- * Released under GNU GPL.  Read the file 'COPYING' for more information.
- */
-
-#ifndef INKSCAPE_UI_DIALOG_EXPORT_H
-#define INKSCAPE_UI_DIALOG_EXPORT_H
-
-#include <gtkmm/notebook.h>
-#include <glibmm/i18n.h>
-
-#include "ui/widget/panel.h"
-#include "ui/widget/notebook-page.h"
-
-using namespace Inkscape::UI::Widget;
-
-namespace Inkscape {
-namespace UI {
-namespace Dialog {
-
-class Export : public UI::Widget::Panel {
-public:
-    Export();
-    virtual ~Export();
-
-    static Export& getInstance() { return *new Export(); }
-
-protected:
-    Gtk::Notebook  _notebook;
-
-    NotebookPage   _page_export;
-
-private:
-    Export(Export const &d);
-    Export& operator=(Export const &d);
-};
-
-} // namespace Dialog
-} // namespace UI
-} // namespace Inkscape
-
-#endif // INKSCAPE_UI_DIALOG_EXPORT_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 :
diff --git a/src/ui/dialog/layer-editor.cpp b/src/ui/dialog/layer-editor.cpp
deleted file mode 100644 (file)
index 2b596e8..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-/**
- * \brief Layer Editor dialog
- *
- * Authors:
- *   Bryce W. Harrington <bryce@bryceharrington.org>
- *
- * Copyright (C) 2004, 2005 Authors
- *
- * Released under GNU GPL.  Read the file 'COPYING' for more information.
- */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "layer-editor.h"
-#include "verbs.h"
-
-namespace Inkscape {
-namespace UI {
-namespace Dialog {
-
-
-LayerEditor::LayerEditor() 
-    : UI::Widget::Panel("", "dialogs.layers", SP_VERB_NONE)
-{
-    // TODO:  Insert widgets
-
-    show_all_children();
-}
-
-LayerEditor::~LayerEditor() 
-{
-}
-
-} // namespace Dialog
-} // namespace UI
-} // namespace Inkscape
-
-/*
-  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 :
diff --git a/src/ui/dialog/layer-editor.h b/src/ui/dialog/layer-editor.h
deleted file mode 100644 (file)
index 0bb98da..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-/**
- * \brief Layer Editor dialog
- *
- * Authors:
- *   Bryce W. Harrington <bryce@bryceharrington.org>
- *
- * Copyright (C) 2004, 2005 Authors
- *
- * Released under GNU GPL.  Read the file 'COPYING' for more information.
- */
-
-#ifndef INKSCAPE_UI_DIALOG_LAYER_EDITOR_H
-#define INKSCAPE_UI_DIALOG_LAYER_EDITOR_H
-
-#include "ui/widget/panel.h"
-
-#include <glibmm/i18n.h>
-
-namespace Inkscape {
-namespace UI {
-namespace Dialog {
-
-class LayerEditor : public UI::Widget::Panel {
-public:
-    LayerEditor();
-    virtual ~LayerEditor();
-
-    static int get_verb();
-
-    static LayerEditor &getInstance() { return *new LayerEditor(); }
-
-protected:
-
-private:
-    LayerEditor(LayerEditor const &d);
-    LayerEditor& operator=(LayerEditor const &d);
-};
-
-} // namespace Dialog
-} // namespace UI
-} // namespace Inkscape
-
-#endif // INKSCAPE_UI_DIALOG_LAYER_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 :
diff --git a/src/ui/dialog/text-properties.cpp b/src/ui/dialog/text-properties.cpp
deleted file mode 100644 (file)
index 5ad08f0..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-/**
- * \brief Text Properties dialog
- *
- * Authors:
- *   Bryce W. Harrington <bryce@bryceharrington.org>
- *
- * Copyright (C) 2004, 2005 Authors
- *
- * Released under GNU GPL.  Read the file 'COPYING' for more information.
- */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "text-properties.h"
-#include "verbs.h"
-
-namespace Inkscape {
-namespace UI {
-namespace Dialog {
-
-TextProperties::TextProperties() 
-    : UI::Widget::Panel("", "dialogs.textandfont", SP_VERB_DIALOG_TEXT),
-      _page_font(1, 1),
-      _page_text(1, 1)
-{
-    Gtk::Box *contents = _getContents();
-
-    contents->set_spacing(4);
-
-    // Notebook for individual transformations
-    contents->pack_start(_notebook, true, true);
-
-    // TODO:  Insert widgets
-    _notebook.append_page(_page_font, _("Font"));
-    _notebook.append_page(_page_text, _("Text"));
-
-    set_size_request(450, 300);
-    
-    show_all_children();
-}
-
-TextProperties::~TextProperties() 
-{
-}
-
-} // namespace Dialog
-} // namespace UI
-} // namespace Inkscape
-
-/*
-  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 :
diff --git a/src/ui/dialog/text-properties.h b/src/ui/dialog/text-properties.h
deleted file mode 100644 (file)
index f6ef0d8..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-/**
- * \brief Text Properties dialog
- *
- * Authors:
- *   Bryce W. Harrington <bryce@bryceharrington.org>
- *
- * Copyright (C) 2004, 2005 Authors
- *
- * Released under GNU GPL.  Read the file 'COPYING' for more information.
- */
-
-#ifndef INKSCAPE_UI_DIALOG_TEXT_PROPERTIES_H
-#define INKSCAPE_UI_DIALOG_TEXT_PROPERTIES_H
-
-#include <gtkmm/notebook.h>
-#include <glibmm/i18n.h>
-
-#include "ui/widget/panel.h"
-#include "ui/widget/notebook-page.h"
-
-using namespace Inkscape::UI::Widget;
-
-namespace Inkscape {
-namespace UI {
-namespace Dialog {
-
-class TextProperties : public UI::Widget::Panel {
-public:
-    TextProperties();
-    virtual ~TextProperties();
-
-    static int get_verb();
-
-    static TextProperties &getInstance() { return *new TextProperties(); }
-
-protected:
-    Gtk::Notebook  _notebook;
-
-    NotebookPage   _page_font;
-    NotebookPage   _page_text;
-
-private:
-    TextProperties(TextProperties const &d);
-    TextProperties& operator=(TextProperties const &d);
-};
-
-} // namespace Dialog
-} // namespace UI
-} // namespace Inkscape
-
-#endif // INKSCAPE_UI_DIALOG_TEXT_PROPERTIES_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 :
diff --git a/src/ui/dialog/tree-editor.cpp b/src/ui/dialog/tree-editor.cpp
deleted file mode 100644 (file)
index 6da5c48..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * \brief  Tree Editor - Abstract base class for dialogs that allow
- *         editing properties of tree-organized data.
- *
- * Authors:
- *   Bryce W. Harrington <bryce@bryceharrington.org>
- *
- * Copyright (C) 2004, 2005 Authors
- *
- * Released under GNU GPL.  Read the file 'COPYING' for more information.
- */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "tree-editor.h"
-#include "verbs.h"
-
-namespace Inkscape {
-namespace UI {
-namespace Dialog {
-
-TreeEditor::TreeEditor(Behavior::BehaviorFactory behavior_factory)
-    : Dialog (behavior_factory, "dialogs.treeeditor", SP_VERB_NONE /*FIXME*/)
-{
-    get_vbox()->pack_start(_hbox);
-
-    _hbox.add(_leftWin);
-    _leftWin.add(_leftTree);
-
-    // Only show the scrollbars when they are necessary
-    _leftWin.set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC);
-
-    // TODO:  Create the tree model
-    
-    show_all_children();
-}
-
-} // namespace Dialog
-} // namespace UI
-} // namespace Inkscape
-
-/*
-  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 :
diff --git a/src/ui/dialog/tree-editor.h b/src/ui/dialog/tree-editor.h
deleted file mode 100644 (file)
index 18bdfe9..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * \brief  Tree Editor - Abstract base class for dialogs that allow
- *         editing properties of tree-organized data.
- *
- * Authors:
- *   Bryce W. Harrington <bryce@bryceharrington.org>
- *
- * Copyright (C) 2004, 2005 Authors
- *
- * Released under GNU GPL.  Read the file 'COPYING' for more information.
- */
-
-#ifndef INKSCAPE_DIALOG_TREE_EDITOR_H
-#define INKSCAPE_DIALOG_TREE_EDITOR_H
-
-#include <gtkmm/box.h>
-#include <gtkmm/scrolledwindow.h>
-#include <gtkmm/treeview.h>
-#include <glibmm/i18n.h>
-
-#include "dialog.h"
-
-namespace Inkscape {
-namespace UI {
-namespace Dialog {
-
-class TreeEditor : public Dialog {
-public:
-    TreeEditor(Behavior::BehaviorFactory behavior_factory);
-    virtual ~TreeEditor();
-
-protected:
-
-    Gtk::HBox             _hbox;
-    Gtk::ScrolledWindow   _leftWin;
-    Gtk::TreeView         _leftTree;
-
-    // TODO:  Add the tree model
-    // Glib::RefPtr<ExampleTreeModel> _refTreeModel;
-
-private:
-    TreeEditor(TreeEditor const &d);
-    TreeEditor& operator=(TreeEditor const &d);
-};
-
-} // namespace Dialog
-} // namespace UI
-} // namespace Inkscape
-
-#endif // INKSCAPE_UI_DIALOG_TREE_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 :
diff --git a/src/ui/dialog/xml-editor.cpp b/src/ui/dialog/xml-editor.cpp
deleted file mode 100644 (file)
index 7411bc7..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-/**
- * \brief XML Editor dialog
- *
- * Authors:
- *   Bryce W. Harrington <bryce@bryceharrington.org>
- *
- * Copyright (C) 2004, 2005 Authors
- *
- * Released under GNU GPL.  Read the file 'COPYING' for more information.
- */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "xml-editor.h"
-#include "verbs.h"
-
-namespace Inkscape {
-namespace UI {
-namespace Dialog {
-
-XmlEditor::XmlEditor() 
-    : UI::Widget::Panel("", "dialogs.xml", SP_VERB_DIALOG_XML_EDITOR)
-{
-    // TODO:  Insert widgets
-
-    show_all_children();
-}
-
-XmlEditor::~XmlEditor() 
-{
-}
-
-} // namespace Dialog
-} // namespace UI
-} // namespace Inkscape
-
-/*
-  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 :
diff --git a/src/ui/dialog/xml-editor.h b/src/ui/dialog/xml-editor.h
deleted file mode 100644 (file)
index 89df6fb..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-/**
- * \brief XML Editor dialog
- *
- * Authors:
- *   Bryce W. Harrington <bryce@bryceharrington.org>
- *
- * Copyright (C) 2004, 2005 Authors
- *
- * Released under GNU GPL.  Read the file 'COPYING' for more information.
- */
-
-#ifndef INKSCAPE_DIALOG_XML_EDITOR_H
-#define INKSCAPE_DIALOG_XML_EDITOR_H
-
-#include "ui/widget/panel.h"
-
-#include <glibmm/i18n.h>
-
-namespace Inkscape {
-namespace UI {
-namespace Dialog {
-
-class XmlEditor : public UI::Widget::Panel {
-public:
-    XmlEditor();
-    virtual ~XmlEditor();
-
-    static XmlEditor &getInstance() { return *new XmlEditor(); }
-
-protected:
-
-private:
-    XmlEditor(XmlEditor const &d);
-    XmlEditor& operator=(XmlEditor const &d);
-};
-
-} // namespace Dialog
-} // namespace UI
-} // namespace Inkscape
-
-#endif // INKSCAPE_UI_DIALOG_XML_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 :