umbrello 26.03.70-f7b1fd3 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

cmdsettxt.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 CMDSETTXT_H
7#define CMDSETTXT_H
8
9#include <QUndoCommand>
10
11 class FloatingTextWidget;
12
13 namespace Uml
14{
15 class CmdSetTxt : public QUndoCommand
16 {
17 public:
18 CmdSetTxt(FloatingTextWidget* ftw, const QString& txt);
19 ~CmdSetTxt();
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::CmdSetTxt
Definition: cmdsettxt.h:16
Uml::CmdSetTxt::m_newstring
QString m_newstring
Definition: cmdsettxt.h:26
Uml::CmdSetTxt::m_oldstring
QString m_oldstring
Definition: cmdsettxt.h:27
Uml::CmdSetTxt::redo
void redo()
Definition: cmdsettxt.cpp:34
Uml::CmdSetTxt::undo
void undo()
Definition: cmdsettxt.cpp:41
Uml::CmdSetTxt::m_ftw
FloatingTextWidget * m_ftw
Definition: cmdsettxt.h:25
Uml::CmdSetTxt::~CmdSetTxt
~CmdSetTxt()
Definition: cmdsettxt.cpp:30
Uml
Definition: basictypes.cpp:17