VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
systemPropertyEditDialog.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
14 #include <QtWidgets/QDialog>
15 #include "vrfutil/readerWriter.h"
16 #include <vlutil/vlSmartPointers.h>
17 
18 #include "ui_systemPropertyEditDialogUi.h"
19 
22 class QPushButton;
23 class DtUiElement;
24 class DtUiElementEvent;
25 
30 
32 {
33  Q_OBJECT
34 public:
35  DtSystemPropertyEditDialog(makVrv::DtDe&, QWidget* parent, Qt::WindowFlags f = Qt::Tool);
36 
37  virtual ~DtSystemPropertyEditDialog();
38 
39  virtual void setSystem(const std::vector<DtRwVariableBindings*>& descriptor,
40  const DtComponentSystemDefinition* definition);
41 
42  virtual void createParameterFrame();
43 
44  virtual void processUiEvent(const DtUiElementEvent&);
45 
46  virtual void setEnabled(bool);
47 
48  virtual void accept();
49  virtual void reject();
50 
51 public:
52  virtual int exec();
53  virtual void execModeless(DtUiElement*);
54 
55 protected:
56  virtual void restoreFromBackup();
57  virtual void cleanBackups();
58  virtual void createBackups();
59  virtual void closeEvent(QCloseEvent* e);
60 
61 protected slots:
62  virtual void uiEventSignaled(const DtUiElementEvent&);
63 
64 signals:
65  void uiEvent(const DtUiElementEvent&);
66 
67 public:
68  Ui::DtSystemPropertyEditDialogUi myUiImpl;
69  std::list<DtUiElement*> mySubElements;
71 
72 protected:
73  std::vector<DtRwVariableBindings*> mySystemDescriptors;
74  std::vector<DtRwVariableBindings*> myBackupSystemDescriptors;
76  bool myModeless;
77 
79  bool myEnabled;
80 };
81 
82 typedef DtBoost::shared_ptr<DtSystemPropertyEditDialog> DtSystemPropertyEditDialogShdPtr;

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)