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
Uml::CmdSetTxt
Definition: cmdsettxt.h:21
WidgetBase::name
QString name() const
Definition: widgetbase.cpp:309
Uml::CmdSetTxt::CmdSetTxt
CmdSetTxt(FloatingTextWidget *ftw, const QString &txt)
Definition: cmdsettxt.cpp:31
floatingtextwidget.h
cmdsettxt.h
Uml::CmdSetTxt::m_newstring
QString m_newstring
Definition: cmdsettxt.h:31
i18n
#define i18n
Definition: main.cpp:39
Uml::CmdSetTxt::undo
void undo()
Definition: cmdsettxt.cpp:50
uDebug
#define uDebug()
Definition: debug_utils.h:122
FloatingTextWidget
Displays a line of text or an operation.
Definition: floatingtextwidget.h:37
Uml
Definition: basictypes.cpp:37
Uml::CmdSetTxt::~CmdSetTxt
~CmdSetTxt()
Definition: cmdsettxt.cpp:39
Uml::CmdSetTxt::m_oldstring
QString m_oldstring
Definition: cmdsettxt.h:32
debug_utils.h
Uml::CmdSetTxt::redo
void redo()
Definition: cmdsettxt.cpp:43
FloatingTextWidget::setTextcmd
void setTextcmd(const QString &t)
Definition: floatingtextwidget.cpp:199
WidgetBase::setName
virtual void setName(const QString &strName)
Definition: widgetbase.cpp:322
FloatingTextWidget::text
QString text() const
Definition: floatingtextwidget.cpp:88
Uml::CmdSetTxt::m_ftw
FloatingTextWidget * m_ftw
Definition: cmdsettxt.h:30