VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
propertyFileEditor.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 "propertyCreationDialog.h"
11 
12 class QTextEdit;
13 class QMenuBar;
14 class QMenu;
15 class QAction;
16 
18 {
19 
20  Q_OBJECT
21 
22 public:
23 
24  // default constructor
25  DtPropertyFileEditor(makVrv::DtDe&, QWidget* parent = NULL, const Qt::WindowFlags& flags = 0);
26 
27  // destructor
28  virtual ~DtPropertyFileEditor();
29 
30  static DtPropertyCreationDialog* create(makVrv::DtDe&, QWidget* parent = NULL, const Qt::WindowFlags& flags = 0);
31 
32 protected:
33  virtual void addControls();
34  virtual void setupControls();
35  virtual void addFileItems(QMenuBar*);
36  virtual void addEditItems(QMenuBar*);
37  virtual void initConnections();
38  virtual QString filenameToUse() const;
39 
40 public slots:
41  virtual void save();
42  virtual void closeEvent(QCloseEvent*);
43  virtual void textChanged();
44 
45 private:
46  // copy constructor; not implemented
48 
49  // assignment operator; not implemented
51 
52 protected:
53  QTextEdit* myFile;
54  QString myFilename;
55 
57 
60 };

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)