IndicatorLogic.h

00001 #ifndef _INDICATORLOGIC_H
00002 #define _INDICATORLOGIC_H
00003 // -------------------------------------------------------------------------
00004 #include <UniSetTypes.h>
00005 #include <objects/AbstractLogic.h>
00006 #include <global_macros.h>
00007 // -------------------------------------------------------------------------
00008 namespace UniWidgets
00009 {
00010 class Text;
00017 class IndicatorLogic : public AbstractLogic
00018 {
00019 public:
00020     IndicatorLogic();
00021     explicit IndicatorLogic(Gtk::EventBox::BaseObjectType* gobject);
00022     virtual ~IndicatorLogic();
00023 
00024     virtual void connect();
00025 protected:
00026     /* Methods */
00027     virtual void on_init();                     
00029 private:
00030     /* Variables */
00031     Text* current_indicator_;                   
00033     /* Methods */
00034     void constructor();
00035     void init_value();                      
00036     void set_value(const double value);             
00037     void set_current_value();                   
00039     /* Handlers */
00040     void sensor_handler(UniSetTypes::ObjectId sensor, UniSetTypes::ObjectId node, float value);
00041     void set_sensor_handler();
00042 
00043     DISALLOW_COPY_AND_ASSIGN(IndicatorLogic);
00044     /* Properties */
00045     ADD_PROPERTY( value_ai, UniSetTypes::ObjectId )
00046     ADD_PROPERTY( node, UniSetTypes::ObjectId )
00047   ADD_PROPERTY( property_digital_mode_, bool )
00048   ADD_PROPERTY( property_digital_length_, int )
00049   ADD_PROPERTY( property_digital_precision_, int )
00050   ADD_PROPERTY( property_digital_factor_, int )
00051 };
00052 
00053 }
00054 
00055 #endif

Документация по UniWidgets. Последние изменения: Fri Oct 10 09:57:49 2014. Создано системой  doxygen 1.5.9