~ubuntu-branches/ubuntu/intrepid/kdesdk/intrepid-updates

« back to all changes in this revision

Viewing changes to umbrello/umbrello/cmds/cmd_create_classdiag.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2008-05-28 10:11:43 UTC
  • mto: This revision was merged to the branch mainline in revision 37.
  • Revision ID: james.westby@ubuntu.com-20080528101143-gzc3styjz1b70zxu
Tags: upstream-4.0.80
ImportĀ upstreamĀ versionĀ 4.0.80

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
 *                                                                         *
 
3
 *   This program is free software; you can redistribute it and/or modify  *
 
4
 *   it under the terms of the GNU General Public License as published by  *
 
5
 *   the Free Software Foundation; either version 2 of the License, or     *
 
6
 *   (at your option) any later version.                                   *
 
7
 *                                                                         *
 
8
 *  copyright (C) 2002-2008                                                *
 
9
 *  Umbrello UML Modeller Authors <uml-devel@uml.sf.net>                   *
 
10
 ***************************************************************************/
 
11
 
 
12
#ifndef CMD_CREATE_CLASSDIAG_H
 
13
#define CMD_CREATE_CLASSDIAG_H
 
14
 
 
15
#include <QtGui/QUndoCommand>
 
16
 
 
17
#include "umldoc.h"
 
18
#include "umlview.h"
 
19
 
 
20
namespace Uml
 
21
{
 
22
    class cmdCreateClassDiag : public QUndoCommand
 
23
    {
 
24
        public:
 
25
            explicit cmdCreateClassDiag(UMLDoc* doc, const QString& name = "");
 
26
            ~cmdCreateClassDiag();
 
27
 
 
28
            void redo();
 
29
            void undo();
 
30
 
 
31
        private:
 
32
            UMLDoc*     m_pUMLDoc;
 
33
            UMLView*    m_pUMLView;
 
34
            QString     m_Name;
 
35
    };
 
36
}
 
37
 
 
38
#endif