VR-Forces 4.1 Class Documentation
newEntityDialog.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2007 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: newEntityDialog.h,v $ $Revision: 1.2 $ $State: Exp $
7 *******************************************************************************/
8 
11 
12 #ifndef DTNEWENTITYDIALOG_H_
13 #define DTNEWENTITYDIALOG_H_
14 
15 #include <QtGui/QDialog>
16 #include <vrfExtProtocol/objType.h>
17 #include <QtGui/QValidator>
18 
19 class DtBehaviorUi;
20 class QComboBox;
21 class QLineEdit;
22 
24 
26 {
27 public:
28  DtNameValidator(QObject* parent);
29  virtual ~DtNameValidator();
30 
31  virtual State validate(QString &, int &) const;
32 };
33 
35 {
36  Q_OBJECT
37 
38 public:
39  DtNewEntityDialog(QWidget* parent, const Qt::WindowFlags& f = 0);
40 
41  virtual bool init(DtBehaviorUi*, const QString& defaultCategory = "");
42 
43  virtual QString parameterType() const;
44  virtual DtObjectType objectType() const;
45 
46  virtual QString name() const;
47 
48  static DtNewEntityDialog* create(QWidget* p = NULL);
49 
50  virtual void setEntityType(const DtEntityType&);
51 
52  virtual QString category() const;
53 
54 protected:
55  virtual void accept();
56 
57 protected slots:
58  virtual void categoryChanged();
59  virtual DtObjectType objectTypeSelected() const;
60 
61 protected:
67 };
68 
69 #endif

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)