blob: 672e8b1b9608f481cd903b590ce5c40c6979cdf1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
#ifndef __EOM_MAIN_WINDOW_H__
#define __EOM_MAIN_WINDOW_H__
#include <hildon/hildon-stackable-window.h>
G_BEGIN_DECLS
#define EOM_TYPE_MAIN_WINDOW \
(eom_main_window_get_type())
#define EOM_MAIN_WINDOW(obj) \
(G_TYPE_CHECK_INSTANCE_CAST ((obj), \
EOM_TYPE_MAIN_WINDOW, \
EomMainWindow))
#define EOM_MAIN_WINDOW_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST ((klass), \
EOM_TYPE_MAIN_WINDOW, \
EomMainWindowClass))
#define EOM_IS_MAIN_WINDOW(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
EOM_TYPE_MAIN_WINDOW))
#define EOM_IS_MAIN_WINDOW_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE ((klass), \
EOM_TYPE_MAIN_WINDOW))
#define EOM_MAIN_WINDOW_GET_CLASS(obj) \
(G_TYPE_INSTANCE_GET_CLASS ((obj), \
EOM_TYPE_MAIN_WINDOW, \
EomMainWindowClass))
typedef struct _EomMainWindow EomMainWindow;
typedef struct _EomMainWindowClass EomMainWindowClass;
struct _EomMainWindowClass
{
HildonStackableWindowClass parent_class;
};
struct _EomMainWindow
{
HildonStackableWindow parent;
GtkTreeIter iter;
GtkListStore *store;
GtkTreeSelection *selection;
GtkWidget *edit_button;
};
GType eom_main_window_get_type(void);
GtkWidget *eom_main_window_new(void);
void eom_main_window_load(EomMainWindow *self);
void eom_main_window_add_line(EomMainWindow *window,
gint id,
const gchar *name,
gint current_qty,
gint total_qty);
void eom_main_window_set_no_select(EomMainWindow *self);
void eom_main_window_set_has_select(EomMainWindow *self);
G_END_DECLS
#endif /* __EOM_MAIN_WINDOW_H__ */
|