; AMOEBA initialization file
;
; predefined functions:
; CallSection
; DefineProcedure

[**init]
CallSection("**application")
CallSection("**menu")
CallSection("**keyboard")
CallSection("**mouse")
CallSection("**command prompt")
CallSection("**bars")
CallSection("**picture")

;---------------------------------------------------------------
; ADK APPLICATION configuration
;---------------------------------------------------------------
[**application]
; define procedures needed for application loading
DefineProcedure("ApplicationDirs", "S", "APPLOAD_apps_dirs", "")
DefineProcedure("LoadApplication", "S", "APPLOAD_load_apps", "")

; sem um�st�te aplikace, kter� chcete na��st do JPCADu
; p��klad:
; LoadApplication("c:\testy\test1.exe")

;odkomentujte n�sleduj�c� ��dku, pokud chcete pou��vat aplikaci
;LDSCRIPT pro spou�t�n� maker v JPCADu
; LoadApplication("macro\ldscript.exe")

;---------------------------------------------------------------
; MENU configuration
;---------------------------------------------------------------
[**menu]
; define procedures needed for menu creation
DefineProcedure("InitMenu", "", "MENU_MenuInit", "")
DefineProcedure("CreateMenu", "S", "MENU_CreateMenu", "")
DefineProcedure("CreatePopupMenu", "S", "MENU_CreatePopupMenu", "")
DefineProcedure("AddMenuItem", "SS", "MENU_AddMenuItem", "")
DefineProcedure("AddMenuItemEx", "SSI", "MENU_AddMenuItemEx", "")
DefineProcedure("AddMenuBreak", "", "MENU_AddMenuBreak", "")
DefineProcedure("AddMenuBreakEx", "I", "MENU_AddMenuBreakEx", "")
DefineProcedure("AddMenu", "SS", "MENU_AddMenu", "")
DefineProcedure("EndMenu", "", "MENU_EndMenu", "")
DefineProcedure("MainMenu", "S", "MENU_MainMenu", "")

; initialize menu data (free old menus)
InitMenu()

; create main (application) menu
CallSection("*menu-main")
CallSection("*menu-popup")

[*menu-main]
CallSection("*file")
CallSection("*edit")
CallSection("*draw")
CallSection("*transform")
CallSection("*view")
CallSection("*tools")
CallSection("*help")

CreateMenu("**menu")
AddMenu("*file", "&Soubor")
AddMenu("*edit", "&Editace")
AddMenu("*draw", "&Kreslen�")
AddMenu("*transform", "&Modifikace")
AddMenu("*tools", "&N�stroje")
AddMenu("*view", "&Pohled")
AddMenu("*help", "N�po&v�da")
EndMenu()
MainMenu("**menu")

[*menu-popup]
; create popup menu
CreatePopupMenu("popup1")
AddMenuItem("&Koncov� bod", "'_endp\r")
AddMenuItem("&Prost�edn� bod", "'_midp\r")
AddMenuItem("&St�ed", "'_cenp\r")
AddMenuItem("Bod &vlo�en�", "'_insp\r")
AddMenuBreak()
AddMenuItem("P&r�se��k", "'_intp\r")
AddMenuItem("&Nejbli���", "'_neap\r")
AddMenuItem("Ko&lm�", "'_perp\r")
AddMenuItem("&Te�na", "'_tanp\r")
AddMenuBreak()
AddMenuItem(".&X", "'_.x\r")
AddMenuItem(".&Y", "'_.y\r")
AddMenuBreak()
AddMenuItem("Pro&dlou�en�", "'_contin\r")
AddMenuItem("R&ovnob�ka", "'_parf\r")
AddMenuItem("Zob&ecn�n� pr�se��k","'_gintp\r")
AddMenuItem("&Zarovnej", "'_align\r")
AddMenuBreak()
AddMenuItem("&Lep","'_sticky\r")
EndMenu()

[*file]
CreatePopupMenu("*file-advanced")
AddMenuItem("&Na��st blok...", "\z_rblock\r")
AddMenuItem("&Ulo�it blok...", "\z_wblock\r")
AddMenuItem("Ulo�it &v�echny bloky", "\z_wblocks\r")
AddMenuItem("Ulo�it jako &bitmapu/metafile", "\z_foto\r")
EndMenu()

CreatePopupMenu("*file-database")
AddMenuItem("&Vy�istit datab�zi", "\z_purge\r")
EndMenu()

CreatePopupMenu("*file")
AddMenuItemEx("&Nov�\tCtrl+N", "\z_new\r", 1)
AddMenuItemEx("&Otev��t...\tCtrl+O", "\z_open\r", 1)
AddMenuItemEx("&Ulo�it\tCtrl+S", "\z_save\r", 1)
AddMenuItemEx("Ulo�it &jako...", "\z_saveas\r", 1)
AddMenuItemEx("&Aktualizovat", "\z_update\r", 2)
AddMenuItemEx("Ulo�it &kopii jako....", "\z_saveas\r", 2)
AddMenuBreak()
AddMenu("*file-advanced", "&Import/Export...")
AddMenu("*file-database","&V�kres...")
AddMenuBreak()
AddMenuItem("Nasta&ven� tisku...", "\z_printsetup\r")
AddMenuItem("&Tisk\tCtrl+P", "\z_print\r")
AddMenuBreakEx(1)
AddMenuItemEx("MRU", "", 1)	; this is special menu entry for Most Recently Used Files
AddMenuBreak()
AddMenuItemEx("&Konec\tAlt+X", "\z_quit\r", 1)
AddMenuItemEx("&Konec && N�vrat do dokumentu", "\z_quit\r", 2)
EndMenu()

[*edit]
CreatePopupMenu("*edit")
AddMenuItem("Krok &zp�t\tCtrl+Z", "\z_u\r")
AddMenuItem("&Opakovat krok\tCtrl+Y", "\z_r\r")
AddMenuItem("Z&p�t\tCtrl+Y", "\z_undo\r")
AddMenuBreak()
AddMenuItem("&Vyjmout\tCtrl+X", "\z_ccut\r")
AddMenuItem("&Kop�rovat\tCtrl+C", "\z_ccopy\r")
AddMenuItem("&Vlo�it\tCtrl+V", "\z_cpaste\r")
AddMenuBreak()
AddMenuItem("&Smazat", "\z_erase\r")
EndMenu()

[*transform]
CreatePopupMenu("*transform")
AddMenuItem("&Kop�ruj", "\z_copy\r")
AddMenuItem("&Posun", "\z_move\r")
AddMenuItem("&Oto�", "\z_rotate\r")
AddMenuItem("Zr&cadli", "\z_mirror\r")
AddMenuItem("&M���tko", "\z_scale\r")
AddMenuItem("Po&le", "\z_array\r")
AddMenuItem("Prot�&hnout", "\z_stretch\r")
AddMenuBreak()
AddMenuItem("&Editovat", "\z_edit\r")
AddMenuItem("Editovat &text", "\z_tedit\r")
AddMenuItem("Editovat &atribut", "\z_attredit\r")
AddMenuItem("Editovat atributy &bloku", "\z_insattrd\r")
AddMenuItem("&Vlastnosti", "\z_propsd\r")
AddMenuBreak()
AddMenuItem("&Rozd�l", "\z_break\r")
AddMenuItem("&O�e�", "\z_trim\r")
AddMenuItem("&Zaobli", "\z_fillet\r")
AddMenuItem("Zko&s", "\z_chamfer\r")
AddMenuItem("O&ffset","\z_offset\r")
EndMenu()


[*draw]
CreatePopupMenu("*dimension")
AddMenuItem("&Line�rn� k�tov�n�", "\z_dimlin\r")
AddMenuItem("K�tov�n� &polom�ru", "\z_dimrad\r")
AddMenuItem("K�tov�n� p&r�m�ru", "\z_dimdia\r")
AddMenuItem("K�tov�n� &oblouku", "\z_dimarc\r")
AddMenuItem("k�tov�n� �&hlu", "\z_dimang\r")
AddMenuItem("&N�vazn� k�tov�n�", "\z_dimgroup\r")
AddMenuItem("P�vodn� um�st�n� &textu", "\z_dimhome\r")
EndMenu()

CreatePopupMenu("*draw")
AddMenuItem("&Oblouk", "\z_arc\r")
AddMenuItem("&Atribut", "\z_attr\r")
AddMenuItem("&Kru�nice", "\z_circle\r")
AddMenuItem("�&se�ka", "\z_line\r")
AddMenuItem("&Polygon", "\z_solid\r")
AddMenuItem("&Text", "\z_text\r")
AddMenuItem("�ra&f", "\z_hatch\r")
AddMenu("*dimension","K�tov�n�")
AddMenuBreak()
AddMenuItem("&Definovat blok", "\z_block\r")
AddMenuItem("&Vlo�it blok", "\z_insertd\r")
AddMenuItem("&Skupina","\z_group\r")
AddMenuItem("&Rozbalit","\z_explode\r")
AddMenuBreak()
AddMenuItem("Kreslen� o&d ruky", "\z_sketch\r")
EndMenu()


[*view]
CreatePopupMenu("*view")
AddMenuItem("&Zoom", "'_zoom\r")
AddMenuItem("Z&v�t�it\tCtrl++", "'_zoom\r2\r")
AddMenuItem("Z&men�it\tCtrl+-", "'_zoom\r0.5\r")
AddMenuItem("&Posunut� zobrazen�", "'_pan\r")
AddMenuItem("&Historie\tF2", "'_history\r")
AddMenuBreak()
AddMenuItem("&Obnov\tF5", "'_regen\r")
EndMenu()

[*tools]
CreatePopupMenu("*configuration")
AddMenuItem("&Barva pozad�", "\z_bkcolor\r")
AddMenuItem("&Jednotky", "\z_units\r")
AddMenuItem("&Kurzor", "\z_seldelta\r")
AddMenuItem("Nastaven� p&rom�nn�ch", "\z_setvard\r")
AddMenuItem("&N�strojov� li�ty", "\z_toolbars\r")
EndMenu()

CreatePopupMenu("*filter")
AddMenuItem("&Koncov� bod", "'_endp\r")
AddMenuItem("&Prost�edn� bod", "'_midp\r")
AddMenuItem("&St�ed", "'_cenp\r")
AddMenuItem("&Bod vlo�en�", "'_insp\r")
AddMenuItem("&V�echny body", "'_allp\r")
AddMenuBreak()
AddMenuItem("P&r�se��k", "'_intp\r")
AddMenuItem("&Nejbli���", "'_neap\r")
AddMenuItem("&Kolm�", "'_perp\r")
AddMenuItem("&Te�na", "'_tanp\r")
AddMenuBreak()
AddMenuItem(".&X", "'_.x\r")
AddMenuItem(".&Y", "'_.y\r")
AddMenuBreak()
AddMenuItem("Pro&dlou�en�", "'_contin\r")
AddMenuItem("R&ovnob�ka", "'_parf\r")
AddMenuItem("Zob&ecn�n� pr�se��k","'_gintp\r")
AddMenuItem("&Zarovnej", "'_align\r")
AddMenuBreak()
AddMenuItem("&Lep","'_sticky\r")
EndMenu()

CreatePopupMenu("*tools-app")
AddMenuItem("&Na�ti", "\z_load\r")
AddMenuItem("&Ukon�i", "\z_unload\r")
AddMenuItem("&Aplikace", "\z_apps\r")
EndMenu()

CreatePopupMenu("*tools")
AddMenu("*configuration","&Nastaven�")
AddMenuBreak()
AddMenu("*filter", "&Filtry")
AddMenuItem("&M��ka\tF9", "\z_grid\r")
AddMenuItem("&Orto\tF8", "\z_ortho\r")
AddMenuItem("&Barva", "\z_color\r_dialog\r")
AddMenuItem("T&yp ��ry", "\z_linetype\r_dialog\r")
AddMenuItem("Styl &textu", "\z_textstyle\r")
AddMenuItem("Styl &k�t", "\z_dimstyle\r")
AddMenuItem("Styl �ra&fu", "\z_hatchstyle\r")
AddMenuItem("&Hladina", "\z_layerd\r")
AddMenuBreak()
AddMenuItem("E&xportovat atributy", "\z_attext\r")
AddMenuBreak()
AddMenuItem("&Vypsat", "\z_list\r")
AddMenuItem("V&zd�lenost", "\z_dist\r")
AddMenuItem("I&dentifikovat bod", "\z_id\r")
AddMenuBreak()
AddMenu("*tools-app", "&Aplikace")
EndMenu()

[*help]
CreatePopupMenu("*help")
AddMenuItem("&Obsah\tF1", "'_help\r\r")
AddMenuItem("&Vyhledat v n�pov�d�...\tShift+F1", "'_help\r_search for\r")
AddMenuItem("&Pr�vodce", "'_help\rTUTORIAL.HLP\r")
AddMenuBreak()
AddMenuItem("&Pou�it� n�pov�dy", "'_help\r_on help\r")
AddMenuItem("&Tip dne","'_tips\r")
AddMenuBreak()
AddMenuItem("O &aplikaci...", "'_about\r")
EndMenu()

;---------------------------------------------------------------
; KEYBOARD configuration
;---------------------------------------------------------------
[**keyboard]
DefineProcedure("InitKeyboard", "", "KEYBOARD_KeyboardInit", "")
DefineProcedure("AddVkHotKey", "SSS", "KEYBOARD_AddVkHotKey", "")
DefineProcedure("AddHotKey", "SSS", "KEYBOARD_AddHotKey", "")

InitKeyboard()

; virtual keys
AddVkHotKey("CANCEL", "c", "\z")	; must have control modifier!
AddVkHotKey("ESCAPE", "", "\c")
AddVkHotKey("F1", "", "'_help\r\r")
AddVkHotKey("F1", "s", "'_help\r\_search for\r")
AddVkHotKey("F2", "", "'_history\r")
AddVkHotKey("F5", "", "'_regen\r")
AddVkHotKey("F7", "", "'_gridsh\r")
AddVkHotKey("F8", "", "'_ortho\r")
AddVkHotKey("F9", "", "'_grid\r\r")
AddVkHotKey("BACK", "a", "\z_u\r")
AddVkHotKey("ADD", "c", "'_zoom\r2\r")
AddVkHotKey("SUBTRACT", "c", "'_zoom\r0.5\r")

;cut, copy & paste
AddVkHotKey("DELETE", "s", "\z_ccut\r")
AddVkHotKey("INSERT", "s", "\z_cpaste\r")
AddVkHotKey("INSERT", "c", "\z_ccopy\r")
; "normal" keys
; copy, cut & paste
AddHotKey("c", "c", "\z_ccopy\r")
AddHotKey("x", "c", "\z_ccut\r")
AddHotKey("v", "c", "\z_cpaste\r")

;pokud chcete pou��vat kl�vesov� zkratky pro vkl�d�n� textu do editboxu na p��kazov�
;��dce, vyma�te v��e uveden� p��slu�n� t�i kl�vesov� zkratky pro copy, cut & paste,
;kter� jste zvykl� pou��vat
;V sou�asn�m nastaven� se kl�vesov� zkratky pro kop�rov�n�, vyst�i�en� a vlo�en�
;(copy, cut & paste) pou��vaj� POUZE pro v�kres.
;Do p��kazov� ��dky m��ete vlo�it text ze schr�nky pokud v textov�m pol��ku stisknete
;prav� tla��tko my�i - objev� se kontextov� menu s p��kazy (Pozor - nefunguje na Win32s)


; "normal" keys
;other actions
AddHotKey("x", "a", "\z_quit\r")
AddHotKey("n", "c", "\z_new\r")
AddHotKey("o", "c", "\z_open\r")
AddHotKey("s", "c", "\z_save\r")
AddHotKey("p", "c", "\z_print\r")
AddHotKey("z", "c", "\z_u\r")
AddHotKey("y", "c", "\z_r\r")

;---------------------------------------------------------------
; MOUSE configuration
;---------------------------------------------------------------
[**mouse]
DefineProcedure("InitMouse", "", "MOUSE_MouseInit", "")
DefineProcedure("AddMouseEnterButton", "SS", "MOUSE_AddMouseEnterButton", "")
DefineProcedure("AddMouseSelectButton", "SS", "MOUSE_AddMouseSelectButton", "")
DefineProcedure("AddMouseButton", "SSS", "MOUSE_AddMouseButton", "")

InitMouse()

AddMouseEnterButton("RBUTTON", "")
AddMouseSelectButton("LBUTTON", "")
AddMouseButton("LBUTTON", "a", "'_help\r")
AddMouseButton("RBUTTON", "s", "'_popup\rpopup1\r")

;---------------------------------------------------------------
; Command prompt configuration
;---------------------------------------------------------------
[**command prompt]
; define procedures needed for menu creation
DefineProcedure("CommandWindowLines", "I", "TIO_CommandWindowLines", "")
DefineProcedure("BufferSize", "I", "HISTORY2_SetBufferSize", "")

CommandWindowLines(4)
BufferSize(5000)

;---------------------------------------------------------------
; BARS configuration
;---------------------------------------------------------------
[**bars]
DefineProcedure("InitBars", "", "BARS_InitBars", "")
DefineProcedure("CreateBar", "SSIIS", "BARS_CreateBar", "")
DefineProcedure("EndBar", "", "BARS_EndBar", "")
DefineProcedure("AddBarButton", "ISS", "BARS_AddBarButton", "")
DefineProcedure("AddBarButtonEx", "ISSI", "BARS_AddBarButtonEx", "")
DefineProcedure("AddBarSeparator", "", "BARS_AddBarSeparator", "")
DefineProcedure("AddBarItem", "SSSS", "BARS_AddBarItem", "")

; destroy ald button, set image size
InitBars()

CallSection("*bars-16x15")
;CallSection("*bars-32x32")

; **note**: Toolbars with AddBarItem requires at least one button, otherwise the height is wrong
CreateBar("Status", "ICON16.BMP", 16, 15, "TB")
AddBarButton(39, "\z_layerd\r", "hladina")
AddBarItem("ENTITIES.DLL", "LAYERLST_Create", "Aktu�ln� hladina", "150")
AddBarSeparator()
AddBarButton(52, "'_linetype\r_dialog\r", "typ ��ry")
AddBarItem("ENTITIES.DLL", "LTYPELST_Create", "Aktu�ln� typ ��ry", "150")
AddBarSeparator()
AddBarButton(53, "'_color\r_dialog\r", "barva")
AddBarItem("ENTITIES.DLL", "COLORLST_Create", "Barva", "100")
EndBar()

;---------------------------------------------------------------
; BARS 16x15 pixels
;---------------------------------------------------------------
[*bars-16x15]
CreateBar("Soubor", "ICON16.BMP", 16, 15, "A")
AddBarButton(0, "\z_new\r", "nov�")
AddBarButton(1, "\z_open\r", "otev��t")
AddBarButton(2, "\z_save\r", "ulo�it")
AddBarButton(3, "\z_print\r", "tisk")
AddBarSeparator()
AddBarButton(73, "\z_ccut\r", "vyjmout")
AddBarButton(74, "\z_ccopy\r", "kop�rovat")
AddBarButton(75, "\z_cpaste\r", "vlo�it")
AddBarSeparator()
AddBarButton(6, "\z_rblock\r", "na��st blok")
AddBarButton(7, "\z_wblock\r", "ulo�it blok")
AddBarSeparator()
AddBarButton(4, "\z_foto\r", "foto")
AddBarSeparator()
AddBarButton(5, "\z_purge\r", "�isti")
EndBar()

CreateBar("Kreslen�", "ICON16.BMP", 16, 15, "A")
AddBarButton(8, "\z_block\r", "definice bloku")
AddBarButton(9, "\z_insert\r", "vlo�en� bloku")
AddBarButton(85, "\z_group\r", "skupina")
AddBarSeparator()
AddBarButton(11, "\z_text\r", "text")
AddBarSeparator()
AddBarButton(12, "\z_attr\r", "atribut")
AddBarSeparator()
AddBarButton(13, "\z_line\r", "�se�ka")
AddBarButton(14, "\z_arc\r", "oblouk")
AddBarButton(15, "\z_circle\r", "kru�nice")
AddBarButton(16, "\z_solid\r", "polygon")
AddBarButton(71, "\z_hatch\r", "�raf")
AddBarSeparator()
AddBarButton(78, "\z_sketch\r", "od ruky")
AddBarSeparator()
AddBarButton(17, "\z_dimlin\r", "line�rn� k�tov�n�")
AddBarButton(67, "\z_dimrad\r", "k�tov�n� polom�ru")
AddBarButton(68, "\z_dimdia\r", "k�tov�n� pr�m�ru")
AddBarButton(69, "\z_dimarc\r", "k�tov�n� oblouku")
AddBarButton(70, "\z_dimang\r", "k�tov�n� �hl�")
AddBarButton(18, "\z_dimgroup\r", "n�vazn� k�tov�n�")
AddBarButton(79, "\z_dimhome\r", "p�vodn� pozice textu")
EndBar()

CreateBar("Zobrazen�", "ICON16.BMP", 16, 15, "A")
AddBarButton(19, "'_zoom\r", "zoom")
AddBarButton(20, "'_zoom\r2\r", "zv�t�it")
AddBarButton(21, "'_zoom\r0.5\r", "zmen�it")
AddBarButton(22, "'_zoom\r_extents\r", "zobrazit v�e")
AddBarButton(65, "'_zoom\r_previous\r", "p�edchoz� velikost")
AddBarSeparator()
AddBarButton(23, "'_pan\r", "posunut� zobrazen�")
AddBarButton(24, "'_regen\r", "obnov")
EndBar()

CreateBar("N�stroje", "ICON16.BMP", 16, 15, "A")
AddBarButton(33, "\z_erase\r", "sma�")
AddBarSeparator()
AddBarButton(25, "\z_u\r", "krok zp�t")
AddBarButton(26, "\z_r\r", "opakovat krok")
AddBarSeparator()
AddBarButton(50, "'_gridsh\r", "M��ka Ano/Ne")
AddBarButton(66, "'_grid\r\r", "P�ichytit do m��ky Ano/Ne")
AddBarButton(51, "'_ortho\r", "Orto Ano/Ne")
EndBar()

CreateBar("Modifikace", "ICON16.BMP", 16, 15, "A")
AddBarButton(27, "\z_copy\r", "kop�ruj")
AddBarButton(48, "\z_array\r", "pole")
AddBarButton(28, "\z_move\r", "posun")
AddBarButton(29, "\z_rotate\r", "oto�")
AddBarButton(30, "\z_mirror\r", "zrcadli")
AddBarButton(31, "\z_scale\r", "m���tko")
AddBarButton(81, "\z_stretch\r", "prot�hni")
AddBarSeparator()
AddBarButton(49, "\z_break\r", "rozd�l")
AddBarButton(34, "\z_trim\r", "o�e�")
AddBarButton(80, "\z_extend\r", "prodlu�")
AddBarButton(35, "\z_fillet\r", "zaobli")
AddBarButton(36, "\z_chamfer\r", "zkos")
AddBarButton(84, "\z_offset\r", "ekvidistanta")
AddBarSeparator()
AddBarButton(10, "\z_explode\r", "rozbal")
AddBarButton(32, "\z_propsd\r", "vlastnosti")
EndBar()

CreateBar("Editace", "ICON16.BMP", 16, 15, "A")
AddBarButton(37, "\z_textstyle\r", "styl textu")
AddBarButton(38, "\z_dimstyle\r", "styl k�t")
AddBarButton(72, "\z_hatchstyle\r", "styl �rafu")
AddBarSeparator()
AddBarButton(40, "\z_edit\r", "editovat")
AddBarButton(41, "\z_tedit\r", "editovat text")
AddBarButton(42, "\z_attredit\r", "editovat atribut")
AddBarButton(43, "\z_insattrd\r", "editovat atributy bloku")
EndBar()

CreateBar("Informace", "ICON16.BMP", 16, 15, "A")
AddBarButton(44, "'_list\r", "v�pis")
AddBarButton(45, "'_id\r", "identifikace bodu")
AddBarButton(46, "'_dist\r", "vzd�lenost")
AddBarSeparator()
AddBarButton(47, "'_help\r", "n�pov�da")
EndBar()

CreateBar("Filtry", "ICON16.BMP", 16, 15, "A")
AddBarButton(77, "'_sticky\r", "lep")
AddBarSeparator()
AddBarButton(54, "'_endp\r", "koncov� bod")
AddBarButton(55, "'_midp\r", "prost�edn� bod")
AddBarButton(56, "'_intp\r", "pr�se��k")
AddBarButton(57, "'_cenp\r", "st�ed")
AddBarButton(58, "'_perp\r", "kolm�")
AddBarButton(59, "'_tanp\r", "te�na")
AddBarButton(60, "'_insp\r", "bod vlo�en�")
AddBarButton(61, "'_neap\r", "nejbli��� bod")
AddBarButton(82, "'_parf\r", "rovnob�ka")
AddBarButton(64, "'_align\r", "zarovnej")
AddBarSeparator()
AddBarButton(62, "'.x\r", ".X")
AddBarButton(63, "'.y\r", ".Y")
AddBarButton(76, "'_contin\r", "prodlou�en�")
AddBarButton(83, "'_gintp\r", "zobecn�n� pr�se��k")
EndBar()

;---------------------------------------------------------------
; BARS 32x32 pixels
;---------------------------------------------------------------
[*bars-32x32]
CreateBar("Soubor", "ICON32.BMP", 32, 32, "A")
AddBarButton(0, "\z_new\r", "nov�")
AddBarButton(1, "\z_open\r", "otev��t")
AddBarButton(2, "\z_save\r", "ulo�it")
AddBarButton(3, "\z_print\r", "tisk")
AddBarSeparator()
AddBarButton(73, "\z_ccut\r", "vyjmout")
AddBarButton(74, "\z_ccopy\r", "kop�rovat")
AddBarButton(75, "\z_cpaste\r", "vlo�it")
AddBarSeparator()
AddBarButton(6, "\z_rblock\r", "na��st blok")
AddBarButton(7, "\z_wblock\r", "ulo�it blok")
AddBarSeparator()
AddBarButton(4, "\z_foto\r", "foto")
AddBarSeparator()
AddBarButton(5, "\z_purge\r", "�isti")
EndBar()

CreateBar("Kreslen�", "ICON32.BMP", 32, 32, "A")
AddBarButton(8, "\z_block\r", "definice bloku")
AddBarButton(9, "\z_insert\r", "vlo�en� bloku")
AddBarButton(85, "\z_group\r", "skupina")
AddBarSeparator()
AddBarButton(11, "\z_text\r", "text")
AddBarSeparator()
AddBarButton(12, "\z_attr\r", "atribut")
AddBarSeparator()
AddBarButton(13, "\z_line\r", "�se�ka")
AddBarButton(14, "\z_arc\r", "oblouk")
AddBarButton(15, "\z_circle\r", "kru�nice")
AddBarButton(16, "\z_solid\r", "polygon")
AddBarButton(71, "\z_hatch\r", "�raf")
AddBarSeparator()
AddBarButton(78, "\z_sketch\r", "od ruky")
AddBarSeparator()
AddBarButton(17, "\z_dimlin\r", "line�rn� k�tov�n�")
AddBarButton(67, "\z_dimrad\r", "k�tov�n� polom�ru")
AddBarButton(68, "\z_dimdia\r", "k�tov�n� pr�m�ru")
AddBarButton(69, "\z_dimarc\r", "k�tov�n� oblouku")
AddBarButton(70, "\z_dimang\r", "k�tov�n� �hl�")
AddBarButton(18, "\z_dimgroup\r", "n�vazn� k�tov�n�")
AddBarButton(79, "\z_dimhome\r", "p�vodn� pozice textu")
EndBar()

CreateBar("Zobrazen�", "ICON32.BMP", 32, 32, "A")
AddBarButton(19, "'_zoom\r", "zoom")
AddBarButton(20, "'_zoom\r2\r", "zv�t�it")
AddBarButton(21, "'_zoom\r0.5\r", "zmen�it")
AddBarButton(22, "'_zoom\r_extents\r", "zobrazit v�e")
AddBarButton(65, "'_zoom\r_previous\r", "p�edchoz� velikost")
AddBarSeparator()
AddBarButton(23, "'_pan\r", "posunut� zobrazen�")
AddBarButton(24, "'_regen\r", "obnov")
EndBar()

CreateBar("N�stroje", "ICON32.BMP", 32, 32, "A")
AddBarButton(33, "\z_erase\r", "sma�")
AddBarSeparator()
AddBarButton(25, "\z_u\r", "krok zp�t")
AddBarButton(26, "\z_r\r", "opakovat krok")
AddBarSeparator()
AddBarButton(50, "'_gridsh\r", "M��ka Ano/Ne")
AddBarButton(66, "'_grid\r\r", "P�ichytit do m��ky Ano/Ne")
AddBarButton(51, "'_ortho\r", "Orto Ano/Ne")
EndBar()

CreateBar("Modifikace", "ICON32.BMP", 32, 32, "A")
AddBarButton(27, "\z_copy\r", "kop�ruj")
AddBarButton(48, "\z_array\r", "pole")
AddBarButton(28, "\z_move\r", "posun")
AddBarButton(29, "\z_rotate\r", "oto�")
AddBarButton(30, "\z_mirror\r", "zrcadli")
AddBarButton(31, "\z_scale\r", "m���tko")
AddBarButton(81, "\z_stretch\r", "prot�hni")
AddBarSeparator()
AddBarButton(49, "\z_break\r", "rozd�lit")
AddBarButton(34, "\z_trim\r", "zkr�tit")
AddBarButton(80, "\z_extend\r", "prodlu�")
AddBarButton(35, "\z_fillet\r", "zaoblit")
AddBarButton(36, "\z_chamfer\r", "zkosit")
AddBarButton(84, "\z_offset\r", "ekvidistanta")
AddBarSeparator()
AddBarButton(10, "\z_explode\r", "rozbalit")
AddBarButton(32, "\z_propsd\r", "vlastnosti")
EndBar()

CreateBar("Editace", "ICON32.BMP", 32, 32, "A")
AddBarButton(37, "\z_textstyle\r", "styl textu")
AddBarButton(38, "\z_dimstyle\r", "styl k�t")
AddBarButton(72, "\z_hatchstyle\r", "styl �rafu")
AddBarSeparator()
AddBarButton(40, "\z_edit\r", "editovat")
AddBarButton(41, "\z_tedit\r", "editovat text")
AddBarButton(42, "\z_attredit\r", "editovat atribut")
AddBarButton(43, "\z_insattrd\r", "editovat atributy bloku")
EndBar()

CreateBar("Informace", "ICON32.BMP", 32, 32, "A")
AddBarButton(44, "'_list\r", "v�pis")
AddBarButton(45, "'_id\r", "identifikace bodu")
AddBarButton(46, "'_dist\r", "vzd�lenost")
AddBarSeparator()
AddBarButton(47, "'_help\r", "n�pov�da")
EndBar()

CreateBar("Filtry", "ICON32.BMP", 32, 32, "A")
AddBarButton(77, "'_sticky\r", "lep")
AddBarSeparator()
AddBarButton(54, "'_endp\r", "koncov� bod")
AddBarButton(55, "'_midp\r", "prost�edn� bod")
AddBarButton(56, "'_intp\r", "pr�se��k")
AddBarButton(57, "'_cenp\r", "st�ed")
AddBarButton(58, "'_perp\r", "kolm�")
AddBarButton(59, "'_tanp\r", "te�na")
AddBarButton(60, "'_insp\r", "bod vlo�en�")
AddBarButton(61, "'_neap\r", "nejbli��� bod")
AddBarButton(82, "'_parf\r", "rovnob�ka")
AddBarButton(64, "'_align\r", "zarovnej")
AddBarSeparator()
AddBarButton(62, "'.x\r", ".X")
AddBarButton(63, "'.y\r", ".Y")
AddBarButton(76, "'_contin\r", "prodlou�en�")
AddBarButton(83, "'_gintp\r", "zobecn�n� pr�se��k")
EndBar()

;---------------------------------------------------------------
; PICTURE configuration
;---------------------------------------------------------------
[**picture]
; define procedure needed for picture initialization
DefineProcedure("PictureRegisterExtension", "SS", "PICTURE_set_extensions", "picture.dll")
; and use the procedure
PictureRegisterExtension("PICBMP","BMP DIB")
PictureRegisterExtension("PICJPEG","JPEG JFIF JPE JPG")
PictureRegisterExtension("PICPCX","PCX")
PictureRegisterExtension("PICPNG","PNG")
PictureRegisterExtension("PICTIFF","TIF TIFF")
