;
; This code is automatically generated by the FormDesigner.
; Manual modification is possible to adjust existing commands, but anything else will be dropped when the code is compiled.
; Event procedures needs to be put in another source file.
;

Global winMain

Global PanelContainer, cJSON, cXML, tVersion, sVersion, bOutput, bInput, tOutput, tInput, sOutputPath, bCSVconvert, sCSVpath, tCSVexplanation, CreditsEditor, LicenseEditor, iLogo


Procedure OpenwinMain(x = 0, y = 0, width = 600, height = 400)
  winMain = OpenWindow(#PB_Any, x, y, width, height, "Polyglot Tool", #PB_Window_SystemMenu | #PB_Window_TitleBar | #PB_Window_ScreenCentered)
  PanelContainer = PanelGadget(#PB_Any, 10, 50, 580, 340)
  AddGadgetItem(PanelContainer, -1, " CSV Converter ")
  cJSON = CheckBoxGadget(#PB_Any, 440, 220, 60, 25, "JSON")
  cXML = CheckBoxGadget(#PB_Any, 510, 220, 50, 25, "XML")
  SetGadgetState(cXML, #PB_Checkbox_Checked)
  tVersion = TextGadget(#PB_Any, 10, 145, 100, 25, "", #PB_Text_Right)
  sVersion = StringGadget(#PB_Any, 120, 140, 130, 25, "", #PB_String_Numeric)
  bOutput = ButtonGadget(#PB_Any, 440, 110, 120, 25, "")
  bInput = ButtonGadget(#PB_Any, 440, 80, 120, 25, "")
  tOutput = TextGadget(#PB_Any, 10, 115, 100, 25, "", #PB_Text_Right)
  tInput = TextGadget(#PB_Any, 10, 85, 100, 25, "", #PB_Text_Right)
  sOutputPath = StringGadget(#PB_Any, 120, 110, 310, 25, "")
  bCSVconvert = ButtonGadget(#PB_Any, 380, 260, 180, 28, "")
  sCSVpath = StringGadget(#PB_Any, 120, 80, 310, 25, "")
  tCSVexplanation = TextGadget(#PB_Any, 10, 20, 550, 38, "")
  AddGadgetItem(PanelContainer, -1, " Credits ")
  CreditsEditor = EditorGadget(#PB_Any, 10, 10, 550, 298, #PB_Editor_ReadOnly | #PB_Editor_WordWrap)
  AddGadgetItem(PanelContainer, -1, " License ")
  LicenseEditor = EditorGadget(#PB_Any, 10, 10, 550, 298, #PB_Editor_ReadOnly | #PB_Editor_WordWrap)
  CloseGadgetList()
  iLogo = ImageGadget(#PB_Any, 320, 10, 271, 40, 0)
EndProcedure


; IDE Options = PureBasic 5.24 LTS (MacOS X - x64)
; CursorPosition = 20
; Folding = -
; EnableUnicode
; EnableXP