diff options
| author | gustav_b <gustav_b@users.sourceforge.net> | 2007-11-22 00:14:41 +0000 |
|---|---|---|
| committer | gustav_b <gustav_b@users.sourceforge.net> | 2007-11-22 00:14:41 +0000 |
| commit | 5caa6ff4dfb7b538555d60fa2732272bf8b9828b (patch) | |
| tree | 65c6fb0232f8621fa6cecdcdf68d0790bd955777 /src/ui/dialog/document-properties.h | |
| parent | Fix ordering of LPE parameters (no longer use map, just use vector) (diff) | |
| download | inkscape-5caa6ff4dfb7b538555d60fa2732272bf8b9828b.tar.gz inkscape-5caa6ff4dfb7b538555d60fa2732272bf8b9828b.zip | |
The dialog to panel refactoring:
* Made the current dialogs subclass the Panel class instead of the
Dialog class.
* Extended the Panel class with some functionality that the dialogs
relied on.
* Added a PanelDialog class which is a dialog container for a
single panel with the dialog behavior as a template parameter.
(* Fixed coding style for the Panel and Dialog class)
For details, see
http://www.nabble.com/Re%3A-Dockable-dialogs%2C-todo-list-p12728194.html
http://www.nabble.com/Re%3A-Inkscape-overcomes-Xara-in-Google-Trends-p13126622.html
(bzr r4126)
Diffstat (limited to 'src/ui/dialog/document-properties.h')
| -rw-r--r-- | src/ui/dialog/document-properties.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/dialog/document-properties.h b/src/ui/dialog/document-properties.h index 07382d524..b4e303325 100644 --- a/src/ui/dialog/document-properties.h +++ b/src/ui/dialog/document-properties.h @@ -24,7 +24,7 @@ #include "ui/widget/registered-widget.h" #include "ui/widget/registry.h" #include "ui/widget/tolerance-slider.h" -#include "dialog.h" +#include "ui/widget/panel.h" using namespace Inkscape::UI::Widget; @@ -35,10 +35,10 @@ namespace Inkscape { namespace UI { namespace Dialog { -class DocumentProperties : public Inkscape::UI::Dialog::Dialog { +class DocumentProperties : public UI::Widget::Panel { public: void update(); - static DocumentProperties *create(Behavior::BehaviorFactory behavior_factory); + static DocumentProperties &getInstance(); static void destroy(); sigc::connection _doc_replaced_connection; @@ -93,7 +93,7 @@ protected: Registry _wr; private: - DocumentProperties(Behavior::BehaviorFactory behavior_factory); + DocumentProperties(); virtual ~DocumentProperties(); // callback methods for buttons on grids page. |
