/[enigma]/enigma/src/gui.hh
ViewVC logotype

Diff of /enigma/src/gui.hh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.11 by reallysoft, Sat Jul 5 08:25:39 2003 UTC revision 1.12 by dheck, Sat Jul 12 10:04:47 2003 UTC
# Line 50  namespace gui Line 50  namespace gui
50    
51      class Widget : public ActionListener {      class Widget : public ActionListener {
52      public:      public:
         virtual ~Widget() {}  
   
53          /*          /*
54          ** Widget interface          ** Widget interface
55          */          */
# Line 104  namespace gui Line 102  namespace gui
102      class Container : public Widget {      class Container : public Widget {
103      public:      public:
104          Container() {}          Container() {}
105          virtual ~Container();          ~Container();
106    
107          void add_child (Widget *w);          void add_child (Widget *w);
108          void redraw_child (Widget *w, const px::Rect &r);          void redraw_child (Widget *w, const px::Rect &r);
# Line 133  namespace gui Line 131  namespace gui
131          void set_spacing (int pixels);          void set_spacing (int pixels);
132      protected:      protected:
133          List(int spacing=5) : m_spacing(spacing) {}          List(int spacing=5) : m_spacing(spacing) {}
         virtual ~List() {}  
134      private:      private:
135          int m_spacing;          // # of pixels between container items          int m_spacing;          // # of pixels between container items
136      };      };
# Line 201  namespace gui Line 198  namespace gui
198      class Button : public Widget {      class Button : public Widget {
199      protected:      protected:
200          Button() : highlighted(false) {}          Button() : highlighted(false) {}
         virtual ~Button() {}  
201    
202          void draw(px::GC &gc, const px::Rect &r);          void draw(px::GC &gc, const px::Rect &r);
203      protected:      protected:
# Line 217  namespace gui Line 213  namespace gui
213      class PushButton : public Button {      class PushButton : public Button {
214      public:      public:
215          PushButton();          PushButton();
         virtual ~PushButton() {}  
216    
217          bool is_pressed() { return pressed; }          bool is_pressed() { return pressed; }
218      protected:      protected:
# Line 233  namespace gui Line 228  namespace gui
228      class TextButton : public PushButton {      class TextButton : public PushButton {
229      public:      public:
230          TextButton(const std::string &t, ActionListener *al=0);          TextButton(const std::string &t, ActionListener *al=0);
         virtual ~TextButton() {}  
231    
232          void set_text(const std::string &t);          void set_text(const std::string &t);
233      private:      private:
# Line 254  namespace gui Line 248  namespace gui
248          ImageButton(const std::string &unselected,          ImageButton(const std::string &unselected,
249                      const std::string &selected,                      const std::string &selected,
250                      ActionListener    *al = 0);                      ActionListener    *al = 0);
         virtual ~ImageButton() {}  
251      private:      private:
252          // Widget interface.          // Widget interface.
253          void        draw(px::GC &gc, const px::Rect &r);          void        draw(px::GC &gc, const px::Rect &r);
# Line 267  namespace gui Line 260  namespace gui
260      class Menu : public Container {      class Menu : public Container {
261      public:      public:
262          Menu();          Menu();
         virtual ~Menu();  
263    
264          //! true: ok, false: menu aborted by user          //! true: ok, false: menu aborted by user
265          bool manage(px::Screen *scr);          bool manage(px::Screen *scr);

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26