umbrello: umbrello/cmds/cmdhandlerename.h Source File

umbrello 2.32.1 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);
24 ~CmdHandleRename();
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
Uml::CmdHandleRename::undo
void undo()
Definition: cmdhandlerename.cpp:39
Uml::CmdHandleRename::~CmdHandleRename
~CmdHandleRename()
Definition: cmdhandlerename.cpp:30
Uml::CmdHandleRename::m_ftw
FloatingTextWidget * m_ftw
Definition: cmdhandlerename.h:30
Uml::CmdHandleRename
Definition: cmdhandlerename.h:21
Uml::CmdHandleRename::CmdHandleRename
CmdHandleRename(FloatingTextWidget *ftw, QString &txt)
Definition: cmdhandlerename.cpp:21
floatingtextwidget.h
cmdhandlerename.h
i18n
#define i18n
Definition: main.cpp:39
FloatingTextWidget
Displays a line of text or an operation.
Definition: floatingtextwidget.h:37
Uml::CmdHandleRename::m_newstring
QString m_newstring
Definition: cmdhandlerename.h:31
Uml::CmdHandleRename::m_oldstring
QString m_oldstring
Definition: cmdhandlerename.h:32
Uml
Definition: basictypes.cpp:37
FloatingTextWidget::changeName
void changeName(const QString &newText)
Definition: floatingtextwidget.cpp:386
FloatingTextWidget::text
QString text() const
Definition: floatingtextwidget.cpp:88
Uml::CmdHandleRename::redo
void redo()
Definition: cmdhandlerename.cpp:34