VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
modelDefinitionEditor.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2007 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: modelDefinitionEditor.h,v $ $Revision: 1.2 $ $State: Exp $
7 ******************************************************************************/
8 
11 
12 #ifndef modelDefinitionEditor_H_
13 #define modelDefinitionEditor_H_
14 
15 #include "DtModelDefinitionEditorWindowUI.hpp"
16 #include <QtWidgets/QMainWindow>
17 #include <QtCore/QSettings>
18 
19 namespace makVrv
20 {
21  class DtModelDefinition;
22 
23  class DtModelDefinitionEditor : public QMainWindow, public Ui::DtModelDefinitionEditorWindow
24  {
25  Q_OBJECT;
26  public:
28 
30 
32 
33  QString definitionsDirectory();
34  void setDefinitionsDirectory(QString dir);
35 
36  void createDefinitionFile( QString &filename );
37  void destroyDefinitionFile( QString filename);
38 
39  bool queryQuit();
40  bool queryToDeleteFile(QString filename);
41  bool queryToDeleteParameter(QString paramname);
42 
43  public slots:
44 
47 
51 
53 
57 
58 
61 
62  protected:
63 
64  QString createNewParameterName();
65  void editParameterName(QString name);
66 
68 
69  QString currentDefinitionFilename();
70  void setCurrentDefinition(QString filename);
71 
72  void updateDefinitions();
74 
75  virtual void closeEvent(QCloseEvent * event);
76 
77  void readSettings();
78  void saveSettings();
79  void saveCurrentDefinition();
80 
81 
82 
86 
87  };
88 }
89 
90 #endif

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)