VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
localWeatherAreaDefinitionDialog.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
6 //\file DtLocalWeatherAreaDefinitionDialog.h
7 //\brief Contains DtLocalWeatherAreaDefinitionDialog class.
8 
9 #pragma once
10 
11 #if !defined(Q_MOC_RUN)
13 #include <vrvCore/DtUniqueID.h>
16 #endif
17 #include <boost/signals2.hpp>
18 
19 #include <string>
20 
24 class DtRwLocalWeather;
25 class QDialog;
26 class QComboBox;
27 class QPushButton;
28 class QLabel;
29 class QSpinBox;
30 
31 namespace makVrf
32 {
33  class DtLocalWeatherAreaDefinitionDialog;
34 
37  {
38  public:
41 
43  virtual ~DtLocalWeatherAreaDefinitionDialogLogic() override;
44 
45 
49  virtual void processPopulateDialog(const makVrv::DtUniqueID& selectedUniqueID) override;
50 
52  virtual void setupGui() override;
53  virtual void setPriority(int);
54 
55  protected:
56  virtual void processObjectCreation() override;
57 
60  virtual void setEnvironment(QString);
61  virtual void processNamePrefixEdited() override;
62 
63  virtual void slot_onWeatherUpdated(DtSimObjectReference s);
64  virtual void setupCommand(DtChangeWeatherCommand&, makArchives::DtEnvironmentRecord&);
65  virtual void editEnvironment();
66  virtual void populateDialogWithStmt(const DtCreateObjectCommand* cmd) override;
67  virtual void setPulldownBasedOnWeatherCommand();
68 
69  protected:
72  };
73 
75  {
76  Q_OBJECT
77 
78  public:
80  DtLocalWeatherAreaDefinitionDialog(makVrv::DtDe& de, QWidget* parent, const QString& title="", DtDialogInteractionMode mode=DtCreationMode);
81 
83  virtual ~DtLocalWeatherAreaDefinitionDialog() override;
84  virtual void setEnvironmentNames(const std::vector<std::string>&);
85 
86  boost::signals2::signal<void (QString)> signal_setEnvironment;
87  boost::signals2::signal<void (int)> signal_priorityChanged;
88  boost::signals2::signal<void ()> signal_editEnvironment;
89 
90  virtual int priority() const;
91  virtual void setPriority(int);
92  virtual QString currentEnvironment() const;
93  virtual void setEnvironment(const std::string&);
94 
95  public slots:
96  virtual void environmentSelected();
97 
98  protected slots:
99  virtual void priorityChanged();
100  virtual void onEditEnvironment();
101 
102  protected:
103  virtual void setupGui() override;
104  virtual bool showAlpha() const override;
105 
106  virtual DtShapeObjectDefinitionDialogLogic* createLogic() override;
107 
108  virtual void populateOverlays() override;
109 
110  virtual void init(const DtEntityType& entityType, const QString& title, bool forPlan,
112 
113  virtual void setupConnections() override;
114 
116  virtual void setPublishObjectVisible(bool b) override;
117  virtual void setPublishObject(bool b) override;
118 
119  public:
120  QWidget* myExtension;
124 
127  };
128 
131  {
132  public:
134  virtual DtCreateAndEditObjectDialogInterface* createDialog(makVrv::DtDe& de, QWidget* parent,
136  };
137 }
QComboBox * myDefinedEnvironments
Definition: localWeatherAreaDefinitionDialog.h:122
QLabel * myDefinedEnvironmentsLabel
Definition: localWeatherAreaDefinitionDialog.h:121
QLabel * myPriorityLabel
Definition: localWeatherAreaDefinitionDialog.h:125
DtChangeWeatherCommand myWeatherCommand
Definition: localWeatherAreaDefinitionDialog.h:71
QPushButton * myEditEnvironment
Definition: localWeatherAreaDefinitionDialog.h:123
DtLocalWeatherAreaDefinitionDialog * myCustomDialog
Definition: localWeatherAreaDefinitionDialog.h:70
#define DT_DLL_VRFGUICOREQT
Definition: vrfGuiCoreQt.h:26
DtSimCommand subclass for creating a new VrfObjects. Used for both single and multi-point objects...
Definition: createObjectCommand.h:36
DtEditingType
Definition: vrfObjectManipulationHandlerBaseClass.h:42
This class implements the logic behind the DtShapeObjectDefinitionDialog.
Definition: shapeObjectDefinitionDialog.h:51
Definition: createAndEditObjectDialogInterface.h:27
Logic that is used to populate and receive updates from the weather extension.
Definition: localWeatherAreaDefinitionDialog.h:36
!!!!!!!!! DtLocalWeatherAreaDefinitionDialogCreator
Definition: localWeatherAreaDefinitionDialog.h:130
The declaration of the makArchives::DtEnvironmentRecord class.
Record of environment/weather settings Includes precipitation, air, and clouds.
Definition: DtEnvironmentRecord.h:45
boost::signals2::signal< void(int)> signal_priorityChanged
Definition: localWeatherAreaDefinitionDialog.h:87
QWidget * myExtension
Definition: localWeatherAreaDefinitionDialog.h:120
DtDialogInteractionMode
Definition: createAndEditObjectDialogInterface.h:32
A DtSimCommand subclass which specifies a change to the weather settings for the specified weather ar...
Definition: changeWeatherCommand.h:29
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
Definition: shapeObjectDefinitionDialog.h:663
boost::signals2::signal< void(QString)> signal_setEnvironment
Definition: localWeatherAreaDefinitionDialog.h:86
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.
const char int mode
Definition: ioapi.h:38
boost::signals2::signal< void()> signal_editEnvironment
Definition: localWeatherAreaDefinitionDialog.h:88
Contains makVrv::DtUniqueID type.
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
This class defines the dialog that allows the creation/update of point objects in the scenario (entit...
Definition: shapeObjectDefinitionDialog.h:257
Definition: localWeatherAreaDefinitionDialog.h:74
QSpinBox * myPriority
Definition: localWeatherAreaDefinitionDialog.h:126

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)