VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
localWeatherManagerWidget.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 #if !defined(Q_MOC_RUN)
9 #include <vrvUtil/signalslib.h>
12 #include "DtLocalWeatherManagerWidgetUI.hpp"
15 #include <vrvCore/DtStateView.h>
19 #endif
20 
21 #include <QDialog>
22 #include <QTreeWidget>
23 
24 class QTreeWidget;
25 class QSpinBox;
26 
27 namespace makVrf
28 {
33  {
34  Q_OBJECT
35 
36  public:
37  //CTOR
38  DtLocalWeatherManagerWidget(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0);
39 
40  //DTOR
41  virtual ~DtLocalWeatherManagerWidget();
42 
44  virtual void setDefaultWeatherTypeToCreate(const DtEntityType&);
45  const DtEntityType& defaultWeatherTypeToCreate() const { return myDefaultWeatherTypeToCreate; };
46 
47  protected:
49  void setupGui();
50  void initConnections();
51 
53  virtual makVrv::DtElementID idFromItem(QTreeWidgetItem*) const;
54 
55  virtual void selectionChanged(const makVrv::DtSelectionManager::IdSet& selected, const makVrv::DtSelectionManager::IdSet& deselected);
56 
57  virtual void editingOrCreateChanged();
58 
59  protected:
62  virtual void slot_weatherUpdated(const makVrv::DtStateView<DtVrlinkSimulatedWeatherState>* state);
63 
65  virtual void slot_removed(makVrv::DtElementID);
66 
67  virtual makVrv::DtUniqueID idWithPriority(int p) const;
68 
69  virtual void slot_applicationSettingsChanged();
70 
71  protected slots:
73  virtual void itemClicked(QTreeWidgetItem*);
74 
76  virtual void itemDoubleClicked(QTreeWidgetItem*);
77 
79  virtual void createLocalWeather();
80 
82  virtual void deleteLocalWeather();
83 
85  virtual void editLocalWeather();
86  virtual void editLocalWeatherConditions();
87 
89  virtual void updateButtons(QTreeWidgetItem*);
90 
91  virtual void setPriorityFor(makVrv::DtUniqueID, int priority);
92 
93  virtual void increasePriority();
94  virtual void decreasePriority();
95 
96  virtual void weatherAreaFilledChanged();
97 
98  protected:
102 
104  {
107  };
108 
109  typedef std::map<makVrv::DtElementID, WeatherState> LocalWeatherItemsMap;
112 
113  public:
114  Ui_DtLocalWeatherManagerWidgetUI myUiImpl;
115  };
116 
119  {
120  public:
123 
125  static void registerInstance(makVrv::DtDe&, DtLocalWeatherManagerWidgetCreator*);
126 
127  virtual DtLocalWeatherManagerWidget* create(makVrv::DtDe&, QWidget* parent, const Qt::WindowFlags& f = 0);
128 
129  protected:
132  };
133 }
Virtual base class.
Definition: DtVirtualBaseClass.h:22
Creator class. Register a subclass of this to return your own version of the DtLocalWeatherManagerWid...
Definition: localWeatherManagerWidget.h:118
#define DT_DLL_VRFGUICOREQT
Definition: vrfGuiCoreQt.h:26
const DtEntityType & defaultWeatherTypeToCreate() const
Definition: localWeatherManagerWidget.h:45
Contains makVrv:DtSelectionManager class.
Contains makVrv::DtStateView class.
DtEntityType myDefaultWeatherTypeToCreate
Definition: localWeatherManagerWidget.h:111
Ui_DtLocalWeatherManagerWidgetUI myUiImpl
Definition: localWeatherManagerWidget.h:114
DtUniqueID DtElementID
The ElementID is a specific type of unique ID used to represent VR-Vantage uniquely defined elements...
Definition: DtUniqueID.h:26
Definition: localWeatherManagerWidget.h:103
DtLocalWeatherManagerWidget.
Definition: localWeatherManagerWidget.h:32
std::map< makVrv::DtElementID, WeatherState > LocalWeatherItemsMap
Definition: localWeatherManagerWidget.h:109
Contains makVrv::DtVirtualBaseClass class.
QTreeWidgetItem * item
Definition: localWeatherManagerWidget.h:105
The declaration of the makArchives::DtEnvironmentRecord class.
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:24
Record of environment/weather settings Includes precipitation, air, and clouds.
Definition: DtEnvironmentRecord.h:24
unsigned long long DtUniqueID
Definition: DtUniqueID.h:22
Base class to provide boost signal/slot management.
makVrv::DtDe & myDe
Definition: localWeatherManagerWidget.h:99
DtLocalWeatherManagerWidget * myDialog
Only create once.
Definition: localWeatherManagerWidget.h:131
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
makVrv::DtSignalConnectionManager myConnectionManager
Definition: localWeatherManagerWidget.h:100
std::set< DtUniqueID > IdSet
Definition: DtSelectionManager.h:32
LocalWeatherItemsMap myLocalWeather
Definition: localWeatherManagerWidget.h:110
makArchives::DtEnvironmentRecord weatherRecord
Definition: localWeatherManagerWidget.h:106
bool myInCreationMode
Definition: localWeatherManagerWidget.h:101

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)