• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

umbrello/umbrello

  • sources
  • kde-4.12
  • kdesdk
  • umbrello
  • umbrello
  • cmds
cmd_createDiagram.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) 2012-2013 *
8  * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9  ***************************************************************************/
10 
11 #ifndef CMD_CREATE_DIAGRAM_H
12 #define CMD_CREATE_DIAGRAM_H
13 
14 #include "basictypes.h"
15 
16 #include <QUndoCommand>
17 
18 class UMLDoc;
19 class UMLView;
20 
21 namespace Uml
22 {
23  class CmdCreateDiagram : public QUndoCommand
24  {
25  public:
26  explicit CmdCreateDiagram(UMLDoc* doc, Uml::DiagramType::Enum type, const QString& name);
27  ~CmdCreateDiagram();
28 
29  void redo();
30  void undo();
31 
32  private:
33  QString m_name;
34  Uml::DiagramType::Enum m_type;
35  UMLDoc* m_pUMLDoc;
36  UMLView* m_pUMLView;
37  };
38 }
39 
40 #endif
Uml::CmdCreateDiagram::undo
void undo()
Definition: cmd_createDiagram.cpp:47
UMLView
UMLView instances represent diagrams.
Definition: umlview.h:32
Uml::CmdCreateDiagram::redo
void redo()
Definition: cmd_createDiagram.cpp:38
Uml::CmdCreateDiagram::~CmdCreateDiagram
~CmdCreateDiagram()
Definition: cmd_createDiagram.cpp:34
Uml::DiagramType::Enum
Enum
Definition: basictypes.h:73
Uml::CmdCreateDiagram::CmdCreateDiagram
CmdCreateDiagram(UMLDoc *doc, Uml::DiagramType::Enum type, const QString &name)
Definition: cmd_createDiagram.cpp:23
Uml::CmdCreateDiagram
Definition: cmd_createDiagram.h:23
QUndoCommand
basictypes.h
UMLDoc
UMLDoc provides a document object for a document-view model.
Definition: umldoc.h:63
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:05:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

umbrello/umbrello

Skip menu "umbrello/umbrello"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • okteta
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal