panel {
    string "Cells"
    fontweight bold
    fontsize 14
    valign top
    halign left
    hgroup {
        vgroup {
            margin 0
            valign fill
            pushbutton { string "Delete all cells" fontweight bold halign fill }
            pushbutton { string "Scatter cells" halign fill }
            pushbutton { string "Fill with cells" halign fill }
            pushbutton { string "Grid of cells" halign fill }
            pushbutton { string "One cell" halign fill }
        }
        vgroup {
            margin 0
            inherit margin
            hgroup {
                text { string "Init virtual cells" }
                edit { string 0 teststring "0.0000" halign right }
            }
            hgroup {
                text { string "Cell sides" }
                edit { string 12 teststring "0.0000" halign right }
            }
            hgroup {
                text { string "Number of cells" }
                edit { string 20 teststring "0.0000" halign right }
            }
            hgroup {
                text { string "Max no. cells" }
                edit { string 0 teststring "0.0000" halign right }
            }
            hgroup {
                text { string "Rel. area" }
                edit { string 0.002 teststring "0.0000" halign right }
            }
            hgroup {
                text { string "Axis ratio" }
                edit { string 1 teststring "0.0000" halign right }
            }
            checkbox { string "Allow overlap" value 1 }
        }
    }
    hgroup {
        panel {
            pushbutton { string "Shock cells" halign center }
            slider { halign center }
            edit { string "0.1" teststring "0.000" halign center }
            pushbutton { string "Unshock all" halign center }
        }
        vgroup {
            # cell color, simplify, split
            pushbutton { string Simplify }
            hgroup {
                margin 0
                text { string "Cell color" }
                hgroup {
                    halign left
                    valign center
                    panel { color "0 0 0" square yes }
                    panel { color "0 0 0" square yes }
                }
            }
            radiogroup {
                string Split
                vgroup {
                    halign center
                    radiobutton { string Cells }
                    radiobutton { string Edges }
                }
            }
        }
    }
    panel {
        string "Graphic properties"
        fontweight bold
        rows 2 columns 3
        text { string "Edge width" }
        text { string "Vertex size" }
        edit { string 1 }
        edit { string 0 }
        pushbutton { string "Randomize colors" halign fill }
        pushbutton { string "Uniform colors" halign fill }
    }
}
