index c3cba2d34a8f9e3652308bb7bac859d0f93cbd61..1b5c08ce17265fd046b59ea656211a2adc0ecabf 100644 (file)
#include <gtkmm/notebook.h>
#include <glibmm/i18n.h>
#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 "ui/widget/licensor.h"
#include "ui/widget/notebook-page.h"
#include "ui/widget/registry.h"
-#include "dialog.h"
using namespace Inkscape::UI::Widget;
using namespace Inkscape::UI::Widget;
typedef std::list<EntityEntry*> RDElist;
typedef std::list<EntityEntry*> RDElist;
-class DocumentMetadata : public Inkscape::UI::Dialog::Dialog {
+class DocumentMetadata : public Inkscape::UI::Widget::Panel {
public:
void update();
public:
void update();
- static DocumentMetadata *create();
+
+ static DocumentMetadata &getInstance();
+
static void destroy();
static void destroy();
- sigc::connection _doc_replaced_connection;
protected:
void build_metadata();
void init();
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;
Gtk::Tooltips _tt;
Gtk::Notebook _notebook;
RDElist _rdflist;
Licensor _licensor;
RDElist _rdflist;
Licensor _licensor;
- gchar * _prefs_path;
+ gchar const *_prefs_path;
Registry _wr;
private:
Registry _wr;
private:
- DocumentMetadata();
virtual ~DocumentMetadata();
virtual ~DocumentMetadata();
+ DocumentMetadata();
};
} // namespace Dialog
};
} // namespace Dialog