# Gambas Form File 3.0

{ Form Form
  MoveScaled(0,0,102,72)
  Text = ("Import file")
  Icon = Picture["icon:/medium/open"]
  Arrangement = Arrange.Fill
  Spacing = True
  Margin = True
  { wizImport Wizard
    MoveScaled(1,1,98,69)
    Arrangement = Arrange.Fill
    Count = 4
    TextFont = Font["Bold,+2"]
    ShowIndex = True
    Border = False
    ActionText = ("Import")
    ActionPicture = Picture["icon:/small/open"]
    Index = 0
    Text = ("Select the CSV file to import")
    { fchImport FileChooser
      MoveScaled(1,1,94,54)
      ReadOnly = True
    }
    Index = 1
    Text = ("Options")
    { Panel3 VBox
      MoveScaled(1,1,84,51)
      Spacing = True
      Margin = True
      { Label8 Label
        MoveScaled(0,0,36,3)
        Font = Font["Bold"]
        Text = ("Source")
      }
      { HPanel1 HPanel
        MoveScaled(2,4,73,29)
        Spacing = True
        Indent = True
        { Label6 Label
          MoveScaled(0,0,28,3)
          Text = ("Charset")
        }
        { cmbCharset ComboBox
          MoveScaled(29,0,31,4)
          #Translate = False
          List = ["UTF-8", "ISO 8859-1", "ISO 8859-15", "WINDOWS-1252"]
        }
        { Spring1 Spring
          MoveScaled(62,1,3,1)
        }
        { Label7 Label
          MoveScaled(0,5,28,3)
          Text = ("End of line")
        }
        { cmbEndOfLine ComboBox
          MoveScaled(29,5,31,4)
          #Translate = False
          ReadOnly = True
          List = ["Unix", "Windows", "Mac"]
        }
        { Spring2 Spring
          MoveScaled(62,6,3,1)
        }
        { Label2 Label
          MoveScaled(0,10,28,3)
          Text = ("Delimiter character")
        }
        { cmbDelim ComboBox
          MoveScaled(29,10,31,4)
          #Translate = False
          List = ["Tab", "Space", ",", ";", ":"]
        }
        { Spring3 Spring
          MoveScaled(62,11,3,1)
        }
        { Label3 Label
          MoveScaled(0,15,28,3)
          Text = ("Enclose character")
        }
        { cmbEscape ComboBox
          MoveScaled(29,15,31,4)
          #Translate = False
          List = ["", "'", "\""]
        }
        { Spring4 Spring
          MoveScaled(62,15,3,1)
        }
        { chkStrip CheckBox
          MoveScaled(0,19,47,4)
          Expand = True
          Text = ("Strip useless white spaces")
        }
        { Label4 Label
          MoveScaled(0,24,28,3)
          Text = ("Ignore first lines")
        }
        { txtIgnore SpinBox
          MoveScaled(29,24,9,4)
        }
        { Label10 Label
          MoveScaled(39,24,7,3)
          Expand = True
          Text = ("Line(s)")
        }
      }
      { Label9 Label
        MoveScaled(0,33,36,3)
        Font = Font["Bold"]
        Text = ("Destination")
      }
      { HPanel2 HPanel
        MoveScaled(0,36,62,14)
        Spacing = True
        Indent = True
        { Label1 Label
          MoveScaled(0,0,16,4)
          Text = ("Table")
        }
        { cmbTable ComboBox
          MoveScaled(16,0,44,4)
          Expand = True
        }
        { Panel2 Panel
          MoveScaled(0,5,16,3)
        }
        { chkFirstLine CheckBox
          MoveScaled(16,5,35,3)
          Expand = True
          Text = ("The first line contains field names")
        }
        { Label5 Label
          MoveScaled(0,10,16,3)
          Text = ("Key field")
        }
        { cmbKey ComboBox
          MoveScaled(16,10,44,4)
          Enabled = False
          Expand = True
          ReadOnly = True
        }
      }
    }
    Index = 2
    Text = ("Preview")
    { gvwPreview GridView
      MoveScaled(2,3,79,47)
      Header = GridView.Both
    }
    Index = 3
    Text = ("Import")
    { gvwMessage GridView
      MoveScaled(1,1,59,49)
    }
    { spnImport Spinner
      MoveScaled(66,24,18,20)
      Ignore = True
      Label = True
      Type = Spinner.Circle
    }
    Index = 0
  }
}
