VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
newSimulationModelSetWizard.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2013 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
8 #pragma once
9 
12 #include <vlutil/vlString.h>
13 
14 #include <QtGui/QDialog>
15 #include <QtCore/QList>
16 
17 class QPushButton;
18 class QRadioButton;
19 class QFileDialog;
20 class QLineEdit;
22 class DtFilename;
23 class QProgressDialog;
25 class QLabel;
26 
28 {
29  Q_OBJECT
30 
31 public:
32  DtWizardPage(makVrv::DtDe&, QWidget*, const Qt::WindowFlags& f = 0);
33  virtual ~DtWizardPage();
34 
35  virtual DtWizardPage* nextPage(QWidget* p) { return NULL; };
36 
37  virtual bool isLastPage() const;
38  virtual bool pageComplete() const;
39  virtual bool nextPageComplete() const { return false; };
40 
41  virtual void execute() {};
42 
43  virtual void keyPressEvent(QKeyEvent*);
44 
45 signals:
46  void pageCompleted(bool);
47  void returnPressed();
48  void backPage();
49  void rejected();
50 
51 protected:
54 };
55 
57 {
58  Q_OBJECT
59 
60 public:
61  DtNewModelSetPage(makVrv::DtDe&, 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  virtual void setIncludeSMSFiles(const std::vector<DtString>&);
70 
71 protected:
72  virtual bool isLastPage() const;
73  virtual bool hideButtons(QWidget*);
74  virtual bool pageComplete() const;
75  virtual bool nextPageComplete() const { return false; };
76  virtual QLineEdit* lineEdit(QWidget*);
77  virtual void execute();
78  virtual void createFromSet(const DtSimulationModelSet& set, const QStringList& ignoreFiles = QStringList(),
79  const QStringList& overrideIgnoreFiles = QStringList());
80 
83  virtual int fileCount(const DtFilename&, const QStringList& ignore) const;
84  virtual bool duplicateDirectory(const DtFilename& sourceDir, const DtFilename& destDir,
85  const QStringList& ignore, const QStringList& overrideIgnore, QProgressDialog*, int& onFile);
86 
87 protected slots:
88  virtual void directoryChanged();
89 
90 protected:
93  std::vector<DtString> myIncludeSMSFiles;
94 };
95 
97 {
98  Q_OBJECT
99 
100 public:
101  DtExistingModelSetPage(makVrv::DtDe&, QWidget*, const Qt::WindowFlags& f = 0);
102  virtual ~DtExistingModelSetPage();
103 
104 protected:
105  virtual bool isLastPage() const { return false; };
106  virtual bool pageComplete() const;
107  virtual bool nextPageComplete() const { return pageComplete(); };
108  virtual DtWizardPage* nextPage(QWidget* p);
109  virtual void execute();
110 
111 protected:
114 };
115 
117 {
118  Q_OBJECT
119 
120 public:
121  DtIncludeSimulationModelSetsPage(makVrv::DtDe&, QWidget*, DtWizardPage* nextPage, DtWizardPage* parentPage = 0, const Qt::WindowFlags& f = 0);
123 
124  virtual void setSimulationModelSet(const QString&);
125 
126 protected:
127  virtual bool isLastPage() const;
128  virtual bool pageComplete() const;
129  virtual bool nextPageComplete() const { return pageComplete(); };
130  virtual DtWizardPage* nextPage(QWidget* p);
131  virtual void execute();
132  virtual void copyIncludeFiles();
133  virtual void copyIncludeFiles(DtWizardPage*);
134 
135 protected:
140 };
141 
143 {
144  Q_OBJECT
145 
146 public:
147  DtChoicePage(makVrv::DtDe&, QWidget*, const Qt::WindowFlags& f = 0);
148  virtual ~DtChoicePage();
149 
150 protected:
151  virtual DtWizardPage* nextPage(QWidget* p);
152  virtual bool pageComplete() const { return true; };
153  virtual bool nextPageComplete() const { return true; };
154  virtual void execute();
155  virtual DtNewModelSetPage* createNewModelSetPage(QWidget* p);
156  virtual DtExistingModelSetPage* createExistingModelSetPage(QWidget* p);
157 
158 protected:
159  QRadioButton* myCreateNew;
160  QRadioButton* myCreateFromExisting;
162 };
163 
165 {
166  Q_OBJECT
167 
168 public:
169  DtNewSimulationModelSetWizard(makVrv::DtDe&, QWidget* p, const Qt::WindowFlags& f = 0);
171 
172  virtual void createNewModelSet();
173 
174 protected:
175  virtual void keyPressEvent(QKeyEvent*);
176  virtual DtChoicePage* createChoicePage(QWidget*);
177 
178 protected slots:
179  virtual void backButtonClicked();
180  virtual void nextButtonClicked();
181  virtual void enableNextButton(bool);
182  virtual void returnKeyPressed();
183 
184 protected:
190 
191 protected:
194 };
195 
198 {
199 public:
202 
205 
208 
210  static void registerInstance(makVrv::DtDe&, DtNewSimulationModelSetWizardCreator*);
211 
213  virtual DtNewSimulationModelSetWizard* create(QWidget* parent);
214 
215 protected:
217 };

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)