forked from blackfiveimaging/photoprint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpp_mainwindow.h
56 lines (42 loc) · 1.43 KB
/
pp_mainwindow.h
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
#ifndef __PP_MAINWINDOW_H__
#define __PP_MAINWINDOW_H__
#include <glib.h>
#include <glib-object.h>
#include <gtk/gtkwindow.h>
#include <gtk/gtkvbox.h>
#include <gtk/gtkhbox.h>
#include <gtk/gtkspinbutton.h>
#include <gtk/gtkuimanager.h>
#include <gutenprint/gutenprint.h>
#include "photoprint_state.h"
G_BEGIN_DECLS
#define PP_MAINWINDOW_TYPE (pp_mainwindow_get_type())
#define PP_MAINWINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PP_MAINWINDOW_TYPE, pp_MainWindow))
#define PP_MAINWINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PP_MAINWINDOW_TYPE, pp_MainWindowClass))
#define IS_PP_MAINWINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PP_MAINWINDOW_TYPE))
#define IS_PP_MAINWINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PP_MAINWINDOW_TYPE))
typedef struct _pp_MainWindow pp_MainWindow;
typedef struct _pp_MainWindowClass pp_MainWindowClass;
struct _pp_MainWindow
{
GtkWindow window;
// GtkWidget *menu;
GtkWidget *layout;
GtkWidget *vbox;
GtkUIManager *uim;
PhotoPrint_State *state;
char *prevfile;
};
struct _pp_MainWindowClass
{
GtkWindowClass parent_class;
void (*changed)(pp_MainWindow *book);
void (*startup)(pp_MainWindow *book);
void (*initialised)(pp_MainWindow *book);
};
GType pp_mainwindow_get_type (void);
GtkWidget* pp_mainwindow_new (PhotoPrint_State *state);
void pp_mainwindow_refresh(pp_MainWindow *ob);
void pp_mainwindow_rebuild(pp_MainWindow *ob);
G_END_DECLS
#endif /* __PP_MAINWINDOW_H__ */