VR-Forces 4.1.1 Class Documentation
uiSystemElement.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2007 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: uiSystemElement.h,v $ $Revision: 1.3 $ $State: Exp $
7 *******************************************************************************/
8 
11 
13 
14 #ifndef uiSystemElement_h
15 #define uiSystemElement_h
16 
19 #include <QtCore/QObject>
20 
21 class DtUiSystemElement;
24 class DtRwBoolean;
25 class QProcess;
28 
30 
32 {
33  Q_OBJECT
34 
35 public:
37 
38  void setUiElement(DtUiSystemElement* parent);
39 
40 public slots:
41  virtual void editProperties();
42  virtual void launchOpdEditor();
43 
44 protected:
46 };
47 
49 {
50 public:
51 
53  DtUiSystemElement(const DtString& name,
54  DtReaderWriterRegistry* const parentRegistry = NULL);
55 
57  virtual ~DtUiSystemElement();
58 
61 
64 
65  virtual void init();
66 
67  virtual void openPropertyEditWindow();
68  virtual void launchOpdEditor();
69 
72  virtual QString getOpdEditorArguments() const;
73 
74  virtual bool isModified() const;
75 
77  static void stopOpdEditor();
78 
81  virtual void replaceSystem(DtMtlParameterDbEntry* entry, const DtComponentSystemDescriptor& system);
82 
84  virtual void deleteSystem(DtMtlParameterDbEntry* entry, const DtFilename& system);
85 
86  virtual void dialogDone(bool);
87 
88 protected:
89  virtual DtUiElement* clone();
90 
91  virtual void setFromParameters(DtReaderWriter* parentRw);
93 
96  virtual void findAvailableSystems();
97 
98  virtual void createSystemSignalHandler();
99 
103  virtual DtComponentSystemDescriptor* addSystemToParameters(const DtFilename& sysDefFilename, const DtString& name = "");
104 
105  virtual void removeSystemFromParameters(DtComponentSystemDescriptor* sysDescriptor, bool deleteDescriptor = true);
106  virtual void removeSystemFromParameters(const DtComponentSystemDescriptor& sysDescriptor);
107 
110  virtual DtString availableSystemName(const DtString& baseName);
111 
115  virtual void addSoilTypesFromSystem(const DtComponentSystemDefinition* systemDef);
116 
119  virtual DtSystemPropertyEditDialog* createSystemPropertyDialog(
121  QWidget* parentWidget);
122 
125  static const DtComponentSystemDefinition* findSystemInfoForFilename(const DtFilename& filename,
126  const DtSystemDefinitionInfoList& list);
127 
129  virtual QList<DtComponentSystemDescriptor*> systemsFor(const DtFilename&) const;
130 
133  virtual void mergeBindings(const DtRwVariableBindings* source, DtRwVariableBindings* destination) const;
134 
135  virtual void loadSystem(DtMtlParameterDbEntry* entry, DtComponentSystemDescriptor* desc) const;
136 
137 protected:
143  static QProcess* theOpdEditorProcess;
145 };
146 
147 
148 #endif

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)