/*
 Program WinCaml: Graphical User Interface
 for interactive use of Caml-Light and Ocaml under Microsoft Windows.
 Copyright (C) 2005 - 2017 Jean Mouric 35700 Rennes France
 email: jean.mouric@orange.fr
 
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation, either version 3 of the License, or
 (at your option) any later version.
 
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License
 along with this program. If not, see <http://www.gnu.org/licenses/>. 
*/

// File WinCamlMinGW32.rc

#include "../../All/resource.h"
#define _WIN32_IE 0x0501
#include "windows.h"
#include "commctrl.h"
/////////////////////////////////////////////////////////////////////////////
//
// Icon
//
// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDR_MAINFRAME           ICON    DISCARDABLE     ".\\res\\WinCaml.ico"
IDR_WINCAMLTYPE          ICON    DISCARDABLE     ".\\res\\WinCamlDoc.ico"

/////////////////////////////////////////////////////////////////////////////
//
//
// Menu
//
IDR_MAINMENU MENU PRELOAD DISCARDABLE 
BEGIN
    POPUP "&Fichier"
    BEGIN
        MENUITEM "&Nouveau\tCtrl+N",            FILE_NEW
        MENUITEM "&Inclure... \tCtrl+I",        FILE_INCLUDE, GRAYED
        MENUITEM "&Ouvrir...\tCtrl+O",          FILE_OPEN1
        MENUITEM "&Fermer",                     FILE_CLOSE, GRAYED
        MENUITEM "&Enregistrer\tCtrl+S",        FILE_SAVE, GRAYED
        MENUITEM "En&registrer sous...",        FILE_SAVEAS, GRAYED
        MENUITEM "Enre&gistrer au format RTF...",    FILE_SAVEASFORMATTED, GRAYED
        MENUITEM SEPARATOR
        MENUITEM "Im&primer...\tCtrl+P",        FILE_PRINT, GRAYED
        MENUITEM "Mise en p&age...", FILE_PRINTSETUP
        MENUITEM SEPARATOR
        MENUITEM "&Quitter",                    FILE_EXIT
    END
    POPUP "É&dition"
    BEGIN
        MENUITEM "&Annuler\tCtrl+Z",            EDIT_UNDO, GRAYED
        MENUITEM "&Rétablir\tCtrl+Y",           EDIT_REDO, GRAYED
        MENUITEM SEPARATOR
        MENUITEM "&Couper\tCtrl+X",             EDIT_CUT, GRAYED
        MENUITEM "Cop&ier\tCtrl+C",             EDIT_COPY, GRAYED
        MENUITEM "C&oller\tCtrl+V",             EDIT_PASTE, GRAYED
        MENUITEM "Tout &sélectionner\tCtrl+A",  EDIT_SELECTALL, GRAYED
        MENUITEM SEPARATOR
        MENUITEM "Rec&hercher...\tCtrl+F",      EDIT_FIND, GRAYED
        MENUITEM "Rechercher et R&emplacer...\tCtrl+H",      EDIT_REPLACE, GRAYED
        MENUITEM SEPARATOR
        MENUITEM "Indentation par tabulations", EDIT_INDENTMODE
        MENUITEM "Nombre d'espaces par tabulation...", EDIT_TABWIDTH
        MENUITEM "Indenter après in", EDIT_INDENTAFTERIN, CHECKED
        MENUITEM "Indenter les filtres", EDIT_INDENTFILTER
        MENUITEM "Utiliser l'indenteur pour ocaml", EDIT_INDENTOCAML
        MENUITEM SEPARATOR
        MENUITEM "Inde&nter\tCtrl+J",           EDIT_INDENT, GRAYED
    END
    POPUP "&Affichage"
    BEGIN
        MENUITEM "Cloison verticale -> cloison horizontale",	VIEW_SPLIT
        MENUITEM "Panneau d'entrée seul",       VIEW_INPUTONLY
        MENUITEM "Panneau de sortie seul",      VIEW_OUTPUTONLY
        MENUITEM "Les deux panneaux",           VIEW_BOTH, CHECKED
        MENUITEM SEPARATOR
        MENUITEM "Police de caractères en entrée...",  VIEW_INPUTFONT
        MENUITEM "Police de caractères en sortie...",  VIEW_OUTPUTFONT
        MENUITEM SEPARATOR
        MENUITEM "Retour à la ligne en entrée", VIEW_WRAPINPUT
        MENUITEM "Retour à la ligne en sortie", VIEW_WRAPOUTPUT
        MENUITEM SEPARATOR
        MENUITEM "Coloration syntaxique", VIEW_SYNTAXCOLOR, CHECKED
        MENUITEM SEPARATOR
        MENUITEM "&Barre d'outils",             VIEW_TOOLBAR, CHECKED
        MENUITEM "Barre d'é&tat",               VIEW_STATUSBAR, CHECKED
    END
    POPUP "&Couleurs"
    BEGIN
        MENUITEM "Tampon d'entrée...",             COLOR_BUFFERBACKGROUND
        MENUITEM "Commandes en entrée...",         COLOR_COMMANDBACKGROUND
        MENUITEM "Commandes en sortie...",         COLOR_OUTPUT
        MENUITEM SEPARATOR
        MENUITEM "Nombres...",                     COLOR_NUMBER
        MENUITEM "Mots clés...",                   COLOR_KEYWORD
        MENUITEM "Délimiteurs...",                 COLOR_DELIMITER
        MENUITEM "Opérateurs...",                  COLOR_OPERATOR
        MENUITEM "Chaînes...",                     COLOR_STRING
        MENUITEM "Commentaires...",                COLOR_COMMENT
    END
    POPUP "&Encodage"
    BEGIN
        MENUITEM "Unix",			ENCODING_UNIX
        MENUITEM "Mac",				ENCODING_MAC
        MENUITEM "Win",				ENCODING_WIN, CHECKED
        MENUITEM "Utf-8",			ENCODING_UTF8
        MENUITEM SEPARATOR
        MENUITEM "Auto",			ENCODING_AUTO, CHECKED
    END
    POPUP "Ca&ml"
    BEGIN
        MENUITEM "&Envoyer\tCtrl+Ret",          CAML_SEND, GRAYED
//	MENUITEM "Envoyer la sélection",	CAML_SEND_SEL, GRAYED
        MENUITEM "&Interrompre\tCtrl+K",        CAML_INTERRUPT, GRAYED
        MENUITEM "&Stopper",                        CAML_STOP, GRAYED
        MENUITEM "E&ffacer la sortie",           CAML_CLEAROUTPUT, GRAYED
    END
    POPUP "Cam&lTop"
    BEGIN
        MENUITEM "Caml Light",          CAMLTOP_CAMLLIGHT
        MENUITEM "OCaml",          CAMLTOP_OCAML
        MENUITEM SEPARATOR
        MENUITEM "Démarrage différé",           CAMLTOP_START
    END
    POPUP "&Sortie"
    BEGIN
        MENUITEM "Simple",						OUTPUT_SHORT
        MENUITEM "Abrégée",						OUTPUT_MEDIUM, GRAYED, CHECKED
        MENUITEM "Complète",					OUTPUT_LONG
    END
    POPUP "Fe&nêtre"
    BEGIN
        MENUITEM "&Cascade",                    WINDOW_CASCADE
        MENUITEM "&Mosaïque",                   WINDOW_TILE
    END
    POPUP "A&ide"
    BEGIN
        MENUITEM "&Documentation de Caml-light", HELP_CAMLLIGHT
        MENUITEM "D&ocumentation de OCaml",      HELP_OCAML
        MENUITEM SEPARATOR
	MENUITEM "&Réglages par défaut",			HELP_DEFAULTCONFIG
        MENUITEM SEPARATOR
       MENUITEM "À &propos de WinCaml...",     HELP_ABOUT
    END
END

/////////////////////////////////////////////////////////////////////////////
//
// Accelerator
//

IDR_MAINMENU ACCELERATORS PRELOAD MOVEABLE PURE
BEGIN
	"A",            EDIT_SELECTALL,     VIRTKEY, CONTROL, NOINVERT
	"C",            EDIT_COPY,           VIRTKEY, CONTROL, NOINVERT
	"F",            EDIT_FIND,        VIRTKEY, CONTROL, NOINVERT
	"H",            EDIT_REPLACE,        VIRTKEY, CONTROL, NOINVERT
	"I",            FILE_INCLUDE,     VIRTKEY, CONTROL, NOINVERT
	"J",            EDIT_INDENT,         VIRTKEY, CONTROL, NOINVERT
	"K",            CAML_INTERRUPT,    VIRTKEY, CONTROL, NOINVERT
	"N",            FILE_NEW,            VIRTKEY, CONTROL, NOINVERT
	"O",            FILE_OPEN1,           VIRTKEY, CONTROL, NOINVERT
	"P",            FILE_PRINT,          VIRTKEY, CONTROL, NOINVERT
	"Y",            EDIT_REDO,           VIRTKEY, CONTROL, NOINVERT
	"S",            FILE_SAVE,           VIRTKEY, CONTROL, NOINVERT
	"V",            EDIT_PASTE,          VIRTKEY, CONTROL, NOINVERT
	"X",            EDIT_CUT,            VIRTKEY, CONTROL, NOINVERT
	"Z",            EDIT_UNDO,           VIRTKEY, CONTROL, NOINVERT
        VK_RETURN,      CAML_SEND,        VIRTKEY, CONTROL, NOINVERT
END
/////////////////////////////////////////////////////////////////////////////
//
// Bitmap
//
IDR_BITMAP           BITMAP  MOVEABLE PURE   ".\\res\\Toolbar.bmp"

/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//

IDD_DIALOG1 DIALOG DISCARDABLE  50, 50, 201, 46
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Taille d'une tabulation"
FONT 8, "MS Sans Serif"
BEGIN
    DEFPUSHBUTTON   "OK",IDOK,144,7,50,14
    PUSHBUTTON      "Annuler",IDCANCEL,144,24,50,14
    EDITTEXT        IDC_EDIT1,83,17,22,14,ES_AUTOHSCROLL
    CONTROL         "Spin1",IDC_SPIN1,"msctls_updown32",UDS_WRAP | UDS_AUTOBUDDY | 
                    UDS_SETBUDDYINT | UDS_ARROWKEYS | UDS_HOTTRACK,105,14,11,
                    19
    LTEXT           "Nombre d'espaces:",IDC_STATIC,5,19,70,8
END
/////////////////////////////////////////////////////////////////////////////
//
// Version
//

VS_VERSION_INFO VERSIONINFO
 FILEVERSION 5,0,4,0
 //PRODUCTVERSION 1,0,5,0
 FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
 FILEFLAGS 0x1L
#else
 FILEFLAGS 0x0L
#endif
 FILEOS 0x4L
 FILETYPE 0x1L
 FILESUBTYPE 0x0L
BEGIN
    BLOCK "StringFileInfo"
    BEGIN
        BLOCK "040c04b0"
        BEGIN
            VALUE "Comments", "\0"
            VALUE "CompanyName", "\0"
            VALUE "FileDescription", "WinCaml pour caml-light et ocaml\0"
            VALUE "FileVersion", "5.9\0"
            VALUE "InternalName", "WinCaml\0"
            VALUE "LegalCopyright", "Copyright (C) 2005 - 2017 Jean Mouric RENNES 35700 France\0"
            VALUE "LegalTrademarks", "\0"
            VALUE "OriginalFilename", "WinCaml.exe\0"
            VALUE "PrivateBuild", "\0"
            VALUE "ProductName", "WinCaml (x86)\0"
            VALUE "ProductVersion", "5.9\0"
            VALUE "SpecialBuild", "\0" 
        END
    END
    BLOCK "VarFileInfo"
    BEGIN
        VALUE "Translation", 0x40c, 1200
    END
END

