Friendly email address to contact me.
[bityugov.git] / ccs / MyTotalWidget / MyTotalWidget.h
bloba0ae3b6550f9d3c15bbfed50e3546cf674fa1c79
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"
9 #include "MyTotal.h"
10 #include "MyCounter.h"
12 G_BEGIN_DECLS
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;
25 struct _MyTotalWidget
27 GtkSpinButton sb;
30 struct _MyTotalWidgetClass
32 GtkSpinButtonClass parent_class;
34 void (* mytotalwidget) (MyTotalWidget *mtw);
37 struct _MyTotalWidgetPrivate
39 GList *calendar_multiply;
40 GList *linkto;
41 GtkCalendar *start, *end;
46 GType mytotalwidget_get_type (void);
47 GtkWidget* mytotalwidget_new (void);
48 void mytotalwidget_add_links(MyTotalWidget *mtw,
49 GtkWidget *mt,
50 MyTouchscreen *mts,
51 gchar **linkto,
52 GtkWidget *start,
53 GtkWidget *end);
55 void mytotalwidget_calendar_multiplyer(MyTotalWidget *mtw, GtkCalendar *start, GtkCalendar *end, MyCounter *mc);
57 gdouble mytotalwidget_get_total(MyTotalWidget *mtw);
59 G_END_DECLS
61 #endif /* __MYTOTALWIDGET_H__ */