umbrello  2.32.0
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
cmdsettxt.h
Go to the documentation of this file.
1 /***************************************************************************
2  * This program is free software; you can redistribute it and/or modify *
3  * it under the terms of the GNU General Public License as published by *
4  * the Free Software Foundation; either version 2 of the License, or *
5  * (at your option) any later version. *
6  * *
7  * copyright (C) 2002-2014 *
8  * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9  ***************************************************************************/
10 
11 #ifndef CMDSETTXT_H
12 #define CMDSETTXT_H
13 
14 #include <QUndoCommand>
15 
16 class FloatingTextWidget;
17 
18 namespace Uml
19 {
20  class CmdSetTxt : public QUndoCommand
21  {
22  public:
23  CmdSetTxt(FloatingTextWidget* ftw, const QString& txt);
24  ~CmdSetTxt();
25 
26  void redo();
27  void undo();
28 
29  private:
31  QString m_newstring;
32  QString m_oldstring;
33  };
34 }
35 
36 #endif
Displays a line of text or an operation.
Definition: floatingtextwidget.h:37
Definition: cmdsettxt.h:21
QString m_newstring
Definition: cmdsettxt.h:31
QString m_oldstring
Definition: cmdsettxt.h:32
CmdSetTxt(FloatingTextWidget *ftw, const QString &txt)
Definition: cmdsettxt.cpp:23
void redo()
Definition: cmdsettxt.cpp:35
void undo()
Definition: cmdsettxt.cpp:42
FloatingTextWidget * m_ftw
Definition: cmdsettxt.h:30
~CmdSetTxt()
Definition: cmdsettxt.cpp:31
Definition: basictypes.cpp:37