uses Lacrt,Fnfont2,TEdRadky;

(*uses BloStart, {musi byt uvedeno jako prvni}
     Dos,Objects,Lacrt,FNfont2,TedRadky,VenomGFX,Vnm_PCX,Vnm_GIF,Vnm_PNG,Vnm_WMF,
     Vnm_Exif,{$IFDEF RELEASE}Vnm_JPG2{$ELSE}Vnm_JPG{$ENDIF},Smooth,wokna32,
     Nadwokna,Editpole,vaznik,filelist,Konfig,w32const,Clanky,RezKlav,
     WinClip,ExcpTest,BloUniUt,BloMapZn,BloIko;                       *)


{$INCLUDE defines.inc}
{$ASMMODE INTEL}
{$DEFINE _MOREDEBUG}

const
 (*   BYL_MIMORADNY_KOD = 1;

    {kombinace klaves, ktere se budou predavat v promenne xKlavesa.mimoradny_Kod}
    ALT_SHIFT        = -1;
    CTRL_ALT_NAHORU  = -2;
    CTRL_ALT_DOLEVA  = -3;
    CTRL_ALT_DOPRAVA = -4;
    CTRL_ALT_DOLU    = -5;
    CTRL_VPRAVO      = -6;
    CTRL_VLEVO       = -7;

    ALT_1 = -111;
    ALT_2 = -112;
    ALT_3 = -113;
    ALT_4 = -114;
    ALT_5 = -115;
    ALT_6 = -116;
    ALT_7 = -117;
    ALT_8 = -118;
    ALT_9 = -119;

    CTRL_1 = -121;
    CTRL_2 = -122;
    CTRL_3 = -123;
    CTRL_4 = -124;
    CTRL_5 = -125;
    CTRL_6 = -126;
    CTRL_7 = -127;
    CTRL_8 = -128;
    CTRL_9 = -129;

    ALT_F1 = -51;
    ALT_F3 = -53;
    {-------------------------------------------------------------------}

    BLOCEK_CFG_OK        = 0;
    BLOCEK_CFG_CHYBI     = 1;
    BLOCEK_CFG_NESPRAVNY = 2;

    NH_NAHRAD        = 1;
    NH_PREPTEJ_SE    = 2;
    NH_ZMEN_VSE      = 4;

    VYSKA_HL_MENU      = 22;
    B_OKRAJ            = 2;  {bocni okraj}
    B_LEVY_PANEL_SIRKA = 12;
    H_OKRAJ       = 5;  {Kolik pixelu pod posledni radkou menu bude umisteno
                         editacni pole}

    BOM_UTF8:string[3] = #239#187#191;     {UTF-8}
    BOM_UTF16LE:string[2] = #255#254;      {UTF-16LE}
    BOM_UTF16BE:string[2] = #254#255;      {UTF-16BE}

    BZO_na_HTML_entity  = 1;
    BZO_na_velka        = 2;
    BZO_na_mala         = 3;
    BZO_unicode_ascii   = 4;
    BZO_ascii_unicode   = 5;
    BZO_ascii_ascii     = 6;
    BZO_ascii_utf8      = 7;
    BZO_ascii_utf16     = 8;
    BZO_utf8_na_unicode = 9;
    BZO_z_HTML_entit    = 10;

    BZO_unicode_utf8    = 11;
    BZO_unicode_utf16   = 12;
    BZO_prohozeni_endianity_unicode = 13;
    BZO_utf16_na_unicode = 14;
    BZO_nedefinovane_znaky = 15;*)


(*
    CRLF_ZNAZORNENI:array[0..2] of pchar = ('\','+','!');
    SUFFIX_ZALAMOVANI = '\\\1';
    SOUBOR_S_NAPOVEDOU:string = 'info.txt'+SUFFIX_ZALAMOVANI;
    KOD_SEZNAMU_KLAVESNIC = '@*@';
    POCET_PROHLIZENYCHRADKU_PRI_ASCII_DETEKCI = 2000;
    MAX_PODPOROVANYCH_JAZYKU = 20;
    RADKU_KE_SCANU_JAZ_SOUBORU = 20;
    POCET_SCHRANEK = 7;
    CHS_UNICODE = 65535;  {umely kod znakove sady "unicode}

    {nasledujici priznaky se pouzivaji pro...}
    SYS_FLAG_CHECK_SWAP        = 1;
    SYS_FLAG_PRESKOC_TEST_MYSI = 2;
    SYS_FLAG_POVOL_CTRL_BREAK  = 4;
    SYS_FLAG_FUNGUJE_MULTITASK = 8;
    SYS_FLAG_ZAKAZ_WINCLIP     = 16;
    SYS_FLAG_STARY_KBD_HND     = 32;
    {...ruzne_systemove_flagy:word;}

*)

    document_unicode_font:string[30]='unismall.ufn';  {def. font pro unicode}
    document_codepage_font:string[30]=FN_FONT_VGA16;  {def. font pro non-unicode}
    interface_font_1:string[30]=FN_FONT_VGA16;  {font pro rozhrani}
    interface_font_2:string[30]=FN_FONT_VGA16;  {font pro rozhrani}
    interface_font_1_fn:pfont=nil;
    interface_font_2_fn:pfont=nil;
    interface_putf8conv:putf8conv = nil;  {tabulka pro prevod do unicode}

    zadost_o_zavreni:string = '';
    zadost_o_otevreni:ansistring = '';
    mozno_sejmout_obrazovku:boolean = true;
    mozno_volat_alt_shift:boolean = true;
    nacitej_exif:longint = 0;
    autorotace_dle_exif:longint = 0;
    zobrazovani_zalozek:boolean = true;
    byl_otaznik_na_prikazove_Radce:boolean = false;


    debuglevel:byte=0;
    _ctrl_break_signal:longint = 0;
    global_ukazuj_postranni_panel:boolean = true;

    Zjisti_stav_schranky_windows_stav_minule:boolean = false;
    Zjisti_stav_schranky_windows_timer:dword=0;



var i,i1,i2,i3,i4,i5:longint;
    p:pointer;
    b:byte;
    dbgs:string;
    dbg_it:PItRadek;


begin
writeln(debuglevel);
debuglevel:=3;
writeln(debuglevel);

Debug_Test;
readln;
end.
