Navit SVN

/work/compile/navit/src/navit/graphics/win32/graphics_win32.h

00001 #ifndef WIN32_GUI_INCLUDED
00002 #define WIN32_GUI_INCLUDED
00003 
00004 #include "resources/resource.h"
00005 #include "coord.h"
00006 #include "point.h"
00007 #include "graphics.h"
00008 #include "event.h"
00009 
00010 #ifdef UNICODE
00011 #include <wchar.h>
00012 #define _tprintf wprintf
00013 #else
00014 #define _tprintf printf
00015 #endif
00016 
00017 
00018 #define ID_CHILD_GFX 100
00019 #define ID_CHILD_TOOLBAR (ID_CHILD_GFX + 1)
00020 #define ID_CHILD_1 (ID_CHILD_TOOLBAR + 1)
00021 #define ID_CHILD_2 (ID_CHILD_1 + 1)
00022 #define ID_CHILD_3 (ID_CHILD_2 + 1)
00023 #define ID_CHILD_4 (ID_CHILD_4 + 1)
00024 
00025 #define ID_DISPLAY_ZOOMIN               200
00026 #define ID_DISPLAY_ZOOMOUT              201
00027 #define ID_DISPLAY_REFRESH              202
00028 #define ID_DISPLAY_CURSOR               203
00029 #define ID_DISPLAY_ORIENT               204
00030 #define ID_DISPLAY_DESTINATION  205
00031 
00032 #define ID_FILE_EXIT            9001
00033 #define ID_STUFF_GO             9002
00034 
00035 //#define _(text) gettext(text)
00036 
00037 #define POPUP_MENU_OFFSET  4000
00038 
00039 struct statusbar_methods;
00040 struct menu_methods;
00041 struct datawindow_methods;
00042 struct navit;
00043 struct callback;
00044 
00045 
00046 struct menu_priv {
00047         HWND wnd_handle;
00048         HMENU hMenu;
00049         struct callback* cb;
00050 };
00051 
00052 struct gui_priv {
00053         struct navit *nav;
00054         HANDLE  hwnd;
00055 };
00056 
00057 
00058 struct graphics_priv;
00059 
00060 struct menu_priv *gui_gtk_menubar_new(struct gui_priv *gui, struct menu_methods *meth);
00061 struct menu_priv *gui_gtk_toolbar_new(struct gui_priv *gui, struct menu_methods *meth);
00062 struct statusbar_priv *gui_gtk_statusbar_new(struct gui_priv *gui, struct statusbar_methods *meth);
00063 struct menu_priv *gui_gtk_popup_new(struct gui_priv *gui, struct menu_methods *meth);
00064 struct datawindow_priv *gui_gtk_datawindow_new(struct gui_priv *gui, char *name, struct callback *click, struct callback *close, struct datawindow_methods *meth);
00065 
00066 struct graphics_priv* win32_graphics_new( struct navit *nav, struct graphics_methods *meth, struct attr **attrs, struct callback_list *cbl);
00067 
00068 #endif