VR-Forces 4.2 Class Documentation
DtAggregateSubordinatesPage.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtAggregateSubordinatesPage.h,v $ $Revision: 1.1 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #pragma once
14 
18 
19 class QTabWidget;
20 
21 namespace makVrf
22 {
23  namespace makVrfGuiObjectInformationQt
24  {
26  {
27  public:
28  DtAggregateSubordinatesTab(makVrv::DtDe&, QWidget* parent);
29 
30  virtual ~DtAggregateSubordinatesTab();
31 
32  bool isSame(const std::vector<std::string>&) const;
34  {
35  return myTree;
36  }
37 
38  void setSubordinates(const std::vector<std::string>& s)
39  {
40  mySubordinates = s;
41  }
42 
43  protected:
44  std::vector<std::string> mySubordinates;
46  };
47 
49  {
50  Q_OBJECT
51 
52  public:
53 
55  DtAggregateSubordinatesPage(makVrv::DtDe& de, QWidget* parent, Qt::WindowFlags f = Qt::SubWindow);
56 
58  virtual ~DtAggregateSubordinatesPage();
60  virtual QIcon icon();
61 
63  virtual QString title();
64 
66  virtual const std::string& pageClassName() const;
67 
69  static const std::string& thePageClassName();
70 
72  {
73  return myEntities;
74  }
75 
77  {
78  return myAggregates;
79  }
80 
81  protected:
82  virtual void activate();
83  virtual void deactivate();
84  virtual QWidget* createPageContents();
85 
86  virtual QWidget* createEntitiesTab();
87  virtual QWidget* createAggregatesTab();
88 
89  protected slots:
90  virtual void onSubordinateDoubleClicked(QTreeWidgetItem*, int);
91 
92  protected:
93  QTabWidget* myTabWidget;
94 
97  };
98 
99  typedef makVrv::DtPageCreatorTemplate<DtAggregateSubordinatesPage>
101  }
102 }

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)