1 |
#ifndef WIN32_GUI_INCLUDED
|
2 |
#define WIN32_GUI_INCLUDED
|
3 |
|
4 |
#include "resources/resource.h"
|
5 |
#include "coord.h"
|
6 |
#include "point.h"
|
7 |
#include "graphics.h"
|
8 |
#include "event.h"
|
9 |
|
10 |
#ifdef UNICODE
|
11 |
#include <wchar.h>
|
12 |
#define _tprintf wprintf
|
13 |
#else
|
14 |
#define _tprintf printf
|
15 |
#endif
|
16 |
|
17 |
|
18 |
#define ID_CHILD_GFX 100
|
19 |
#define ID_CHILD_TOOLBAR (ID_CHILD_GFX + 1)
|
20 |
#define ID_CHILD_1 (ID_CHILD_TOOLBAR + 1)
|
21 |
#define ID_CHILD_2 (ID_CHILD_1 + 1)
|
22 |
#define ID_CHILD_3 (ID_CHILD_2 + 1)
|
23 |
#define ID_CHILD_4 (ID_CHILD_4 + 1)
|
24 |
|
25 |
#define ID_DISPLAY_ZOOMIN 200
|
26 |
#define ID_DISPLAY_ZOOMOUT 201
|
27 |
#define ID_DISPLAY_REFRESH 202
|
28 |
#define ID_DISPLAY_CURSOR 203
|
29 |
#define ID_DISPLAY_ORIENT 204
|
30 |
#define ID_DISPLAY_DESTINATION 205
|
31 |
|
32 |
#define ID_FILE_EXIT 9001
|
33 |
#define ID_STUFF_GO 9002
|
34 |
|
35 |
//#define _(text) gettext(text)
|
36 |
|
37 |
#define POPUP_MENU_OFFSET 4000
|
38 |
|
39 |
struct statusbar_methods;
|
40 |
struct menu_methods;
|
41 |
struct datawindow_methods;
|
42 |
struct navit;
|
43 |
struct callback;
|
44 |
|
45 |
|
46 |
struct menu_priv {
|
47 |
HWND wnd_handle;
|
48 |
HMENU hMenu;
|
49 |
struct callback* cb;
|
50 |
};
|
51 |
|
52 |
struct gui_priv {
|
53 |
struct navit *nav;
|
54 |
HANDLE hwnd;
|
55 |
};
|
56 |
|
57 |
|
58 |
struct graphics_priv;
|
59 |
|
60 |
struct menu_priv *gui_gtk_menubar_new(struct gui_priv *gui, struct menu_methods *meth);
|
61 |
struct menu_priv *gui_gtk_toolbar_new(struct gui_priv *gui, struct menu_methods *meth);
|
62 |
struct statusbar_priv *gui_gtk_statusbar_new(struct gui_priv *gui, struct statusbar_methods *meth);
|
63 |
struct menu_priv *gui_gtk_popup_new(struct gui_priv *gui, struct menu_methods *meth);
|
64 |
struct datawindow_priv *gui_gtk_datawindow_new(struct gui_priv *gui, char *name, struct callback *click, struct callback *close, struct datawindow_methods *meth);
|
65 |
|
66 |
struct graphics_priv* win32_graphics_new( struct navit *nav, struct graphics_methods *meth, struct attr **attrs, struct callback_list *cbl);
|
67 |
|
68 |
#endif
|