umbrello: umbrello/cmds/widget/cmdsettxt.h Source File

umbrello 2.32.3 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:
30 FloatingTextWidget* m_ftw;
31 QString m_newstring;
32 QString m_oldstring;
33 };
34 }
35
36 #endif
FloatingTextWidget
Displays a line of text or an operation.
Definition: floatingtextwidget.h:37
Uml::CmdSetTxt
Definition: cmdsettxt.h:21
Uml::CmdSetTxt::m_newstring
QString m_newstring
Definition: cmdsettxt.h:31
Uml::CmdSetTxt::m_oldstring
QString m_oldstring
Definition: cmdsettxt.h:32
Uml::CmdSetTxt::CmdSetTxt
CmdSetTxt(FloatingTextWidget *ftw, const QString &txt)
Definition: cmdsettxt.cpp:23
Uml::CmdSetTxt::redo
void redo()
Definition: cmdsettxt.cpp:35
Uml::CmdSetTxt::undo
void undo()
Definition: cmdsettxt.cpp:42
Uml::CmdSetTxt::m_ftw
FloatingTextWidget * m_ftw
Definition: cmdsettxt.h:30
Uml::CmdSetTxt::~CmdSetTxt
~CmdSetTxt()
Definition: cmdsettxt.cpp:31
Uml
Definition: basictypes.cpp:37