vdk 2.4.0
messagebox.h
1 /*
2  * ===========================
3  * VDK Visual Development Kit
4  * Version 0.4
5  * October 1998
6  * ===========================
7  *
8  * Copyright (C) 1998, Mario Motta
9  * Developed by Mario Motta <mmotta@guest.net>
10  *
11  * This library is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU Library General Public
13  * License as published by the Free Software Foundation; either
14  * version 2 of the License, or (at your option) any later version.
15  *
16  * This library is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19  * Library General Public License for more details.
20  *
21  * You should have received a copy of the GNU Library General Public
22  * License along with this library; if not, write to the Free Software
23  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
24  * 02111-1307, USA.
25  */
26 
27 
28 #ifndef MESSAGEBOX_H
29 #define MESSAGEBOX_H
30 #include <vdk/forms.h>
31 #include <vdk/boxes.h>
32 #include <vdk/label.h>
33 #include <vdk/pixmaps.h>
34 #include <vdk/vdkcustombutton.h>
35 #include <vdk/evhandle.h>
36 #include <vdk/evlisthandle.h>
37 #include <vdk/timer.h>
38 class MessageBoxWindow: public VDKForm
39 {
40  VDKBox *messageArea,*buttonArea;
41  char* text,*okText,*cancelText;
42  int mode;
43  int* answer;
44  VDKCustomButton *OkYesButton,*CancelButton;
45  VDKTimer* timer;
46 public:
47  MessageBoxWindow(VDKForm* owner,
48  char* caption,
49  char* text,
50  int mode,
51  char *oktext,
52  char *canceltext,
53  int* answer,
54  unsigned int wait = 0);
55  ~MessageBoxWindow();
56  void Setup();
57  bool QuitOk(VDKObject*);
58  bool QuitCancel(VDKObject*);
59  bool OnTimer(VDKObject*);
60  bool OnKeyRelease(VDKObject*, GdkEvent*);
61 
62 DECLARE_EVENT_LIST(MessageBoxWindow);
63 DECLARE_SIGNAL_MAP(MessageBoxWindow);
64 };
65 #endif
One of the most used widget containers.
Definition: boxes.h:38
This class provides an unified wrapper for almost all kind of GtkButton.
Definition: vdkcustombutton.h:48
VDKForm widgets, generally the outermost widget container.
Definition: forms.h:69
virtual void Setup(void)=0
Definition: vdkobj.h:141
Provides a timer.
Definition: timer.h:41