VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
localWeatherBoxDefinitionDialog.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
6 //\file DtLocalWeatherBoxDefinitionDialog.h
7 //\brief Contains DtLocalWeatherBoxDefinitionDialog 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 DtLocalWeatherBoxDefinitionDialog;
34 
37  {
38  public:
41 
43  virtual ~DtLocalWeatherBoxDefinitionDialogLogic() 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(const std::string&) 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  DtLocalWeatherBoxDefinitionDialog(makVrv::DtDe& de, QWidget* parent, const QString& title="", DtDialogInteractionMode mode=DtCreationMode);
81 
83  virtual ~DtLocalWeatherBoxDefinitionDialog() 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 DtBoxObjectDefinitionDialogLogic* 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 }
!!!!!!!!! DtLocalWeatherBoxDefinitionDialogCreator
Definition: localWeatherBoxDefinitionDialog.h:130
boost::signals2::signal< void(int)> signal_priorityChanged
Definition: localWeatherBoxDefinitionDialog.h:87
QPushButton * myEditEnvironment
Definition: localWeatherBoxDefinitionDialog.h:123
QSpinBox * myPriority
Definition: localWeatherBoxDefinitionDialog.h:126
Definition: boxObjectDefinitionDialog.h:489
#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
Definition: createAndEditObjectDialogInterface.h:27
QLabel * myPriorityLabel
Definition: localWeatherBoxDefinitionDialog.h:125
This class defines the dialog that allows the creation/update of Box objects in the scenario...
Definition: boxObjectDefinitionDialog.h:199
boost::signals2::signal< void(QString)> signal_setEnvironment
Definition: localWeatherBoxDefinitionDialog.h:86
Definition: localWeatherBoxDefinitionDialog.h:74
QWidget * myExtension
Definition: localWeatherBoxDefinitionDialog.h:120
boost::signals2::signal< void()> signal_editEnvironment
Definition: localWeatherBoxDefinitionDialog.h:88
This class implements the logic behind the DtBoxObjectDefinitionDialog.
Definition: boxObjectDefinitionDialog.h:41
DtLocalWeatherBoxDefinitionDialog * myCustomDialog
Definition: localWeatherBoxDefinitionDialog.h:70
The declaration of the makArchives::DtEnvironmentRecord class.
Logic that is used to populate and receive updates from the weather extension.
Definition: localWeatherBoxDefinitionDialog.h:36
QLabel * myDefinedEnvironmentsLabel
Definition: localWeatherBoxDefinitionDialog.h:121
Record of environment/weather settings Includes precipitation, air, and clouds.
Definition: DtEnvironmentRecord.h:45
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
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.
const char int mode
Definition: ioapi.h:38
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
DtChangeWeatherCommand myWeatherCommand
Definition: localWeatherBoxDefinitionDialog.h:71
QComboBox * myDefinedEnvironments
Definition: localWeatherBoxDefinitionDialog.h:122

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)