00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef MESSAGEBOX_H
00029 #define MESSAGEBOX_H
00030 #include <vdk/forms.h>
00031 #include <vdk/boxes.h>
00032 #include <vdk/label.h>
00033 #include <vdk/pixmaps.h>
00034 #include <vdk/vdkcustombutton.h>
00035 #include <vdk/evhandle.h>
00036 #include <vdk/evlisthandle.h>
00037 #include <vdk/timer.h>
00038 class MessageBoxWindow: public VDKForm
00039 {
00040 VDKBox *messageArea,*buttonArea;
00041 char* text,*okText,*cancelText;
00042 int mode;
00043 int* answer;
00044 VDKCustomButton *OkYesButton,*CancelButton;
00045 VDKTimer* timer;
00046 public:
00047 MessageBoxWindow(VDKForm* owner,
00048 char* caption,
00049 char* text,
00050 int mode,
00051 char *oktext,
00052 char *canceltext,
00053 int* answer,
00054 unsigned int wait = 0);
00055 ~MessageBoxWindow();
00056 void Setup();
00057 bool QuitOk(VDKObject*);
00058 bool QuitCancel(VDKObject*);
00059 bool OnTimer(VDKObject*);
00060 bool OnKeyRelease(VDKObject*, GdkEvent*);
00061
00062 DECLARE_EVENT_LIST(MessageBoxWindow);
00063 DECLARE_SIGNAL_MAP(MessageBoxWindow);
00064 };
00065 #endif