umbrello  2.32.0
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
cmdhandlerename.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 CMDHANDLERENAME_H
12 #define CMDHANDLERENAME_H
13 
14 #include <QUndoCommand>
15 
16 class FloatingTextWidget;
17 
18 namespace Uml
19 {
20  class CmdHandleRename : public QUndoCommand
21  {
22  public:
23  CmdHandleRename(FloatingTextWidget* ftw, QString& txt);
25 
26  void redo();
27  void undo();
28 
29  private:
31  QString m_newstring;
32  QString m_oldstring;
33  };
34 }
35 
36 #endif
Definition: cmdhandlerename.h:20
QString m_oldstring
Definition: cmdhandlerename.h:32
QString m_newstring
Definition: cmdhandlerename.h:31
Definition: basictypes.cpp:36
void redo()
Definition: cmdhandlerename.cpp:34
void undo()
Definition: cmdhandlerename.cpp:39
~CmdHandleRename()
Definition: cmdhandlerename.cpp:30
FloatingTextWidget * m_ftw
Definition: cmdhandlerename.h:30
Displays a line of text or an operation.
Definition: floatingtextwidget.h:36
CmdHandleRename(FloatingTextWidget *ftw, QString &txt)
Definition: cmdhandlerename.cpp:21