blob: 2b9ea1c6a490214c9eeb3a7b11bcb13eda7e3c54 (
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
69
70
|
#ifndef __C_MAIN_WINDOW_H__
#define __C_MAIN_WINDOW_H__
#include <hildon/hildon-stackable-window.h>
G_BEGIN_DECLS
#define C_TYPE_MAIN_WINDOW \
(c_main_window_get_type())
#define C_MAIN_WINDOW(obj) \
(G_TYPE_CHECK_INSTANCE_CAST ((obj), \
C_TYPE_MAIN_WINDOW, \
CMainWindow))
#define C_MAIN_WINDOW_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST ((klass), \
C_TYPE_MAIN_WINDOW, \
CMainWindowClass))
#define C_IS_MAIN_WINDOW(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
C_TYPE_MAIN_WINDOW))
#define C_IS_MAIN_WINDOW_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE ((klass), \
C_TYPE_MAIN_WINDOW))
#define C_MAIN_WINDOW_GET_CLASS(obj) \
(G_TYPE_INSTANCE_GET_CLASS ((obj), \
C_TYPE_MAIN_WINDOW, \
CMainWindowClass))
typedef struct _CMainWindow CMainWindow;
typedef struct _CMainWindowClass CMainWindowClass;
struct _CMainWindowClass
{
HildonStackableWindowClass parent_class;
};
struct _CMainWindow
{
HildonStackableWindow parent;
GtkTreeIter iter;
GtkListStore *store;
GtkTreeSelection *selection;
GtkWidget *add_button;
GtkWidget *remove_button;
GtkWidget *edit_button;
};
GType c_main_window_get_type(void);
GtkWidget *c_main_window_new(void);
void c_main_window_load(CMainWindow *self);
void c_main_window_add_line(CMainWindow *window,
gint id,
const gchar *name,
gint current_qty,
gint total_qty);
void c_main_window_set_no_select(CMainWindow *self);
void c_main_window_set_has_select(CMainWindow *self);
G_END_DECLS
#endif /* __C_MAIN_WINDOW_H__ */
|