more dialog formatting changes

This commit is contained in:
Nikolaus Gullotta 2018-08-01 12:14:08 -05:00
parent f771b0e882
commit d77aa4e3a5
2 changed files with 9 additions and 12 deletions

View file

@ -275,9 +275,8 @@ function factory () return function ()
local i = 0
local dry_table = {
{type = "label", align="right", key="col-0-title", col=0, colspan=1, title = 'Settings:'},
{type = "label", align="right", key="col-1-title", col=1, colspan=1, title = 'Source:'},
{type = "label", align="left", key="col-2-title", col=2, colspan=1, title = 'Destination:'},
{type = "label", align="right", key="col-1-title", col=0, colspan=1, title = 'Source:'},
{type = "label", align="left", key="col-2-title", col=1, colspan=1, title = 'Destination:'},
}
local file = io.open(path, "r")
assert(file, "File not found!")
@ -305,14 +304,14 @@ function factory () return function ()
if not(group_ptr) then
new_group = Session:new_route_group(group_name)
dlg_title = string.format("%s.", group_name, new_group:name())
dlg_title = string.format("(Group) %s.", group_name, new_group:name())
--action_title = "will create and use settings"
else
dlg_title = string.format("%s.", group_ptr:name())
dlg_title = string.format("(Group) %s.", group_ptr:name())
--action_title = "will use group settings"
end
table.insert(dry_table, {
type = "label", align="right", key = "type-"..i , col = 0, colspan = 1, title = "(Group)"
type = "label", align="right", key = "type-"..i , col = 0, colspan = 1, title = ""
})
table.insert(dry_table, {
type = "label", align="right", key = "group-"..i , col = 1, colspan = 1, title = dlg_title
@ -340,9 +339,7 @@ function factory () return function ()
--action_title = "will use route settings"
end
if route_ptr:isnil() then name = route_name else name = route_ptr:name() end
table.insert(dry_table, {
type = "label", align="right", key = "type-"..i , col = 0, colspan = 1, title = "(Strip)"
})
table.insert(dry_table, {
type = "label", align="right", key = "route-"..i , col = 1, colspan = 1, title = dlg_title
})

View file

@ -313,13 +313,13 @@ function factory () return function ()
end
local store_options = {
{ type = "label", col=0, colspan=1, align="right", title = "Settings name:" },
{ type = "label", col=0, colspan=1, align="right", title = "Name:" },
{ type = "entry", col=1, colspan=1, align="left" , key = "filename", default = Session:name(), title=""},
{ type = "label", col=0, colspan=1, align="right", title = "Store Settings:" },
{ type = "label", col=0, colspan=1, align="right", title = "Location:" },
{
type = "radio", col=1, colspan=3, align="left", key = "store-dir", title = "", values =
{
['Global (accessible from any session)'] = 1, ['Locally (this session only)'] = 2
['Global (accessible from any session)'] = 1, ['Local (this session only)'] = 2
},
default = 'Locally (this session only)'
},