VR-Forces 5.0.1 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>
17 #endif
18 #include <boost/signals2.hpp>
19 
20 #include <string>
21 
25 class DtRwLocalWeather;
26 class QDialog;
27 class QComboBox;
28 class QPushButton;
29 class QLabel;
30 class QSpinBox;
31 
32 namespace makVrf
33 {
34  class DtLocalWeatherBoxDefinitionDialog;
35 
38  {
39  public:
42 
45 
46 
50  virtual void processPopulateDialog(const makVrv::DtUniqueID& selectedUniqueID);
51 
53  virtual void setupGui();
54  virtual void setPriority(int);
55 
56  protected:
57  virtual void processObjectCreation();
58 
61  virtual void setEnvironment(QString);
62  virtual void processNamePrefixEdited(const std::string&);
63 
64  virtual void slot_onWeatherUpdated(const makVrv::DtStateView<DtVrlinkSimulatedWeatherState>* s);
65  virtual void setupCommand(DtChangeWeatherCommand&, makArchives::DtEnvironmentRecord&);
66  virtual void editEnvironment();
67  virtual void populateDialogWithStmt( const DtCreateObjectCommand* cmd );
68  virtual void setPulldownBasedOnWeatherCommand();
69 
70  protected:
73  boost::signals2::connection myUpdateConnection;
74  };
75 
77  {
78  Q_OBJECT
79 
80  public:
82  DtLocalWeatherBoxDefinitionDialog(makVrv::DtDe& de, QWidget* parent, const QString& title="", DtDialogInteractionMode mode=DtCreationMode);
83 
86  virtual void setEnvironmentNames(const std::vector<std::string>&);
87 
88  boost::signals2::signal<void (QString)> signal_setEnvironment;
89  boost::signals2::signal<void (int)> signal_priorityChanged;
90  boost::signals2::signal<void ()> signal_editEnvironment;
91 
92  virtual int priority() const;
93  virtual void setPriority(int);
94  virtual QString currentEnvironment() const;
95  virtual void setEnvironment(const std::string&);
96 
97  public slots:
98  virtual void environmentSelected();
99 
100  protected slots:
101  virtual void priorityChanged();
102  virtual void onEditEnvironment();
103 
104  protected:
105  virtual void setupGui();
106  virtual bool showAlpha() const;
107 
108  virtual DtBoxObjectDefinitionDialogLogic* createLogic();
109 
110  virtual void populateOverlays();
111 
112  virtual void init(const DtEntityType& entityType, const QString& title, bool forPlan,
114 
115  virtual void setupConnections();
116 
118  virtual void setPublishObjectVisible(bool b);
119  virtual void setPublishObject(bool b);
120 
121  public:
122  QWidget* myExtension;
126 
129  };
130 
133  {
134  public:
136  virtual DtCreateAndEditObjectDialogInterface* createDialog(makVrv::DtDe& de, QWidget* parent, const QString& title,
138  };
139 }
!!!!!!!!! DtLocalWeatherBoxDefinitionDialogCreator
Definition: localWeatherBoxDefinitionDialog.h:132
boost::signals2::signal< void(int)> signal_priorityChanged
Definition: localWeatherBoxDefinitionDialog.h:89
QPushButton * myEditEnvironment
Definition: localWeatherBoxDefinitionDialog.h:125
QSpinBox * myPriority
Definition: localWeatherBoxDefinitionDialog.h:128
Definition: boxObjectDefinitionDialog.h:487
#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:29
QLabel * myPriorityLabel
Definition: localWeatherBoxDefinitionDialog.h:127
boost::signals2::connection myUpdateConnection
Definition: localWeatherBoxDefinitionDialog.h:73
This class defines the dialog that allows the creation/update of Box objects in the scenario...
Definition: boxObjectDefinitionDialog.h:198
boost::signals2::signal< void(QString)> signal_setEnvironment
Definition: localWeatherBoxDefinitionDialog.h:88
Definition: localWeatherBoxDefinitionDialog.h:76
QWidget * myExtension
Definition: localWeatherBoxDefinitionDialog.h:122
boost::signals2::signal< void()> signal_editEnvironment
Definition: localWeatherBoxDefinitionDialog.h:90
This class implements the logic behind the DtBoxObjectDefinitionDialog.
Definition: boxObjectDefinitionDialog.h:41
DtLocalWeatherBoxDefinitionDialog * myCustomDialog
Definition: localWeatherBoxDefinitionDialog.h:71
The declaration of the makArchives::DtEnvironmentRecord class.
Logic that is used to populate and receive updates from the weather extension.
Definition: localWeatherBoxDefinitionDialog.h:37
A DtStateView is a the interface to simulation state information. Users can create DtStateViews for s...
Definition: DtStateView.h:49
QLabel * myDefinedEnvironmentsLabel
Definition: localWeatherBoxDefinitionDialog.h:123
Record of environment/weather settings Includes precipitation, air, and clouds.
Definition: DtEnvironmentRecord.h:36
DtDialogInteractionMode
Definition: createAndEditObjectDialogInterface.h:34
A DtSimCommand subclass which specifies a change to the weather settings for the specified weather ar...
Definition: changeWeatherCommand.h:29
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:70
DtChangeWeatherCommand myWeatherCommand
Definition: localWeatherBoxDefinitionDialog.h:72
QComboBox * myDefinedEnvironments
Definition: localWeatherBoxDefinitionDialog.h:124

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)