index 478f9334e764b68386e187ec87966ec03ff57f95..1b5c08ce17265fd046b59ea656211a2adc0ecabf 100644 (file)
#include <gtkmm/notebook.h>
#include <glibmm/i18n.h>
+#include "ui/widget/panel.h"
#include "ui/widget/licensor.h"
#include "ui/widget/notebook-page.h"
#include "ui/widget/registry.h"
-#include "dialog.h"
using namespace Inkscape::UI::Widget;
typedef std::list<EntityEntry*> RDElist;
-class DocumentMetadata : public Inkscape::UI::Dialog::Dialog {
+class DocumentMetadata : public Inkscape::UI::Widget::Panel {
public:
void update();
- static DocumentMetadata *create(Behavior::BehaviorFactory behavior_factory);
+
+ static DocumentMetadata &getInstance();
+
static void destroy();
- sigc::connection _doc_replaced_connection;
protected:
void build_metadata();
void init();
- virtual void on_response (int);
+
+ void _handleDocumentReplaced(SPDesktop* desktop, SPDocument *document);
+ void _handleActivateDesktop(Inkscape::Application *application, SPDesktop *desktop);
+ void _handleDeactivateDesktop(Inkscape::Application *application, SPDesktop *desktop);
Gtk::Tooltips _tt;
Gtk::Notebook _notebook;
RDElist _rdflist;
Licensor _licensor;
- gchar * _prefs_path;
+ gchar const *_prefs_path;
Registry _wr;
private:
- DocumentMetadata(Behavior::BehaviorFactory behavior_factory);
virtual ~DocumentMetadata();
+ DocumentMetadata();
};
} // namespace Dialog