#include <QTextStream>
#include <QTimer>
-
+
#include <KApplication>
#include <KAction>
#include <KLocale>
m_monitorManager = new MonitorManager();
+ m_commandStack = new KUndoStack(this);
+
projectListDock = new QDockWidget(i18n("Project Tree"), this);
projectListDock->setObjectName("project_tree");
- m_projectList = new ProjectList(this);
+ m_projectList = new ProjectList(m_commandStack, this);
projectListDock->setWidget(m_projectList);
addDockWidget(Qt::TopDockWidgetArea, projectListDock);
KStandardAction::openNew(this, SLOT(newFile()),
actionCollection());
- KStandardAction::openNew(this, SLOT(newFile()),
+ /*KStandardAction::undo(this, SLOT(undo()),
actionCollection());
+ KStandardAction::redo(this, SLOT(redo()),
+ actionCollection());*/
+
KStandardAction::preferences(this, SLOT(slotPreferences()),
actionCollection());
-
+
+ QAction * redo = m_commandStack->createRedoAction(actionCollection());
+ QAction * undo = m_commandStack->createUndoAction(actionCollection());
+
setupGUI();
}
fileName = outputFileName;
}
-
+
void MainWindow::saveFileAs()
{
saveFileAs(KFileDialog::getSaveFileName());