#
# Setup for GUI-preferences
#

# --- Description of the data to access -----------------------------------------
[Data]
Table    =
Order    =

UpdFields =
QryFields =

IdField   = dummy

[Cache]
Timeout = 0

# --- Configuring the browser here ----------------------------------------------
[Browser]
MaxRows = 1

# --- General header for WWWdb --------------------------------------------------
[Header]
Title = Setup of user-preferences for the WWWdb-gui

# --- User-specific gui definitions ---------------------------------------------
[GUI]
# BgColor = #f0f0f0

# --- Definition of the different states ----------------------------------------

# Buttons for all states
[State All]
BtnCancel  = Back
BtnHelp    = Help

# This is the state when the form is called the first time, or the Back-button
# is pressed
[State Init]
Header = Please select:
BtnNew = Save
BtnQry = -
BtnDef = Default

# In this state you have selected a record, which you can update or delete
[State Work]
Header = ""
BtnUpd = -
BtnDel = -

# This is the record-Browser
[State Qry]
Header =

# --- Layout for the area, the data is shown ------------------------------------
[Layout Table]
Border      = 0

# --- Here are the examples for the single fields -------------------------------
;[Layout Label <fieldname>]
;Text = <Text of label>
;Pos  = <Coordinates of this field  <[+]Row.[+]Column[+Span].[+]Stack-Order>

;[Layout Field <fieldname>]
;Pos      = <Coordinates of this field  <[+]Row.[+]Column[+Span].[+]Stack-Order>
;Type     = Area
;Type     = Checkbutton
;Type     = Hidden
;Type     = Password
;Type     = Radio
;Type     = Select
;Type     = Text
;Help     = <Help-Text> # Not correctly implemented yet
;Multiple = <Value if Yes>
;Size     = 3
;Values   = <<EOF

# Attributes
;Align     = center | left | right
;BgColor   = <Color>
;Big       = <Value if Yes>
;Blink     = <Value if Yes>
;Bold      = <Value if Yes>
;Bold      = Value if Yes>
;Font      = color=#000090
;Font      = color=<Foreground-color>
;Font      = face=<Font>
;Font      = size=<[+-]<Size>>
;Italic    = <Value if Yes>
;NoWrap    = <Value if Yes>
;Small     = <Value if Yes>


[Layout Label WWWdb]
Pos = +1.+1.0
Text = WWWdb
Bold = Yes

[Layout Label Lang]
Pos = +0.+1.0
Text = Language

[Layout Field Lang]
Pos = +0.+1.0
Type = Select
Values = <<EOF
SELECT   key_value, label, sort_nr
FROM     wwwdb_lookup
WHERE    key_name = 'lang'  AND
         lang     = 'en'
ORDER BY sort_nr

EOF

[Layout Label Form]
Pos = +1.+1.0
Text = The whole form
Bold = Yes

[Layout Label BgColorForm]
Pos = +1.+2.0
Text = Background-color

[Layout Field BgColorForm]
Pos = +0.+1.0
Type = Select
Values = <<EOF
SELECT   key_value, label, sort_nr
FROM     wwwdb_lookup
WHERE
         key_name = 'color'  AND
         lang     = 'en'
ORDER BY sort_nr
EOF

[Layout Label DataDisplayArea]
Pos = +1.+1.0
Text = The data-display area
Bold = Yes


[Layout Label BgColorTable1stCol]
Pos = +0.+1.0
Text = Background-color of the link-Column

[Layout Field BgColorTable1stCol]
Pos = +0.+1.0
Type = Select
Values = <<EOF
SELECT   key_value, label, sort_nr
FROM     wwwdb_lookup
WHERE    key_name = 'color' AND
         lang     = 'en'
ORDER BY sort_nr
EOF

[Layout Label BgColorTable]
Pos = +1.+2.0
Text = Background-color of the table

[Layout Field BgColorTable]
Pos = +0.+1.0
Type = Select
Values = <<EOF
SELECT   key_value, label, sort_nr
FROM     wwwdb_lookup
WHERE    key_name = 'color' AND
         lang     = 'en'
ORDER BY sort_nr
EOF

[Layout Label BorderTable]
Pos = +1.+2.0
Text = Border-width of the table

[Layout Field BorderTable]
Pos = +0.+1.0
Type = Select
Values = <<EOF
0
1
2
3
4
5
EOF


[Layout Label Confirmations]
Pos = +1.+1.0
Text = Don't Confirm after ...
Bold = Yes

[Layout Label ConfirmIns]
Pos = +0.+1.0
Text = ... Insertion

[Layout Field ConfirmIns]
Pos = +0.+1.0
Type = Checkbutton
Text = ""

[Layout Label ConfirmUpd]
Pos = +1.+2.0
Text = ... Update

[Layout Field ConfirmUpd]
Pos = +0.+1.0
Type = Checkbutton
Text = ""

[Layout Label ConfirmDel]
Pos = +1.+2.0
Text = ... Delete

[Layout Field ConfirmDel]
Pos = +0.+1.0
Type = Checkbutton
Text = ""


[Layout Label DebugMode]
Pos = +1.+1.0
Text = Debugging
Bold = Yes

[Layout Label DebugMode1]
Pos = +0.+1.0
Text = Debug-Mode

[Layout Field DebugMode]
Pos = +0.+1.0
Type = Select
Values = <<EOF
0
1
2
3
4
5
EOF


[Layout Label Comment]
Pos = +1.0+2.0
Text = ""
Align = center
SafeText = Yes
