; =========================================================
; This file was generated by NSISDialogDesigner 1.6.0.0
; https://coolsoft.altervista.org/nsisdialogdesigner
;
; Do not edit it manually, use NSISDialogDesigner instead!
; =========================================================

; handle variables
Var hCtl_cma
Var hCtl_cma_reverse_help
Var hCtl_cma_reverse_help_hImage
Var hCtl_cma_endpoint_help
Var hCtl_cma_endpoint_help_hImage
Var hCtl_cma_hostname_help
Var hCtl_cma_hostname_help_hImage
Var hCtl_cma_endpoint_label
Var hCtl_cma_host_name
Var hCtl_cma_endpoint
Var hCtl_cma_reverse
Var hCtl_cma_Label15


; dialog create function
Function fnc_cma_Create
  
  ; === cma (type: Dialog) ===
  nsDialogs::Create 1018
  Pop $hCtl_cma
  ${If} $hCtl_cma == error
    Abort
  ${EndIf}
  !insertmacro MUI_HEADER_TEXT "Centreon Monitoring Agent" "Agent Configuration"
  
  ; === reverse_help (type: Bitmap) ===
  ${NSD_CreateBitmap} 105u 45u 12u 11u ""
  Pop $hCtl_cma_reverse_help
  ${NSD_OnClick} $hCtl_cma_reverse_help reverse_help_onClick
  File "/oname=$PLUGINSDIR\info.bmp" "resources\info.bmp"
  ${NSD_SetImage} $hCtl_cma_reverse_help "$PLUGINSDIR\info.bmp" $hCtl_cma_reverse_help_hImage
  
  ; === endpoint_help (type: Bitmap) ===
  ${NSD_CreateBitmap} 213u 19u 12u 11u ""
  Pop $hCtl_cma_endpoint_help
  ${NSD_OnClick} $hCtl_cma_endpoint_help endpoint_help_onClick
  File "/oname=$PLUGINSDIR\info.bmp" "resources\info.bmp"
  ${NSD_SetImage} $hCtl_cma_endpoint_help "$PLUGINSDIR\info.bmp" $hCtl_cma_endpoint_help_hImage
  
  ; === hostname_help (type: Bitmap) ===
  ${NSD_CreateBitmap} 213u 2u 12u 11u ""
  Pop $hCtl_cma_hostname_help
  ${NSD_OnClick} $hCtl_cma_hostname_help hostname_help_onClick
  File "/oname=$PLUGINSDIR\info.bmp" "resources\info.bmp"
  ${NSD_SetImage} $hCtl_cma_hostname_help "$PLUGINSDIR\info.bmp" $hCtl_cma_hostname_help_hImage
  
  ; === endpoint_label (type: Label) ===
  ${NSD_CreateLabel} 8u 20u 65u 10u "Poller endpoint:"
  Pop $hCtl_cma_endpoint_label
  
  ; === host_name (type: Text) ===
  ${NSD_CreateText} 85u 1u 124u 12u ""
  Pop $hCtl_cma_host_name
  
  ; === endpoint (type: Text) ===
  ${NSD_CreateText} 85u 18u 124u 12u ""
  Pop $hCtl_cma_endpoint
  
  ; === reverse (type: Checkbox) ===
  ${NSD_CreateCheckbox} 8u 42u 103u 15u "Poller-initiated connection"
  Pop $hCtl_cma_reverse
  ${NSD_OnClick} $hCtl_cma_reverse reverse_onClick
  
  ; === Label15 (type: Label) ===
  ${NSD_CreateLabel} 8u 3u 84u 12u "Host name in Centreon:"
  Pop $hCtl_cma_Label15
  
  ; CreateFunctionCustomScript
  Call init_setup_dlg
  
  
FunctionEnd

; dialog show function
Function fnc_cma_Show
  Call fnc_cma_Create
  nsDialogs::Show
FunctionEnd
