summaryrefslogtreecommitdiff
path: root/include/widgets.h
diff options
context:
space:
mode:
authorpixel <pixel>2006-02-02 11:01:13 +0000
committerpixel <pixel>2006-02-02 11:01:13 +0000
commit14e347007a2af81f2aa05b501e31a241b1a97ca9 (patch)
treedb91ab4fe2c5e9dae629307025801f5d06008f19 /include/widgets.h
parentaac581d00d4efa8c3b03fd802f22457d4127e23f (diff)
Fixing old Dalos, and fixing Linux compilation.
Diffstat (limited to 'include/widgets.h')
-rw-r--r--include/widgets.h14
1 files changed, 8 insertions, 6 deletions
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;