vdk 2.4.0
vdkcalendar.h
1 /*
2  * ===========================
3  * VDK Visual Development Kit
4  * Version 1.0
5  * Revision 7
6  * September 1999
7  * ===========================
8  *
9  * Copyright (C) 1998, Mario Motta
10  * Developed by Mario Motta <mmotta@guest.net>
11  *
12  * This library is free software; you can redistribute it and/or
13  * modify it under the terms of the GNU Library General Public
14  * License as published by the Free Software Foundation; either
15  * version 2 of the License, or (at your option) any later version.
16  *
17  * This library is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20  * Library General Public License for more details.
21  *
22  * You should have received a copy of the GNU Library General Public
23  * License along with this library; if not, write to the Free Software
24  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
25  * 02111-1307, USA.
26  */
27 /*
28 OVERVIEW
29 --------
30 This file has the aim to be a footstep that shows how to make a
31 gtk+ widget wrapper in vdk.
32 We choose here to wrap gtk_calendar() widget.
33 */
34 
35 #ifndef _VDKCALENDAR_H
36 #define _VDKCALENDAR_H
37 #include <vdk/vdk.h>
38 /*
39  defines for signals,
40  we use user_signal as base in order to avoid
41  possible conflicts with vdk internal signal system
42 */
43 #define day_select_signal user_signal + 1024
44 #define day_selected_double_click day_select_signal + 1
45 
46 class VDKCalendar: public VDKObject
47 {
48 
49 
50  public:
51  //
52  VDKCalendar(VDKForm* owner = NULL);
53  virtual ~VDKCalendar();
54  /*
55  note:
56  others gtk_calendar functions could be wrapped,
57  but since in most cases it will be a 1:1 wrapping we decide
58  to do not do it.
59  User have at their hand: VDKObject::Widget () to access
60  directly to gtk_calendar.