/***************************************************************************
 *            wince.rc
 *
 *  Thu Jul 19 19:00:10 2007
 *  Copyright  2007  Steffen Pohle
 *  steffen@gulpe.de
 ****************************************************************************/

//
// Include
//
#ifndef _WIN32_IE
  #define _WIN32_IE 0x400
#endif
#include <windows.h>
#include <wingdi.h>
#include <winbase.h>
#include <winuser.h>
#include <commctrl.h>
#include "wince_ressource.h"
//
// Menu
//
IDR_MAINMENU SHMENUBAR MOVEABLE PURE 
BEGIN
	IDR_MAINMENU, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE
END



IDR_MAINMENU MENU
BEGIN
	POPUP "&Menu"
	BEGIN
		POPUP "&Map"
		BEGIN
			MENUITEM	"&Path",	IDM_MENU_MAP_PATH
			MENUITEM	"&Refresh",	IDM_MENU_MAP_WEBLOAD
			MENUITEM	"&Refresh Map Index",	IDM_MENU_MAP_REFRESHSEARCH
		END
		POPUP "&GPS"
		BEGIN
			MENUITEM	"&Start",	IDM_MENU_GPS_START
			MENUITEM	"&Stop",	IDM_MENU_GPS_STOP
			MENUITEM	SEPARATOR
			MENUITEM	"&Setting",	IDM_MENU_GPS_SETTING
			MENUITEM	"&Load Log",	IDM_MENU_GPS_LOGLOAD
			MENUITEM	"&Export GPX",	IDM_MENU_GPX_EXPORT
			MENUITEM	"&Save Route",	IDM_MENU_ROUTESAVE
		END
		MENUITEM	"&Log Path",	IDM_MENU_LOG_PATH
		MENUITEM	SEPARATOR
		MENUITEM	"E&xit",	IDM_MENU_EXIT
	END
	POPUP "&Test"
	BEGIN
		MENUITEM	"SelectDir",	IDM_MENU_SEL_DIR
	END
END


//
// Com Setting Dialog
//
IDR_COMSETTING DIALOG 0, 0, 140, 160
STYLE WS_POPUPWINDOW
CAPTION "Com Settings"
FONT 8, "Ms Shell Dlg 2"
{
	DEFPUSHBUTTON   "OK", 		IDOK, 5, 140, 50, 14
    PUSHBUTTON      "Cancel", 	IDCANCEL, 85, 140, 50, 14
		
	RADIOBUTTON     "Com1", 	IDC_COMPORT1, 20, 14, 38, 10, WS_GROUP
	RADIOBUTTON     "Com2", 	IDC_COMPORT2, 20, 25, 38, 10
	GROUPBOX        "Comport:",	IDC_STATIC, 5, 4, 60, 37
// why the groupbox has to be put at the end of the group... stupid windows.. 
// if someone gives me a mingw/arm compiler with gtk support which works on
// my pda i will kick the whole wince stuff away and use only GTK..
    RADIOBUTTON     "1200",		IDC_BAUD1, 20, 55, 38, 10, WS_GROUP
    RADIOBUTTON     "2400",		IDC_BAUD2, 20, 65, 38, 10
    RADIOBUTTON     "4800",		IDC_BAUD3, 20, 75, 38, 10
	RADIOBUTTON     "9600",		IDC_BAUD4, 20, 85, 38, 10
	RADIOBUTTON     "19200",	IDC_BAUD5, 75, 55, 38, 10
    RADIOBUTTON     "38400",	IDC_BAUD6, 75, 65, 38, 10
    RADIOBUTTON     "57600",	IDC_BAUD7, 75, 75, 38, 10
    RADIOBUTTON     "115200",	IDC_BAUD8, 75, 85, 38, 10
	GROUPBOX        "Baud:",	IDC_STATIC, 5, 45, 130, 55

	EDITTEXT		IDC_DEVEDIT, 5, 105, 130, 12
	CHECKBOX 		"&Simmulation",IDC_SIMMULATION, 10, 120, 50, 14
	CHECKBOX 		"&Create Logfile",IDC_CREATELOG, 75, 8, 60, 14
	PUSHBUTTON      "File", 	IDC_FILE, 74, 120, 50, 14
}



//
// Text Edit Box
//
IDR_TEXTEDIT DIALOG  0, 0, 140, 60
STYLE WS_POPUPWINDOW
CAPTION "Dataedit"
FONT 8, "Ms Shell Dlg 2"
{
	DEFPUSHBUTTON   "OK", 		IDOK, 5, 40, 50, 14
    PUSHBUTTON      "Cancel", 	IDCANCEL, 65, 40, 50, 14
	LTEXT			"Name:",	IDC_LABEL, 5, 5, 130, 8
	EDITTEXT		IDC_EDIT, 	5, 20, 130, 12
}



//
// Com Setting Dialog
//
IDR_SELECT_DIR DIALOG 0, 0, 115, 145
STYLE WS_POPUPWINDOW
CAPTION "Select Dir"
FONT 8, "Ms Shell Dlg 2"
{
	DEFPUSHBUTTON   "OK", 		IDOK, 5, 125, 50, 14
    PUSHBUTTON      "Cancel", 	IDCANCEL, 60, 125, 50, 14
	LTEXT			"Path:",	IDC_LABEL, 5, 5, 20, 8
	EDITTEXT		IDC_EDIT, 	25, 5, 85, 12
	LISTBOX	IDC_DIRLIST, 5, 25, 105, 95 , WS_VSCROLL | WS_BORDER
}
