13 #include <vlutil/vlFilename.h>
15 #include <QtWidgets/QDialog>
16 #include <QtWidgets/QTextEdit>
17 #include <QtCore/QList>
18 #include <QtCore/QStringList>
59 std::shared_ptr<DtSmsUpgradeInfo> info,
const Qt::WindowFlags& f = 0);
62 virtual bool isLastPage()
const override {
return false; };
67 virtual bool performUpgrade(
const DtFilename&);
68 virtual bool performSystemUpgrade(
const DtFilename&);
69 virtual std::vector<DtString> getAllIncludes(
const DtSimulationModelSet& sms,
const std::vector<DtString>&)
const;
73 virtual void browseForSms();
74 virtual void smsChanged();
75 virtual void destinationChanged();
86 std::shared_ptr<DtSmsUpgradeInfo>
myInfo;
95 std::shared_ptr<DtSmsUpgradeInfo> info,
const Qt::WindowFlags& f = 0);
98 virtual bool isLastPage()
const override {
return false; };
106 virtual void selectionChanged();
117 std::shared_ptr<DtSmsUpgradeInfo>
myInfo;
126 std::shared_ptr<DtSmsUpgradeInfo> info,
const Qt::WindowFlags& f = 0);
139 std::shared_ptr<DtSmsUpgradeInfo>
myInfo;
148 std::shared_ptr<DtSmsUpgradeInfo> info,
const Qt::WindowFlags& f = 0);
162 std::shared_ptr<DtSmsUpgradeInfo>
myInfo;
171 std::shared_ptr<DtSmsUpgradeInfo> info,
const Qt::WindowFlags& f = 0);
180 virtual void cancel()
override;
182 virtual void execute()
override;
184 static std::vector<DtString> makePathsRelativeToDataDirectory(
makVrv::DtDe&,
const std::vector<DtString>&);
188 void getDestination(QString& modelSetDir, QString& smsFile)
const;
190 int fileCount(
const DtFilename& sourceDir)
const;
191 void allFilesOfType(
const DtFilename& sourceDir,
const QString& ext, QStringList& files)
const;
192 void copyFilesFromSMS(
194 const QString& destination,
195 QStringList& failedToCopy,
196 const QStringList& filesToIgnore = QStringList(),
197 const QStringList& fileTypesToIgnore = QStringList(),
198 const QStringList& fileTypesToNotOverwrite = QStringList());
199 bool duplicateDirectory(
201 const DtFilename& sourceDir,
const DtFilename& destDir,
202 const QStringList& filesToIgnore,
203 const QStringList& fileTypesToIgnore,
204 const QStringList& fileTypesToNotOverwrite,
205 QStringList& notCopied);
206 bool copyVisualsFromSMS(
208 const DtFilename& destinationModelSetVisualsDir,
209 const QString& newSmsName,
210 QStringList& failedToCopy);
211 bool copyVisualsFromDirectory(
212 const DtFilename& sourceDir,
const DtFilename& destDir,
213 const QString& oldSmsName,
const QString& newSmsName,
214 QStringList& failedToCopy,
const DtFilename& subPath = DtFilename::nullFilename());
223 std::shared_ptr<DtSmsUpgradeInfo>
myInfo;
232 std::shared_ptr<DtSmsUpgradeInfo> info,
const Qt::WindowFlags& f = 0);
243 virtual void saveReport();
251 std::shared_ptr<DtSmsUpgradeInfo>
myInfo;
262 virtual void createNewModelSet();
263 virtual bool performUpgrade(
const DtFilename&);
264 virtual bool performSystemUpgrade(
const DtFilename&);
267 virtual void nextButtonClicked();
270 virtual void keyPressEvent(QKeyEvent*)
override;
273 virtual void backButtonClicked();
274 virtual void cancelButtonClicked();
275 virtual void enableNextButton(
bool);
276 virtual void returnKeyPressed();
289 std::shared_ptr<DtSmsUpgradeInfo>
myInfo;
virtual bool nextPageComplete() const override
Definition: simulationModelSetUpgradeWizard.h:101
virtual DtWizardPage * nextPage(QWidget *p)
Definition: newSimulationModelSetWizard.h:36
QLabel * myVrEngageLabel
Definition: simulationModelSetUpgradeWizard.h:114
virtual bool showFinishButton() const override
Definition: simulationModelSetUpgradeWizard.h:99
QComboBox * myVersions
Definition: simulationModelSetUpgradeWizard.h:136
std::shared_ptr< DtSmsUpgradeInfo > myInfo
Definition: simulationModelSetUpgradeWizard.h:223
bool myUpgradeInPlace
Definition: simulationModelSetUpgradeWizard.h:49
virtual bool nextPageComplete() const override
Definition: simulationModelSetUpgradeWizard.h:132
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
Definition: simulationModelSetUpgradeWizard.h:165
bool myIsComplete
Definition: simulationModelSetUpgradeWizard.h:219
virtual bool isLastPage() const override
Definition: simulationModelSetUpgradeWizard.h:129
bool myCopyVisuals
Definition: simulationModelSetUpgradeWizard.h:44
QPushButton * myFinishButton
Definition: simulationModelSetUpgradeWizard.h:282
Definition: simulationModelSetUpgradeWizard.h:34
QRadioButton * myAggregateLevelButton
Definition: simulationModelSetUpgradeWizard.h:111
QStringList myFileUpgradeFailures
Definition: simulationModelSetUpgradeWizard.h:47
QString mySmsVersion
Definition: simulationModelSetUpgradeWizard.h:42
QPushButton * myBackButton
Definition: simulationModelSetUpgradeWizard.h:280
Definition: simulationModelSetUpgradeWizard.h:39
QProgressBar * myProgressBar
Definition: simulationModelSetUpgradeWizard.h:217
Definition: simulationModelSetUpgradeWizard.h:226
Definition: simulationModelSetUpgradeWizard.h:35
QLabel * mySmsToUpgradeLabel
Definition: simulationModelSetUpgradeWizard.h:79
QRadioButton * myOriginalSmsButton
Definition: simulationModelSetUpgradeWizard.h:115
bool myUpgradeSystemsOnly
Definition: simulationModelSetUpgradeWizard.h:50
Definition: simulationModelSetUpgradeWizard.h:120
std::shared_ptr< DtSmsUpgradeInfo > myInfo
Definition: simulationModelSetUpgradeWizard.h:139
virtual bool isLastPage() const override
Definition: simulationModelSetUpgradeWizard.h:235
QTextEdit * myText
Definition: simulationModelSetUpgradeWizard.h:249
makVrv::DtDe & myDe
Definition: simulationModelSetUpgradeWizard.h:312
bool mySuccess
Definition: simulationModelSetUpgradeWizard.h:48
virtual bool isLastPage() const override
Definition: simulationModelSetUpgradeWizard.h:98
QRadioButton * myCopyVisualsIntoSms
Definition: simulationModelSetUpgradeWizard.h:159
QRadioButton * myEntityLevelButton
Definition: simulationModelSetUpgradeWizard.h:110
virtual bool isLastPage() const override
Definition: simulationModelSetUpgradeWizard.h:151
QLineEdit * mySmsToUpgrade
Definition: simulationModelSetUpgradeWizard.h:80
makVrv::DtDe & myDe
Definition: simulationModelSetUpgradeWizard.h:286
virtual bool showFinishButton() const override
Definition: simulationModelSetUpgradeWizard.h:175
virtual bool pageComplete() const
std::shared_ptr< DtSmsUpgradeInfo > myInfo
Definition: simulationModelSetUpgradeWizard.h:289
Contains makVrv::DtVirtualBaseClass class.
DtSmsUpgradeType myUpgradeType
Definition: simulationModelSetUpgradeWizard.h:43
QLabel * myFileBeingCopied
Definition: simulationModelSetUpgradeWizard.h:218
Definition: simulationModelSetUpgradeWizard.h:89
virtual bool isLastPage() const override
Definition: simulationModelSetUpgradeWizard.h:62
std::shared_ptr< DtSmsUpgradeInfo > myInfo
Definition: simulationModelSetUpgradeWizard.h:86
std::shared_ptr< DtSimulationModelSet > mySmsToUpgrade
Definition: simulationModelSetUpgradeWizard.h:45
Creator for the dialog.
Definition: simulationModelSetUpgradeWizard.h:293
virtual bool nextPageComplete() const override
Definition: simulationModelSetUpgradeWizard.h:65
std::shared_ptr< DtSimulationModelSet > myNewBaseSms
Definition: simulationModelSetUpgradeWizard.h:46
QRadioButton * myDoNotCopyVisuals
Definition: simulationModelSetUpgradeWizard.h:160
Definition: simulationModelSetUpgradeWizard.h:142
Definition: simulationModelSetUpgradeWizard.h:254
virtual bool showFinishButton() const override
Definition: simulationModelSetUpgradeWizard.h:236
QPushButton * myNextButton
Definition: simulationModelSetUpgradeWizard.h:279
DtWizardPage * myStartPage
Definition: simulationModelSetUpgradeWizard.h:287
QString myDestinationName
Definition: simulationModelSetUpgradeWizard.h:41
virtual void cancel()
Definition: newSimulationModelSetWizard.h:45
virtual bool nextPageComplete() const override
Definition: simulationModelSetUpgradeWizard.h:154
Definition: newSimulationModelSetWizard.h:28
virtual bool pageComplete() const override
Definition: simulationModelSetUpgradeWizard.h:237
QRadioButton * myAggregateTacticalLevelButton
Definition: simulationModelSetUpgradeWizard.h:112
virtual bool showFinishButton() const override
Definition: simulationModelSetUpgradeWizard.h:63
A simulation model set contains all the information that can be used to support a scenario either for...
Definition: simulationModelSet.h:31
QPushButton * myCancelButton
Definition: simulationModelSetUpgradeWizard.h:281
virtual bool nextPageComplete() const override
Definition: simulationModelSetUpgradeWizard.h:177
std::shared_ptr< DtSmsUpgradeInfo > myInfo
Definition: simulationModelSetUpgradeWizard.h:251
QLabel * myDestinationLabel
Definition: simulationModelSetUpgradeWizard.h:83
virtual bool isLastPage() const override
Definition: simulationModelSetUpgradeWizard.h:174
std::shared_ptr< DtSmsUpgradeInfo > myInfo
Definition: simulationModelSetUpgradeWizard.h:117
DtSmsUpgradeType
Definition: simulationModelSetUpgradeWizard.h:32
std::shared_ptr< DtSmsUpgradeInfo > myInfo
Definition: simulationModelSetUpgradeWizard.h:162
virtual DtWizardPage * nextPage(QWidget *p) override
Definition: simulationModelSetUpgradeWizard.h:239
Definition: simulationModelSetUpgradeWizard.h:36
Definition: simulationModelSetUpgradeWizard.h:53
virtual bool showFinishButton() const override
Definition: simulationModelSetUpgradeWizard.h:152
QPushButton * mySaveButton
Definition: simulationModelSetUpgradeWizard.h:248
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
QLabel * myAdditionalText
Definition: simulationModelSetUpgradeWizard.h:137
virtual bool nextPageComplete() const override
Definition: simulationModelSetUpgradeWizard.h:238
virtual void execute()
Definition: newSimulationModelSetWizard.h:43
QLabel * myDescription
Definition: simulationModelSetUpgradeWizard.h:247
QList< DtWizardPage * > myPages
Definition: simulationModelSetUpgradeWizard.h:283
QPushButton * myBrowseButton
Definition: simulationModelSetUpgradeWizard.h:81
virtual bool showFinishButton() const override
Definition: simulationModelSetUpgradeWizard.h:130
QRadioButton * myVrEngageButton
Definition: simulationModelSetUpgradeWizard.h:113
std::atomic< bool > myCancel
Definition: simulationModelSetUpgradeWizard.h:221
#define DT_DLL_simulationObjectEditorimpl
This file is used to determine how to build.
Definition: simulationObjectEditorImplDefines.h:33
QLineEdit * myDestinationName
Definition: simulationModelSetUpgradeWizard.h:84