umbrello/umbrello
cmd_create_classdiag.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 * * 00003 * This program is free software; you can redistribute it and/or modify * 00004 * it under the terms of the GNU General Public License as published by * 00005 * the Free Software Foundation; either version 2 of the License, or * 00006 * (at your option) any later version. * 00007 * * 00008 * copyright (C) 2002-2006 * 00009 * Umbrello UML Modeller Authors <uml-devel@uml.sf.net> * 00010 ***************************************************************************/ 00011 00012 #ifndef __CMD_CREATE_CLASSDIAG__ 00013 #define __CMD_CREATE_CLASSDIAG__ 00014 00015 #include <QUndoCommand> 00016 00017 #include "umldoc.h" 00018 #include "umlview.h" 00019 00020 namespace Uml 00021 { 00022 class cmdCreateClassDiag : public QUndoCommand 00023 { 00024 public: 00025 explicit cmdCreateClassDiag(UMLDoc* doc, const QString& name = ""); 00026 ~cmdCreateClassDiag(); 00027 00028 void redo(); 00029 void undo(); 00030 00031 private: 00032 UMLDoc* m_pUMLDoc; 00033 UMLView* m_pUMLView; 00034 QString m_Name; 00035 }; 00036 } 00037 00038 #endif
KDE 4.0 API Reference