VR-Forces 4.1 Class Documentation
newSimulationModelSetWizard.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2007 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: newSimulationModelSetWizard.h,v $ $Revision: 1.1 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DTNEWSIMULATIONMODELSETWIZARD_H_
13 #define DTNEWSIMULATIONMODELSETWIZARD_H_
14 
15 #include <QtGui/QDialog>
16 #include <QtCore/QList>
17 
18 class QPushButton;
19 class QRadioButton;
20 class QFileDialog;
21 class QLineEdit;
23 class DtFilename;
24 class QProgressDialog;
25 
27 
29 {
30  Q_OBJECT
31 
32 public:
33  DtWizardPage(QWidget*, const Qt::WindowFlags& f = 0);
34  virtual ~DtWizardPage();
35 
36  virtual DtWizardPage* nextPage(QWidget* p) { return NULL; };
37 
38  virtual bool isLastPage() const;
39  virtual bool pageComplete() const;
40  virtual bool nextPageComplete() const { return false; };
41 
42  virtual void execute() {};
43 
44  virtual void keyPressEvent(QKeyEvent*);
45 
46 signals:
47  void pageCompleted(bool);
48  void returnPressed();
49  void backPage();
50  void rejected();
51 
52 protected:
54 };
55 
57 {
58  Q_OBJECT
59 
60 public:
61  DtNewModelSetPage(QWidget*, const Qt::WindowFlags& f = 0);
62  virtual ~DtNewModelSetPage();
63 
64  void setSimulationModelSet(const DtSimulationModelSet* s) { mySet = s; };
65 
66  virtual void accept();
67  virtual void reject();
68 
69 protected:
70  virtual bool isLastPage() const;
71  virtual bool hideButtons(QWidget*);
72  virtual bool pageComplete() const;
73  virtual bool nextPageComplete() const { return false; };
74  virtual QLineEdit* lineEdit(QWidget*);
75  virtual void execute();
76  virtual void createFromSet(const DtSimulationModelSet& set, const QStringList& ignoreFiles = QStringList());
77 
80  virtual int fileCount(const DtFilename&, const QStringList& ignore) const;
81  virtual bool duplicateDirectory(const DtFilename& sourceDir, const DtFilename& destDir,
82  const QStringList& ignore, QProgressDialog*, int& onFile);
83 
84 protected slots:
85  virtual void directoryChanged();
86 
87 protected:
90 };
91 
93 {
94  Q_OBJECT
95 
96 public:
97  DtExistingModelSetPage(QWidget*, const Qt::WindowFlags& f = 0);
98  virtual ~DtExistingModelSetPage();
99 
100 protected:
101  virtual bool isLastPage() const { return false; };
102  virtual bool pageComplete() const;
103  virtual bool nextPageComplete() const { return pageComplete(); };
104  virtual DtWizardPage* nextPage(QWidget* p);
105  virtual void execute();
106 
107 protected:
109 };
110 
112 {
113  Q_OBJECT
114 
115 public:
116  DtChoicePage(QWidget*, const Qt::WindowFlags& f = 0);
117  virtual ~DtChoicePage();
118 
119 protected:
120  virtual DtWizardPage* nextPage(QWidget* p);
121  virtual bool pageComplete() const { return true; };
122  virtual bool nextPageComplete() const { return true; };
123  virtual void execute();
124  virtual DtNewModelSetPage* createNewModelSetPage(QWidget* p);
125  virtual DtExistingModelSetPage* createExistingModelSetPage(QWidget* p);
126 
127 protected:
128  QRadioButton* myCreateNew;
129  QRadioButton* myCreateFromExisting;
130 
133 };
134 
136 {
137  Q_OBJECT
138 
139 public:
140  DtNewSimulationModelSetWizard(QWidget* p, const Qt::WindowFlags& f = 0);
142 
143  virtual void createNewModelSet();
144 
145  static DtNewSimulationModelSetWizard* create(QWidget* p = NULL);
146 
147 protected:
148  virtual void keyPressEvent(QKeyEvent*);
149  virtual DtChoicePage* createChoicePage(QWidget*);
150 
151 protected slots:
152  virtual void backButtonClicked();
153  virtual void nextButtonClicked();
154  virtual void enableNextButton(bool);
155  virtual void returnKeyPressed();
156 
157 protected:
163 
164 protected:
166 };
167 
168 #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)