umbrello: umbrello/cmds/cmdhandlerename.h Source File

umbrello 2.38.3 Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

cmdhandlerename.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2002-2014 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef CMDHANDLERENAME_H
7#define CMDHANDLERENAME_H
8
9#include <QUndoCommand>
10
11class FloatingTextWidget;
12
13namespace Uml
14{
15 class CmdHandleRename : public QUndoCommand
16 {
17 public:
18 CmdHandleRename(FloatingTextWidget* ftw, QString& txt);
19 ~CmdHandleRename();
20
21 void redo();
22 void undo();
23
24 private:
25 FloatingTextWidget* m_ftw;
26 QString m_newstring;
27 QString m_oldstring;
28 };
29}
30
31#endif
FloatingTextWidget
Displays a line of text or an operation.
Definition: floatingtextwidget.h:32
Uml::CmdHandleRename
Definition: cmdhandlerename.h:16
Uml::CmdHandleRename::m_ftw
FloatingTextWidget * m_ftw
Definition: cmdhandlerename.h:25
Uml::CmdHandleRename::undo
void undo()
Definition: cmdhandlerename.cpp:34
Uml::CmdHandleRename::redo
void redo()
Definition: cmdhandlerename.cpp:29
Uml::CmdHandleRename::m_oldstring
QString m_oldstring
Definition: cmdhandlerename.h:27
Uml::CmdHandleRename::m_newstring
QString m_newstring
Definition: cmdhandlerename.h:26
Uml::CmdHandleRename::~CmdHandleRename
~CmdHandleRename()
Definition: cmdhandlerename.cpp:25
Uml
Definition: basictypes.cpp:18