mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 16:24:57 +01:00
more dialog formatting changes
This commit is contained in:
parent
f771b0e882
commit
d77aa4e3a5
2 changed files with 9 additions and 12 deletions
|
|
@ -275,9 +275,8 @@ function factory () return function ()
|
||||||
|
|
||||||
local i = 0
|
local i = 0
|
||||||
local dry_table = {
|
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=0, colspan=1, title = 'Source:'},
|
||||||
{type = "label", align="right", key="col-1-title", col=1, colspan=1, title = 'Source:'},
|
{type = "label", align="left", key="col-2-title", col=1, colspan=1, title = 'Destination:'},
|
||||||
{type = "label", align="left", key="col-2-title", col=2, colspan=1, title = 'Destination:'},
|
|
||||||
}
|
}
|
||||||
local file = io.open(path, "r")
|
local file = io.open(path, "r")
|
||||||
assert(file, "File not found!")
|
assert(file, "File not found!")
|
||||||
|
|
@ -305,14 +304,14 @@ function factory () return function ()
|
||||||
|
|
||||||
if not(group_ptr) then
|
if not(group_ptr) then
|
||||||
new_group = Session:new_route_group(group_name)
|
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"
|
--action_title = "will create and use settings"
|
||||||
else
|
else
|
||||||
dlg_title = string.format("%s.", group_ptr:name())
|
dlg_title = string.format("(Group) %s.", group_ptr:name())
|
||||||
--action_title = "will use group settings"
|
--action_title = "will use group settings"
|
||||||
end
|
end
|
||||||
table.insert(dry_table, {
|
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, {
|
table.insert(dry_table, {
|
||||||
type = "label", align="right", key = "group-"..i , col = 1, colspan = 1, title = dlg_title
|
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"
|
--action_title = "will use route settings"
|
||||||
end
|
end
|
||||||
if route_ptr:isnil() then name = route_name else name = route_ptr:name() 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, {
|
table.insert(dry_table, {
|
||||||
type = "label", align="right", key = "route-"..i , col = 1, colspan = 1, title = dlg_title
|
type = "label", align="right", key = "route-"..i , col = 1, colspan = 1, title = dlg_title
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -313,13 +313,13 @@ function factory () return function ()
|
||||||
end
|
end
|
||||||
|
|
||||||
local store_options = {
|
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 = "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 =
|
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)'
|
default = 'Locally (this session only)'
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue