VR-Forces 4.1 Class Documentation
DtTerrainContentsWidget.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtTerrainContentsWidget.h,v $ $Revision: 1.10 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #ifndef DtTerrainContentsWidget_H_
14 #define DtTerrainContentsWidget_H_
15 
16 #include <vrvCoreQt/vrvCoreQt.h>
18 
19 #include <QtGui/QWidget>
20 
21 class QTreeWidget;
22 class QTreeWidgetItem;
23 class QHBoxLayout;
24 class QPushButton;
25 
26 namespace makVrv
27 {
28  class DtDe;
29  class DtTerrainOperationRecord;
30 
34  : public QWidget
36  {
37 
38  Q_OBJECT
39 
40  public:
41 
43  typedef std::map<int, QTreeWidgetItem*> ItemMap;
44 
46  DtTerrainContentsWidget(DtDe& de, QWidget* parent = 0, Qt::WindowFlags flags = 0);
47 
49  virtual ~DtTerrainContentsWidget();
50 
52  virtual void addItem(int id, QStringList strList);
53 
55  virtual void removeItem(int id);
56 
58  virtual void clear();
59 
60  inline QHBoxLayout* buttonLayout() { return myButtonLayout; }
61 
63  inline QPushButton* addTerrainPatchButton() { return myAddTerrainPatchButton; }
64 
66  inline QPushButton* addFeatureLayerButton() { return myAddFeatureLayerButton; }
67 
68  inline DtDe& de() { return myDe; }
69 
70  public:
71 
72  static boost::signal<void (DtTerrainContentsWidget*)> signal_setupGui;
73 
74  protected slots:
75 
76  virtual void on_addTerrainPatchBtn_clicked();
77  virtual void on_addFeatureLayerBtn_clicked();
78  virtual void on_addPropsBtn_clicked();
79  virtual void on_removeBtn_clicked();
80 
81  protected:
82 
84  void setupGui();
85 
86  protected:
87 
88  const static int theInputTypeColumn = 0;
89  const static int theNameColumn = 1;
90 
94 
95  QHBoxLayout* myButtonLayout;
96 
99 
102  };
103 }
104 
105 #endif
106 

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)