VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
templateSystemSelector.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
8 #include <vrvUtil/signalslib.h>
9 
10 #include <QtGui/QDialog>
11 #include <QtCore/QHash>
12 
13 #include <vlutil/vlFilename.h>
14 
15 class DtReaderWriter;
16 class QLineEdit;
17 class QPushButton;
18 class QGroupBox;
19 class QCheckBox;
20 class QVBoxLayout;
21 class QListWidget;
22 class QComboBox;
28 
29 namespace makVrv
30 {
31  class DtDe;
32 }
33 
34 class DtSystemSelector : public QDialog
35 {
36  Q_OBJECT
37 
38 public:
40 
41  virtual bool init(const QString& startingFile = "");
42 
43  virtual void accept();
44 
45  virtual bool createNewSystem() const;
46  virtual QString systemName() const;
47  virtual QString systemDirectory() const;
48  virtual QString systemMetaDataName() const;
49 
50  void setExistingSystems(const QHash<QString, DtComponentSystemDescriptorPair*>& s) { myExistingSystems = s; };
51 
52 protected:
53  virtual void loadSystemFile(const QString& system, DtComponentSystemDescriptor& desc) const;
54  virtual void copySupportingFiles(DtComponentSystemDescriptor& desc, QCheckBox* box, const DtString& rwName,
55  const DtFilename& newSystemFile) const;
56  virtual void copySupportingFiles(const DtComponentDescriptorList& list, const DtString& rwname,
57  const DtFilename& newSystemFile, QHash<QString, QString>& fileMappings) const;
58  virtual void copySupportingFiles(DtComponentDescriptor* desc, const DtString& rwname,
59  const DtFilename& newSystemFile, QHash<QString, QString>& fileMappings) const;
60  virtual void copySupportingFiles(DtReaderWriterRegistry* reg, const DtString& rwname,
61  const DtFilename& newSystemFile, QHash<QString, QString>& fileMappings) const;
62  virtual void createSystemNames(const DtFilename& unsub, const DtFilename& full, const DtFilename& newSystemFile,
63  QString& newFile, QString& newUnsub, QHash<QString, QString>& fileMappings) const;
64 
65 protected slots:
66  virtual void selectSystemFile();
67  virtual void showMoreInfo();
68  virtual void systemFileChanged();
69  virtual void systemNameChanged();
70 
71 protected:
72  DtFilename myDirectory;
73  DtFilename myStartingFile;
79 
80  QGroupBox* myCopyFilesGroupBox;
85  QVBoxLayout* mySystemContainer;
86  QHash<QString, DtComponentSystemDescriptorPair*> myExistingSystems;
87 
89 // mutable DtlObjStringMap myObjectCommentMap;
90 // mutable DtReaderWriterCommentMap myReaderWriterCommentMap;
91 };
92 
94 {
95  Q_OBJECT
96 
97 public:
99 
100  virtual ~DtTemplateSystemSelector();
101 
102  virtual bool init();
103 
104 protected:
105  virtual void allTemplateFiles(const QString& inDir, QStringList& files);
106  virtual void accept();
107 
108 protected slots:
109  virtual void categorySelected();
110  virtual void systemSelectionChanged();
111 
112 protected:
113  QVector<DtComponentSystemDescriptor*> mySystems;
114  QListWidget* mySystemsList;
116 };

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)