[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/libs/kofficecore
From: Sven Langkamp <sven.langkamp () gmail ! com>
Date: 2007-03-11 23:57:58
Message-ID: 1173657478.426466.15997.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 641615 by langkamp:
Added support for undo macros which are needed by Krita.
M +11 -0 KoDocument.cpp
M +11 -0 KoDocument.h
--- trunk/koffice/libs/kofficecore/KoDocument.cpp #641614:641615
@@ -2900,6 +2900,17 @@
d->m_undoStack->push( command );
}
+void KoDocument::beginMacro( const QString & text )
+{
+ d->m_undoStack->beginMacro( text );
+}
+
+void KoDocument::endMacro()
+{
+ d->m_undoStack->endMacro();
+}
+
+
void KoDocument::setDocumentClean(bool clean)
{
setModified(!clean);
--- trunk/koffice/libs/kofficecore/KoDocument.h #641614:641615
@@ -917,6 +917,17 @@
virtual void addCommand(QUndoCommand* command);
/**
+ * Begins recording of a macro command. At the end endMacro needs to be called.
+ * @param text command description
+ */
+ virtual void beginMacro( const QString & text );
+
+ /**
+ * Ends the recording of a macro command.
+ */
+ virtual void endMacro();
+
+ /**
* Sets the modified flag on the document. This means that it has
* to be saved or not before deleting it.
*/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic