VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
assemblyItemsEditor.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
14 
15 #include <QtGui/QDialog>
16 
17 class QPushButton;
18 class QHBoxLayout;
19 class QLabel;
20 class QTableWidget;
21 class QTabBar;
22 class QComboBox;
23 
24 namespace makVrv
25 {
26  class DtDe;
27 }
28 
31 {
32  Q_OBJECT
33 
34 public:
35  DtAssemblyItemsEditor(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0);
36  virtual ~DtAssemblyItemsEditor();
37 
38 protected:
40  virtual void accept();
41 
43  virtual void setupTableForAssemblyItem(const DtAssembliesReaderWriter::RootNodeContainer&);
44 
46  virtual void convertTableToAssemblyItems(const std::string& type,
48 
49  virtual void variableChanged(QComboBox*);
50 
51  virtual std::string typeForTab(int t) const;
52 
53 protected slots:
54  virtual void addRow();
55  virtual void removeRow();
56  virtual void itemSelectionChanged();
57  virtual void assemblyItemTypeChanged();
58  virtual void variableChanged();
59 
60 public:
61  QHBoxLayout* myButtonLayout;
65 
66  QHBoxLayout* myButtonModifyLayout;
70 
72 
73 protected:
75 
76  typedef std::map<std::string, DtAssembliesReaderWriter::RootNodeContainer> AssemblyItemsMap;
77 
79 
80  std::string myCurrentAssembly;
81 
82  QStringList myAvailableVariables;
83  QStringList myUnusedVariables;
84 };
85 
88 {
89 public:
92 
95 
97  static DtAssemblyItemsEditorCreator& instance(makVrv::DtDe&);
98 
100  static void registerInstance(makVrv::DtDe&, DtAssemblyItemsEditorCreator*);
101 
103  virtual DtAssemblyItemsEditor* create(QWidget* parent);
104 
105 protected:
107 };

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)