# Gambas Form File 3.0

{ Form Form
  MoveScaled(0,0,151,92)
  Arrangement = Arrange.Vertical
  Spacing = True
  { panToolBar ToolBar
    MoveScaled(1,1,116,4)
    Key = "connection"
    Text = ("Connection editor")
    Border = True
    Separator = True
    { btnTitle ToolButton
      MoveScaled(0,0,7,4)
      Action = ".database"
      AutoResize = True
      Picture = Picture["icon:/small/database"]
    }
    { btnShowSystem ToolButton
      MoveScaled(7,0,4,4)
      ToolTip = ("Show system tables")
      Action = ".show-system"
      Picture = Picture["icon:/medium/program"]
      Toggle = True
    }
    { Separator3 Separator
      MoveScaled(14,0,0,4)
    }
    { btnNewTable ToolButton
      MoveScaled(16,0,16,4)
      ToolTip = ("New table")
      Action = ".new-table"
      AutoResize = True
      Text = ("New table") & "..."
      Picture = Picture["icon:/small/insert-table"]
    }
    { btnSave ToolButton mnuSave
      Name = "btnSave"
      MoveScaled(33,0,4,4)
      ToolTip = ("Save")
      Action = ".save"
      Picture = Picture["icon:/small/save"]
    }
    { btnReload ToolButton mnuReload
      Name = "btnReload"
      MoveScaled(37,0,4,4)
      ToolTip = ("Reload")
      Action = ".reload"
      Picture = Picture["icon:/small/refresh"]
    }
    { Separator4 Separator
      MoveScaled(42,0,0,4)
    }
    { btnKill ToolButton
      MoveScaled(45,0,11,4)
      ToolTip = ("Delete table")
      Action = ".remove-table"
      AutoResize = True
      Text = ("Remove")
      Picture = Picture["icon:/small/delete"]
    }
    { btnRename ToolButton
      MoveScaled(56,0,11,4)
      ToolTip = ("Rename table")
      Action = ".rename-table"
      AutoResize = True
      Text = ("Rename") & "..."
      Picture = Picture["icon:/small/edit"]
    }
    { btnCopyTable ToolButton
      MoveScaled(69,0,8,4)
      ToolTip = ("Copy table")
      Action = ".copy-table"
      AutoResize = True
      Text = ("Copy")
      Picture = Picture["icon:/small/copy"]
    }
    { btnPasteTable ToolButton
      MoveScaled(79,0,10,4)
      ToolTip = ("Paste table")
      Action = ".paste-table"
      AutoResize = True
      Text = ("Paste") & "..."
      Picture = Picture["icon:/small/paste"]
    }
    { btnImport ToolButton
      MoveScaled(89,0,12,4)
      ToolTip = ("Import text file")
      Action = ".import-table"
      AutoResize = True
      Text = ("Import") & "..."
      Picture = Picture["icon:/small/open"]
    }
  }
  { HBox1 HBox
    MoveScaled(2,12,148,79)
    Expand = True
    { spnTable SidePanel
      MoveScaled(1,1,37,73)
      Arrangement = Arrange.Vertical
      Orientation = Align.Left
      ShowButtons = False
      { lvwTable TreeView
        MoveScaled(5,22,22,26)
        Background = Color.TextBackground
        Expand = True
      }
    }
    { VBox1 VBox
      MoveScaled(39,1,108,77)
      Expand = True
      { splTable VSplit
        MoveScaled(1,1,106,72)
        Expand = True
        Spacing = True
        Border = False
        { panTable Panel
          MoveScaled(3,2,89,35)
          Arrangement = Arrange.Fill
          Spacing = True
          { panRequest VBox
            MoveScaled(56,13,80,24)
            Visible = False
            Background = Color.Background
            Spacing = True
            { tlbData2 ToolBar
              MoveScaled(2,0,75,4)
              Key = "connection-query"
              ReadOnly = True
              Border = True
              Separator = True
              { btnRunQuery ToolButton
                MoveScaled(0,0,12,4)
                Action = ".run-query"
                AutoResize = True
                Text = ("Run query")
                Picture = Picture["icon:/small/play"]
              }
              { btnAddQuery ToolButton
                MoveScaled(12,0,8,4)
                ToolTip = ("New query")
                Action = ".new-query"
                AutoResize = True
                Text = ("New")
                Picture = Picture["icon:/small/new"]
              }
              { btnRemoveQuery ToolButton
                MoveScaled(20,0,11,4)
                ToolTip = ("Remove query")
                Action = ".remove-query"
                AutoResize = True
                Text = ("Remove")
                Picture = Picture["icon:/small/remove"]
              }
              { btnClear ToolButton
                MoveScaled(32,0,4,4)
                ToolTip = ("Clear")
                Action = ".clear-query"
                Picture = Picture["icon:/small/clear"]
              }
              { btnCut ToolButton mnuCut
                Name = "btnCut"
                MoveScaled(36,0,4,4)
                ToolTip = ("Cut")
                Action = ".cut-query"
                Picture = Picture["icon:/small/cut"]
              }
              { btnCopy ToolButton mnuCopy
                Name = "btnCopy"
                MoveScaled(40,0,4,4)
                ToolTip = ("Copy")
                Action = ".copy-query"
                Picture = Picture["icon:/small/copy"]
              }
              { btnPaste ToolButton mnuPaste
                Name = "btnPaste"
                MoveScaled(44,0,4,4)
                ToolTip = ("Paste")
                Action = ".paste-query"
                Picture = Picture["icon:/small/paste"]
              }
              { btnUndo ToolButton mnuUndo
                Name = "btnUndo"
                MoveScaled(48,0,4,4)
                ToolTip = ("Undo")
                Action = ".undo-query"
                Picture = Picture["icon:/small/undo"]
              }
              { btnRedo ToolButton mnuRedo
                Name = "btnRedo"
                MoveScaled(52,0,4,4)
                ToolTip = ("Redo")
                Action = ".redo-query"
                Picture = Picture["icon:/small/redo"]
              }
              { Spring1 Spring
                MoveScaled(58,1,5,2)
              }
            }
            { tabRequest TabPanel
              MoveScaled(3,5,33,7)
              Border = False
              Separator = False
              Index = 0
              Text = ("")
              Index = 0
            }
            { edtRequest TextEditor
              MoveScaled(16,12,40,7)
              Expand = True
              Highlight = "SQL"
              Mode = "SQL"
              Wrap = True
            }
          }
          { tabTable TabPanel
            MoveScaled(2,6,75,26)
            Visible = False
            Expand = True
            Arrangement = Arrange.Vertical
            Border = False
            Count = 3
            Separator = False
            Index = 0
            Text = ("Fields")
            { tlbField ToolBar
              MoveScaled(1,1,65,4)
              Key = "connection-table"
              ReadOnly = True
              Border = True
              { btnSaveTable ToolButton
                MoveScaled(0,0,9,4)
                Visible = False
                Action = ".save-table"
                AutoResize = True
                Text = ("Save")
                Picture = Picture["icon:/medium/save"]
              }
              { btnNewField ToolButton
                MoveScaled(9,0,8,4)
                Action = ".add-field"
                AutoResize = True
                Text = ("Add")
                Picture = Picture["icon:/small/add"]
              }
              { btnKillField ToolButton
                MoveScaled(17,0,12,4)
                Action = ".remove-field"
                AutoResize = True
                Text = ("Remove")
                Picture = Picture["icon:/small/remove"]
              }
              { btnDownField ToolButton
                MoveScaled(28,0,9,4)
                Action = ".move-field-down"
                AutoResize = True
                Text = ("Down")
                Picture = Picture["icon:/small/down"]
              }
              { btnUpField ToolButton
                MoveScaled(37,0,7,4)
                Action = ".move-field-up"
                AutoResize = True
                Text = ("Up")
                Picture = Picture["icon:/small/up"]
              }
              { btnCopyFieldList ToolButton
                MoveScaled(44,0,18,4)
                ToolTip = ("Copy")
                Action = ".copy-field-list"
                AutoResize = True
                Text = ("Copy field list")
                Picture = Picture["icon:/small/copy"]
              }
            }
            { tbvField TableView
              MoveScaled(1,7,55,13)
              Expand = True
              Mode = Select.Single
              Padding = 4
              Header = GridView.Horizontal
            }
            Index = 1
            Text = ("Indexes")
            { tlbIndex ToolBar
              MoveScaled(1,1,63,4)
              Key = "connection-index"
              ReadOnly = True
              Border = True
              { btnSaveTable2 ToolButton btnSaveTable
                Name = "btnSaveTable2"
                MoveScaled(0,0,9,4)
                Visible = False
                Action = ".save-index"
                AutoResize = True
                Text = ("Save")
                Picture = Picture["icon:/small/save"]
              }
              { btnNewIndex ToolButton
                MoveScaled(9,0,14,4)
                Action = ".new-index"
                AutoResize = True
                Text = ("New index")
                Picture = Picture["icon:/medium/index"]
              }
              { btnNewIndexField ToolButton
                MoveScaled(23,0,8,4)
                Action = ".add-index"
                AutoResize = True
                Text = ("Add")
                Picture = Picture["icon:/small/add"]
              }
              { btnKillIndex ToolButton
                MoveScaled(31,0,12,4)
                Action = ".remove-index"
                AutoResize = True
                Text = ("Remove")
                Picture = Picture["icon:/small/remove"]
              }
              { btnDownIndex ToolButton
                MoveScaled(42,0,10,4)
                Action = ".move-index-down"
                AutoResize = True
                Text = ("Down")
                Picture = Picture["icon:/small/down"]
              }
              { btnUpIndex ToolButton
                MoveScaled(51,0,8,4)
                Action = ".move-index-up"
                AutoResize = True
                Text = ("Up")
                Picture = Picture["icon:/small/up"]
              }
            }
            { tbvIndex TableView
              MoveScaled(1,7,61,14)
              Expand = True
              Mode = Select.Single
              Padding = 4
              Header = GridView.Horizontal
            }
            Index = 2
            Text = ("Foreign keys")
            { tlbForeignKey ToolBar
              MoveScaled(0,0,71,4)
              Key = "connection-fkey"
              ReadOnly = True
              Border = True
              { btnSaveTable3 ToolButton btnSaveTable
                Name = "btnSaveTable3"
                MoveScaled(0,0,9,4)
                Visible = False
                Action = ".save-fkey"
                AutoResize = True
                Text = ("Save")
                Picture = Picture["icon:/small/save"]
              }
              { btnNewForeignKey ToolButton
                MoveScaled(9,0,19,4)
                Action = ".new-fkey"
                AutoResize = True
                Text = ("New foreign key")
                Picture = Picture["icon:/medium/key"]
              }
              { btnAddForeignKeyField ToolButton
                MoveScaled(32,0,8,4)
                Action = ".add-fkey"
                AutoResize = True
                Text = ("Add")
                Picture = Picture["icon:/small/add"]
              }
              { btnKillForeignKey ToolButton
                MoveScaled(40,0,12,4)
                Action = ".remove-fkey"
                AutoResize = True
                Text = ("Remove")
                Picture = Picture["icon:/small/remove"]
              }
              { btnDownForeignKey ToolButton
                MoveScaled(51,0,10,4)
                Action = ".move-fkey-down"
                AutoResize = True
                Text = ("Down")
                Picture = Picture["icon:/small/down"]
              }
              { btnUpForeignKey ToolButton
                MoveScaled(60,0,8,4)
                Action = ".move-fkey-up"
                AutoResize = True
                Text = ("Up")
                Picture = Picture["icon:/small/up"]
              }
            }
            { tbvForeignKey TableView
              MoveScaled(1,6,61,14)
              Expand = True
              Mode = Select.Single
              Padding = 4
              Header = GridView.Horizontal
            }
            Index = 0
          }
        }
        { panData Panel
          MoveScaled(2,39,103,31)
          Arrangement = Arrange.Fill
          { datData DataSource
            MoveScaled(1,1,101,20)
            Arrangement = Arrange.Vertical
            { tlbData ToolBar
              MoveScaled(3,2,97,4)
              Key = "connection-data"
              ReadOnly = True
              Border = True
              Separator = True
              { btnEditData ToolButton
                MoveScaled(0,0,7,4)
                Action = ".edit-data"
                AutoResize = True
                Text = ("Edit")
                Picture = Picture["icon:/small/edit"]
                Toggle = True
              }
              { btnExportData ToolButton
                MoveScaled(8,0,11,4)
                ToolTip = ("Export to CSV file")
                Action = ".export-data"
                AutoResize = True
                Text = ("Export") & "..."
                Picture = Picture["icon:/small/save-as"]
              }
              { btnSaveData ToolButton
                MoveScaled(19,0,9,4)
                Enabled = False
                Action = ".save-data"
                AutoResize = True
                Text = ("Save")
                Picture = Picture["icon:/small/save"]
              }
              { btnAddData ToolButton
                MoveScaled(28,0,8,4)
                Enabled = False
                Action = ".add-data"
                AutoResize = True
                Text = ("Add")
                Picture = Picture["icon:/small/add"]
              }
              { btnRemoveData ToolButton
                MoveScaled(36,0,10,4)
                Enabled = False
                Action = ".delete-data"
                AutoResize = True
                Text = ("Delete")
                Picture = Picture["icon:/small/remove"]
              }
              { btnSelectAll ToolButton
                MoveScaled(47,0,12,4)
                Action = ".select-all-data"
                AutoResize = True
                Text = ("Select all")
                Picture = Picture["icon:/small/select-all"]
              }
              { btnUnselectAll ToolButton
                MoveScaled(59,0,12,4)
                Action = ".unselect-all-data"
                AutoResize = True
                Text = ("Unselect all")
                Picture = Picture["icon:/small/undo"]
              }
              { lblCount Label
                MoveScaled(84,0,10,4)
                Expand = True
                Alignment = Align.Right
              }
            }
            { dvwData DataView
              MoveScaled(6,8,46,11)
              Background = Color.TextBackground
              Expand = True
              Mode = Select.Multiple
              Grid = True
            }
          }
          { datRequest DataSource
            MoveScaled(2,22,66,26)
            Visible = False
            Arrangement = Arrange.Vertical
            { tlbData3 ToolBar
              MoveScaled(2,1,61,4)
              Key = "connection-export"
              ReadOnly = True
              Border = True
              Separator = True
              { btnExportRequest ToolButton
                MoveScaled(0,0,12,4)
                ToolTip = ("Export to CSV file")
                Action = ".export-request"
                AutoResize = True
                Text = ("Export") & "..."
                Picture = Picture["icon:/small/save-as"]
              }
            }
            { dvwRequest DataView
              MoveScaled(9,6,46,17)
              Background = Color.TextBackground
              Expand = True
              Mode = Select.Multiple
              Grid = True
            }
          }
        }
      }
    }
  }
}

# Gambas Action File 3.0

{ Actions
  { Action add-data
    Text = "Add"
    Picture = "icon:/small/add"
  }
  { Action add-field
    Text = "Add"
    Picture = "icon:/small/add"
  }
  { Action add-fkey
    Text = "Add"
    Picture = "icon:/small/add"
  }
  { Action add-index
    Text = "Add"
    Picture = "icon:/small/add"
  }
  { Action clear-query
    Text = "Clear"
    Picture = "icon:/small/clear"
  }
  { Action copy-field-list
    Text = "Copy field list"
    Picture = "icon:/small/copy"
  }
  { Action copy-query
    Text = "Copy"
    Picture = "icon:/small/copy"
  }
  { Action copy-table
    Text = "Copy"
    Picture = "icon:/small/copy"
  }
  { Action cut-query
    Text = "Cut"
    Picture = "icon:/small/cut"
  }
  { Action database
    Text = ""
    Picture = "icon:/small/database"
  }
  { Action delete-data
    Text = "Delete"
    Picture = "icon:/small/remove"
  }
  { Action edit-data
    Text = "Edit"
    Picture = "icon:/small/edit"
  }
  { Action export-data
    Text = "Export"
    Picture = "icon:/small/save-as"
  }
  { Action export-request
    Text = "Export"
    Picture = "icon:/small/save-as"
  }
  { Action import-table
    Text = "Import"
    Picture = "icon:/small/open"
  }
  { Action move-field-down
    Text = "Down"
    Picture = "icon:/small/down"
  }
  { Action move-field-up
    Text = "Up"
    Picture = "icon:/small/up"
  }
  { Action move-fkey-down
    Text = "Down"
    Picture = "icon:/small/down"
  }
  { Action move-fkey-up
    Text = "Up"
    Picture = "icon:/small/up"
  }
  { Action move-index-down
    Text = "Down"
    Picture = "icon:/small/down"
  }
  { Action move-index-up
    Text = "Up"
    Picture = "icon:/small/up"
  }
  { Action new-fkey
    Text = "New foreign key"
    Picture = "icon:/medium/key"
  }
  { Action new-index
    Text = "New index"
    Picture = "icon:/medium/index"
  }
  { Action new-query
    Text = "New"
    Picture = "icon:/small/new"
  }
  { Action new-table
    Text = "New table"
    Picture = "icon:/small/insert-table"
  }
  { Action paste-query
    Text = "Paste"
    Picture = "icon:/small/paste"
  }
  { Action paste-table
    Text = "Paste"
    Picture = "icon:/small/paste"
  }
  { Action redo-query
    Text = "Redo"
    Picture = "icon:/small/redo"
  }
  { Action reload
    Text = "Reload"
    Picture = "icon:/small/refresh"
  }
  { Action remove-field
    Text = "Remove"
    Picture = "icon:/small/remove"
  }
  { Action remove-fkey
    Text = "Remove"
    Picture = "icon:/small/remove"
  }
  { Action remove-index
    Text = "Remove"
    Picture = "icon:/small/remove"
  }
  { Action remove-query
    Text = "Remove"
    Picture = "icon:/small/remove"
  }
  { Action remove-table
    Text = "Remove"
    Picture = "icon:/small/delete"
  }
  { Action rename-table
    Text = "Rename"
    Picture = "icon:/small/edit"
  }
  { Action run-query
    Text = "Run query"
    Picture = "icon:/small/play"
  }
  { Action save
    Text = "Save"
    Picture = "icon:/small/save"
  }
  { Action save-data
    Text = "Save"
    Picture = "icon:/small/save"
  }
  { Action save-fkey
    Text = "Save"
    Picture = "icon:/small/save"
  }
  { Action save-index
    Text = "Save"
    Picture = "icon:/small/save"
  }
  { Action save-table
    Text = "Save"
    Picture = "icon:/medium/save"
  }
  { Action select-all-data
    Text = "Select all"
    Picture = "icon:/small/select-all"
  }
  { Action show-system
    Text = "Show system tables"
    Picture = "icon:/medium/program"
  }
  { Action undo-query
    Text = "Undo"
    Picture = "icon:/small/undo"
  }
  { Action unselect-all-data
    Text = "Unselect all"
    Picture = "icon:/small/undo"
  }
}

{ Toolbars
  { Toolbar connection
    Text = "Connection editor"
    List = "database,show-system,new-table,save,reload,remove-table,rename-table,copy-table,paste-table,import-table"
    Default = "database,show-system,|,new-table,save,reload,|,remove-table,rename-table,copy-table,paste-table,import-table"
  }
  { Toolbar connection-data
    Text = ""
    List = "edit-data,export-data,save-data,add-data,delete-data,select-all-data,unselect-all-data"
    Default = "edit-data,export-data,save-data,add-data,delete-data,select-all-data,unselect-all-data,$lblCount"
  }
  { Toolbar connection-export
    Text = ""
    List = "export-request"
    Default = "export-request"
  }
  { Toolbar connection-fkey
    Text = ""
    List = "save-fkey,new-fkey,add-fkey,remove-fkey,move-fkey-down,move-fkey-up"
    Default = "new-fkey,add-fkey,remove-fkey,move-fkey-down,move-fkey-up"
  }
  { Toolbar connection-index
    Text = ""
    List = "save-index,new-index,add-index,remove-index,move-index-down,move-index-up"
    Default = "new-index,add-index,remove-index,move-index-down,move-index-up"
  }
  { Toolbar connection-query
    Text = ""
    List = "run-query,new-query,remove-query,clear-query,cut-query,copy-query,paste-query,undo-query,redo-query"
    Default = "run-query,new-query,remove-query,clear-query,cut-query,copy-query,paste-query,undo-query,redo-query,~"
  }
  { Toolbar connection-table
    Text = ""
    List = "save-table,add-field,remove-field,move-field-down,move-field-up,copy-field-list"
    Default = "add-field,remove-field,move-field-down,move-field-up,copy-field-list"
  }
}
