From 14e347007a2af81f2aa05b501e31a241b1a97ca9 Mon Sep 17 00:00:00 2001 From: pixel Date: Thu, 2 Feb 2006 11:01:13 +0000 Subject: Fixing old Dalos, and fixing Linux compilation. --- include/widgets.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'include/widgets.h') diff --git a/include/widgets.h b/include/widgets.h index e46a226..eb51051 100644 --- a/include/widgets.h +++ b/include/widgets.h @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: widgets.h,v 1.15 2006-02-01 18:32:25 pixel Exp $ */ +/* $Id: widgets.h,v 1.16 2006-02-02 11:01:13 pixel Exp $ */ #ifndef __WIDGETS_H__ #define __WIDGETS_H__ @@ -174,7 +174,7 @@ namespace mogltk { class Button : public widget { public: Button(action *, shape *, widget * father, int x, int y, int w, int h, const String & caption); - virtual ~Button(); + virtual ~Button() throw (GeneralException); void simulate_press(); action * cascade_action(); protected: @@ -192,6 +192,7 @@ namespace mogltk { class Label : public widget { public: Label(shape *, widget * father, int x, int y, int w, int h, const String & caption, const ColorP & color = BLACK, mogltk::font * = mogltk::SystemFont); + virtual ~Label() throw (GeneralException) {} protected: virtual void draw(); private: @@ -228,7 +229,7 @@ namespace mogltk { class MsgBox : public SmartBox { public: MsgBox(action *, shape *, widget * father, const String & caption, const String & text, mogltk::font * = mogltk::SystemFont); - virtual ~MsgBox(); + virtual ~MsgBox() throw (GeneralException); private: mogltk::font * msgbox_font; }; @@ -252,7 +253,7 @@ namespace mogltk { class ContextMenu : public widget { public: ContextMenu(shape *, widget * father, int x, int y); - virtual ~ContextMenu(); + virtual ~ContextMenu() throw (GeneralException); void addnode(const String &, action *); void addline(); void addsub(const String &, ContextMenu *); @@ -303,6 +304,7 @@ namespace mogltk { class Menu : public widget { public: Menu(shape *, widget * father); + virtual ~Menu() throw (GeneralException) {} void addnode(const String &, action *); void addsub(const String &, ContextMenu * sub); ContextMenu * createsub(const String &); @@ -342,7 +344,7 @@ namespace mogltk { class InputText : public widget { public: InputText(action *, shape *, widget * father, int x, int y); - virtual ~InputText(); + virtual ~InputText() throw (GeneralException); virtual void draw(); const String & GetText() const; void SetText(const String &); @@ -373,7 +375,7 @@ namespace mogltk { class InputDialog : public SmartBox { public: InputDialog(action *, shape *, widget * father, const String & caption, const String & text, mogltk::font * = mogltk::SystemFont); - virtual ~InputDialog(); + virtual ~InputDialog() throw (GeneralException); String GetText(); private: InputText * it; -- cgit v1.2.3