VR-Forces Developer's Guide
 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 
11 #include "DtLocalWeatherManagerWidgetUI.hpp"
17 #endif
18 
19 #include <QtWidgets/QDialog>
20 #include <vlpi/entityType.h>
21 
22 class QTreeWidget;
23 class QTreeWidgetItem;
24 class QSpinBox;
25 
26 namespace makVrf
27 {
32  {
33  Q_OBJECT
34 
35  public:
36  //CTOR
37  DtLocalWeatherManagerWidget(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0);
38 
39  //DTOR
40  virtual ~DtLocalWeatherManagerWidget() override;
41 
43  virtual void setDefaultWeatherTypeToCreate(const DtEntityType&);
44  const DtEntityType& defaultWeatherTypeToCreate() const { return myDefaultWeatherTypeToCreate; };
45 
46  protected:
48  void setupGui();
49  void initConnections();
50 
52  virtual makVrv::DtElementID idFromItem(QTreeWidgetItem*) const;
53 
54  virtual void selectionChanged(const makVrv::DtSelectionManager::IdSet& selected, const makVrv::DtSelectionManager::IdSet& deselected);
55 
56  virtual void editingOrCreateChanged();
57 
58  protected:
60  virtual void slot_updated(DtSimObjectReference);
61  virtual void slot_weatherUpdated(DtSimObjectReference);
62 
64  virtual void slot_removed(makVrv::DtElementID);
65 
66  virtual makVrv::DtUniqueID idWithPriority(int p) const;
67 
68  virtual void slot_applicationSettingsChanged();
69  virtual void updateWeatherConditionsIcon();
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  protected:
100 
102  {
105  };
106 
107  typedef std::map<makVrv::DtElementID, WeatherState> LocalWeatherItemsMap;
110 
111  public:
112  Ui_DtLocalWeatherManagerWidgetUI myUiImpl;
113  };
114 
117  {
118  public:
120  virtual ~DtLocalWeatherManagerWidgetCreator() override;
121 
123  static void registerInstance(makVrv::DtDe&, DtLocalWeatherManagerWidgetCreator*);
124 
125  virtual DtLocalWeatherManagerWidget* create(makVrv::DtDe&, QWidget* parent, const Qt::WindowFlags& f = 0);
126 
127  protected:
130  };
131 }
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
Creator class. Register a subclass of this to return your own version of the DtLocalWeatherManagerWid...
Definition: localWeatherManagerWidget.h:116
#define DT_DLL_VRFGUICOREQT
Definition: vrfGuiCoreQt.h:26
const DtEntityType & defaultWeatherTypeToCreate() const
Definition: localWeatherManagerWidget.h:44
Contains makVrv:DtSelectionManager class.
DtEntityType myDefaultWeatherTypeToCreate
Definition: localWeatherManagerWidget.h:109
Ui_DtLocalWeatherManagerWidgetUI myUiImpl
Definition: localWeatherManagerWidget.h:112
DtUniqueID DtElementID
The ElementID is a specific type of unique ID used to represent VR-Vantage uniquely defined elements...
Definition: DtUniqueID.h:23
Definition: localWeatherManagerWidget.h:101
DtLocalWeatherManagerWidget.
Definition: localWeatherManagerWidget.h:31
std::map< makVrv::DtElementID, WeatherState > LocalWeatherItemsMap
Definition: localWeatherManagerWidget.h:107
Contains makVrv::DtVirtualBaseClass class.
QTreeWidgetItem * item
Definition: localWeatherManagerWidget.h:103
The declaration of the makArchives::DtEnvironmentRecord class.
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
Record of environment/weather settings Includes precipitation, air, and clouds.
Definition: DtEnvironmentRecord.h:45
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
Base class to provide boost signal/slot management.
makVrv::DtDe & myDe
Definition: localWeatherManagerWidget.h:97
DtLocalWeatherManagerWidget * myDialog
Only create once.
Definition: localWeatherManagerWidget.h:129
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
makVrv::DtSignalConnectionManager myConnectionManager
Definition: localWeatherManagerWidget.h:98
std::set< DtUniqueID > IdSet
Definition: DtSelectionManager.h:32
LocalWeatherItemsMap myLocalWeather
Definition: localWeatherManagerWidget.h:108
makArchives::DtEnvironmentRecord weatherRecord
Definition: localWeatherManagerWidget.h:104
bool myInCreationMode
Definition: localWeatherManagerWidget.h:99

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)