index 7b900fde5c1d67e41aef6e36773bf1d46be6e608..070a1eb22b77e332c1970749271ee063cb9e967b 100644 (file)
* Undo History dialog
*
* \brief A dialog for presenting an event log of commited, undone and redone events. Allows the
- * user to undo and redo multiple events in a more convinient way than repateaded ctrl-z,
+ * user to undo and redo multiple events in a more convenient way than repateaded ctrl-z,
* ctrl-shift-z.
*
*
#include <sstream>
#include "desktop.h"
-#include "dialog.h"
#include "event-log.h"
+#include "ui/widget/panel.h"
#include "widgets/icon.h"
namespace Inkscape {
Glib::Property<int> _property_number;
const Filter& _filter;
- struct NoFilter : Filter { bool operator() (const int& x) const { return true; } };
+ struct NoFilter : Filter { bool operator() (const int& /*x*/) const { return true; } };
};
*
*/
-class UndoHistory : public Dialog {
+class UndoHistory : public Widget::Panel {
public:
virtual ~UndoHistory();
- static UndoHistory *create();
+ static UndoHistory &getInstance();
void setDesktop(SPDesktop* desktop);
sigc::connection _document_replaced_connection;
protected:
- SPDesktop *_desktop;
SPDocument *_document;
EventLog *_event_log;
void _onCollapseEvent(const Gtk::TreeModel::iterator &iter, const Gtk::TreeModel::Path &path);
private:
+ UndoHistory();
// no default constructor, noncopyable, nonassignable
- UndoHistory();
UndoHistory(UndoHistory const &d);
UndoHistory operator=(UndoHistory const &d);