1 #ifndef __MYTOTALWIDGET_H__
2 #define __MYTOTALWIDGET_H__
4 #include <gtk/gtkspinbutton.h>
5 #include <gtk/gtkbutton.h>
6 #include <gtk/gtkcalendar.h>
8 #include "MyTouchscreen.h"
10 #include "MyCounter.h"
14 #define MYTOTALWIDGET_TYPE (mytotalwidget_get_type ())
15 #define MYTOTALWIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MYTOTALWIDGET_TYPE, MyTotalWidget))
16 #define MYTOTALWIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MYTOTALWIDGET_TYPE, MyTotalWidgetClass))
17 #define IS_MYTOTALWIDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MYTOTALWIDGET_TYPE))
18 #define IS_MYTOTALWIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MYTOTALWIDGET_TYPE))
19 #define MYTOTALWIDGET_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), MYTOTALWIDGET_TYPE, MyTotalWidgetPrivate))
21 typedef struct _MyTotalWidget MyTotalWidget
;
22 typedef struct _MyTotalWidgetClass MyTotalWidgetClass
;
23 typedef struct _MyTotalWidgetPrivate MyTotalWidgetPrivate
;
30 struct _MyTotalWidgetClass
32 GtkSpinButtonClass parent_class
;
34 void (* mytotalwidget
) (MyTotalWidget
*mtw
);
37 struct _MyTotalWidgetPrivate
39 GList
*calendar_multiply
;
41 GtkCalendar
*start
, *end
;
46 GType
mytotalwidget_get_type (void);
47 GtkWidget
* mytotalwidget_new (void);
48 void mytotalwidget_add_links(MyTotalWidget
*mtw
,
55 void mytotalwidget_calendar_multiplyer(MyTotalWidget
*mtw
, GtkCalendar
*start
, GtkCalendar
*end
, MyCounter
*mc
);
57 gdouble
mytotalwidget_get_total(MyTotalWidget
*mtw
);
61 #endif /* __MYTOTALWIDGET_H__ */