- Small improvements. We'd need a derived CellRenderer to put

this into a TreeView


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@917 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
tchernobog 2006-08-20 20:55:29 +00:00
parent 1fe3c4ddf7
commit 0f94562617
2 changed files with 34 additions and 11 deletions

View file

@ -27,6 +27,7 @@
#include "cairo_elements.hh"
#include "cairo_widget.hh"
#include "glibmm/refptr.h"
#include "gtkmm/tooltips.h"
namespace sgpem
@ -35,11 +36,12 @@ namespace sgpem
{
public:
SchedulableStateWidget(Schedulable::state st);
~SchedulableStateWidget();
void set_state(Schedulable::state new_state);
protected:
virtual void draw_widget(cairo_t* ctx) = 0;
virtual void draw_widget(cairo_t* ctx);
// with this method CairoWidget tells the needed drawing dimensions
virtual void calc_drawing_size(size_t& width, size_t& height) const;
@ -48,8 +50,8 @@ namespace sgpem
virtual void calc_widget_size(size_t& width, size_t& height) const;
private:
Color _color;
static Gtk::Tooltips _ttips;
Color _color;
static Gtk::Tooltips* _ttips;
};
} //~ namespace sgpem