ThresholdsFrame.h

См. документацию.
00001 /***************************************************************************
00002 * This file is part of the UniSetGraphics library                          *
00003 * Copyright (C) 2001-2002 SET Research Institute. All rights reserved.     *
00004 ***************************************************************************/
00011 // -------------------------------------------------------------------------
00012 #ifndef ThresholdsFrame_H_
00013 #define ThresholdsFrame_H_
00014 // -------------------------------------------------------------------------
00015 #include "BaseTypes.h"
00016 #include "IOController_i.hh"
00017 #include <gtkmm.h>
00018 #include <string>
00019 // -------------------------------------------------------------------------
00020 using namespace std;
00021 // -------------------------------------------------------------------------
00022 class ThresholdsFrame: 
00023     public Gtk::Frame
00024 {
00025 public:
00026     ThresholdsFrame();
00027     ~ThresholdsFrame();
00028 
00029     void attach( IONotifyController_i::ThresholdList& lst, UniSetTypes::ObjectId ownerid );
00030 
00031     void detach( IOController_i::SensorInfo& si, UniSetTypes::ThresholdId tid );
00032     void detach( UniSetTypes::ObjectId ownerid );
00033     
00034 
00035 protected:
00036     void attach( Gtk::TreeModel::Children::iterator& it, IONotifyController_i::ThresholdInfo& ti );
00037 
00038 
00039   //Tree model columns:
00040     class ModelColumns : public Gtk::TreeModel::ColumnRecord
00041     {
00042         public:
00043 
00044         ModelColumns()
00045         { 
00046             add(id); add(sname); add(value); add(hi);
00047             add(low); add(sb); add(ownerid);
00048             add(bg_color); add(fg_color); add(snode);
00049             //  add(arrow); add(tid); add(sid);
00050         }
00051 
00052         Gtk::TreeModelColumn<long> id; // id - датчика и порогов
00053         Gtk::TreeModelColumn<std::string> sname;
00054         Gtk::TreeModelColumn<UniSetTypes::ObjectId> snode;
00055         Gtk::TreeModelColumn<std::string> value;
00056         Gtk::TreeModelColumn<CORBA::Long> hi;
00057         Gtk::TreeModelColumn<CORBA::Long> low;
00058         Gtk::TreeModelColumn<CORBA::Long> sb;
00059         Gtk::TreeModelColumn<Glib::ustring> fg_color;
00060         Gtk::TreeModelColumn<Glib::ustring> bg_color;
00061         Gtk::TreeModelColumn<UniSetTypes::ObjectId> ownerid;
00062     };
00063     
00064 private:
00065     
00066     ModelColumns columns;
00067     Glib::RefPtr<Gtk::TreeStore> refTreeModel;
00068     Gtk::TreeView *treeview;
00069 };
00070 // -------------------------------------------------------------------------
00071 #endif
00072 // -------------------------------------------------------------------------

Документация по UniSetGraphics-gtk2. Последние изменения: Sat Feb 17 16:32:02 2007. Создано системой  doxygen 1.5.1