TypicalCistern.h
00001 #ifndef _TYPICALCISTERN_H
00002 #define _TYPICALCISTERN_H
00003
00004 #include <objects/SimpleObject.h>
00005 #include <objects/CisternLogic.h>
00006 #include <components/CisternImage.h>
00007 #include <USignals.h>
00008 #include <global_macros.h>
00009
00010 namespace UniWidgets
00011 {
00018 class TypicalCistern : public SimpleObject
00019 {
00020 public:
00021 TypicalCistern();
00022 explicit TypicalCistern(SimpleObject::BaseObjectType* gobject);
00023 virtual ~TypicalCistern();
00024
00025
00026 void configure();
00028 void set_rect(const Gdk::Rectangle rect);
00029 void set_background_path(const Glib::ustring& path);
00030 void set_filling_path(const Glib::ustring& path);
00031 void set_scale_path(const Glib::ustring& path);
00032 void set_value_ai(const UniSetTypes::ObjectId sensor);
00033 void set_node(const UniSetTypes::ObjectId node);
00034 void set_scale_switch_on(bool switch_on);
00036 Glib::ustring& get_background_path();
00037 Glib::ustring& get_filling_path();
00038 Glib::ustring& get_scale_path();
00039 Gdk::Rectangle* get_rect();
00041 private:
00042
00043 Gdk::Rectangle rect_;
00044 CisternLogic logic_;
00045 CisternImage *cistern_;
00046 Glib::ustring background_path_;
00047 Glib::ustring filling_path_;
00048 Glib::ustring scale_path_;
00049
00050
00051 void create_cistern();
00052 void constructor();
00053
00054 DISALLOW_COPY_AND_ASSIGN(TypicalCistern);
00055 };
00056
00057 }
00058 #endif