VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Classes | Public Member Functions | Public Attributes | Protected Types | Protected Slots | Protected Member Functions | Protected Attributes
makVrf::DtLocalWeatherManagerWidget Class Reference

DtLocalWeatherManagerWidget. More...

Inheritance diagram for makVrf::DtLocalWeatherManagerWidget:
Inheritance graph
[legend]

Classes

struct  WeatherState

Public Member Functions

 DtLocalWeatherManagerWidget (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0)
virtual ~DtLocalWeatherManagerWidget ()

Public Attributes

Ui_DtLocalWeatherManagerWidgetUI myUiImpl

Protected Types

typedef std::map
< makVrv::DtElementID,
WeatherState
LocalWeatherItemsMap

Protected Slots

virtual void itemClicked (QTreeWidgetItem *)
 Called when an item is selected, enables edit and delete buttons, if item is editable.
virtual void itemDoubleClicked (QTreeWidgetItem *)
 Called when an item is double clicked, edits item if editable.
virtual void createLocalWeather ()
 Starts area creation process.
virtual void deleteLocalWeather ()
 Deletes selected area.
virtual void editLocalWeather ()
 Edits selected area.
virtual void editLocalWeatherConditions ()
virtual void updateButtons (QTreeWidgetItem *)
 Updates button state based on passed in item.
virtual void setPriorityFor (makVrv::DtUniqueID, int priority)
virtual void increasePriority ()
virtual void decreasePriority ()

Protected Member Functions

void setupGui ()
 Sets up the UI. Called from constructor.
void initConnections ()
virtual makVrv::DtElementID idFromItem (QTreeWidgetItem *) const
 Returns the element id from the tree widget item.
virtual void selectionChanged (const makVrv::DtSelectionManager::IdSet &selected, const makVrv::DtSelectionManager::IdSet &deselected)
virtual void editingOrCreateChanged ()
virtual void slot_updated (const makVrv::DtStateView< makVrf::DtVrlinkSimulatedEnvironmentProcess > *)
 Called when data has been updated, update dialog if needed.
virtual void slot_weatherUpdated (const makVrv::DtStateView< DtVrlinkSimulatedWeatherState > *state)
virtual void slot_removed (makVrv::DtElementID)
 Called when an item is removed. Remove from dialog if need be.
virtual makVrv::DtUniqueID idWithPriority (int p) const

Protected Attributes

makVrv::DtDemyDe
makVrv::DtSignalConnectionManager myConnectionManager
bool myInCreationMode
LocalWeatherItemsMap myLocalWeather

Detailed Description

DtLocalWeatherManagerWidget.

Dialog that will allow for the display, modification, adding and removal of local weather objects

Member Typedef Documentation

Constructor & Destructor Documentation

makVrf::DtLocalWeatherManagerWidget::DtLocalWeatherManagerWidget ( makVrv::DtDe de,
QWidget parent,
const Qt::WindowFlags &  flags = 0 
)
virtual makVrf::DtLocalWeatherManagerWidget::~DtLocalWeatherManagerWidget ( )
virtual

Member Function Documentation

void makVrf::DtLocalWeatherManagerWidget::setupGui ( )
protected

Sets up the UI. Called from constructor.

void makVrf::DtLocalWeatherManagerWidget::initConnections ( )
protected
virtual makVrv::DtElementID makVrf::DtLocalWeatherManagerWidget::idFromItem ( QTreeWidgetItem ) const
protectedvirtual

Returns the element id from the tree widget item.

virtual void makVrf::DtLocalWeatherManagerWidget::selectionChanged ( const makVrv::DtSelectionManager::IdSet selected,
const makVrv::DtSelectionManager::IdSet deselected 
)
protectedvirtual
virtual void makVrf::DtLocalWeatherManagerWidget::editingOrCreateChanged ( )
protectedvirtual
virtual void makVrf::DtLocalWeatherManagerWidget::slot_updated ( const makVrv::DtStateView< makVrf::DtVrlinkSimulatedEnvironmentProcess > *  )
protectedvirtual

Called when data has been updated, update dialog if needed.

virtual void makVrf::DtLocalWeatherManagerWidget::slot_weatherUpdated ( const makVrv::DtStateView< DtVrlinkSimulatedWeatherState > *  state)
protectedvirtual
virtual void makVrf::DtLocalWeatherManagerWidget::slot_removed ( makVrv::DtElementID  )
protectedvirtual

Called when an item is removed. Remove from dialog if need be.

virtual makVrv::DtUniqueID makVrf::DtLocalWeatherManagerWidget::idWithPriority ( int  p) const
protectedvirtual
virtual void makVrf::DtLocalWeatherManagerWidget::itemClicked ( QTreeWidgetItem )
protectedvirtualslot

Called when an item is selected, enables edit and delete buttons, if item is editable.

virtual void makVrf::DtLocalWeatherManagerWidget::itemDoubleClicked ( QTreeWidgetItem )
protectedvirtualslot

Called when an item is double clicked, edits item if editable.

virtual void makVrf::DtLocalWeatherManagerWidget::createLocalWeather ( )
protectedvirtualslot

Starts area creation process.

virtual void makVrf::DtLocalWeatherManagerWidget::deleteLocalWeather ( )
protectedvirtualslot

Deletes selected area.

virtual void makVrf::DtLocalWeatherManagerWidget::editLocalWeather ( )
protectedvirtualslot

Edits selected area.

virtual void makVrf::DtLocalWeatherManagerWidget::editLocalWeatherConditions ( )
protectedvirtualslot
virtual void makVrf::DtLocalWeatherManagerWidget::updateButtons ( QTreeWidgetItem )
protectedvirtualslot

Updates button state based on passed in item.

virtual void makVrf::DtLocalWeatherManagerWidget::setPriorityFor ( makVrv::DtUniqueID  ,
int  priority 
)
protectedvirtualslot
virtual void makVrf::DtLocalWeatherManagerWidget::increasePriority ( )
protectedvirtualslot
virtual void makVrf::DtLocalWeatherManagerWidget::decreasePriority ( )
protectedvirtualslot

Member Data Documentation

makVrv::DtDe& makVrf::DtLocalWeatherManagerWidget::myDe
protected
makVrv::DtSignalConnectionManager makVrf::DtLocalWeatherManagerWidget::myConnectionManager
protected
bool makVrf::DtLocalWeatherManagerWidget::myInCreationMode
protected
LocalWeatherItemsMap makVrf::DtLocalWeatherManagerWidget::myLocalWeather
protected
Ui_DtLocalWeatherManagerWidgetUI makVrf::DtLocalWeatherManagerWidget::myUiImpl

The documentation for this class was generated from the following file:

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)