index 7d7426675e436ad44dda4acad8ddc4decd0b76f9..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 {
*
*/
-class UndoHistory : public Dialog {
+class UndoHistory : public Widget::Panel {
public:
virtual ~UndoHistory();
- static UndoHistory *create(Behavior::BehaviorFactory behavior_factory);
+ 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(Behavior::BehaviorFactory behavior_factory);
+ UndoHistory();
// no default constructor, noncopyable, nonassignable
UndoHistory(UndoHistory const &d);