summaryrefslogtreecommitdiffstats
path: root/build_tools/larch8/larch0/gui/layouts/profile_browse.uim
blob: 1d5912bdfbfe2d2f68c6e73c6dd21e9d8bf6d142 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# profile_browse.uim - The layout for the profile browser widget
#
# (c) Copyright 2010 Michael Towers (larch42 at googlemail dot com)
#
# This file is part of the larch project.
#
#    larch is free software; you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation; either version 2 of the License, or
#    (at your option) any later version.
#
#    larch is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with larch; if not, write to the Free Software Foundation, Inc.,
#    51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
#
#----------------------------------------------------------------------------
# 2010.08.15

[
    ['Dialog', 'dialog:profile_browser',
            {   'title': None,
                'layout':
                    ['VBOX',
                        'dpb:label_f', '*,5',
                        ['HBOX', 'dpb:browse',  'VLINE,10', 'dpb:examples'],
                        ['HBOX', 'dpb:source_l', 'dpb:source'],
                        ['HBOX', 'dpb:name_l', 'dpb:name', 'dpb:name_s'],
                        'HLINE',
                        'dpb:dbuttons'
                    ],
            }
    ],
    ['Frame', 'dpb:label_f',
            {   'layout':   ['VBOX', 'dpb:label'],
            }
    ],
    ['Label', 'dpb:label',
            {   'text': _("You can browse the file-system for the source profile"
                    " directory,\nor else choose one of the examples"),
            }
    ],
    ['Frame', 'dpb:examples',
            {   'text':     _("Example Profiles"),
                'tt':       _("Here you can select one of the example profiles to use as a starting point"),
                'layout':   ['VBOX', 'dpb:example_list'],
            }
    ],
    ['ComboBox', 'dpb:example_list',
            {
            },
        'changed'

    ],
    ['Button', 'dpb:browse',
            {   'text': _("Browse file-system"),
                'tt': _("Open a file dialog to search for the profile"),
            },
        'clicked'
    ],
    ['Label', 'dpb:source_l',
            {   'text': _("Source:"),
            }
    ],
    ['LineEdit', 'dpb:source',
            {   'ro': True,
                'tt': _("The path from which the profile directory will be copied"),
            }
    ],
    ['Label', 'dpb:name_l',
            {   'text': _("New name:")
            }
    ],
    ['LineEdit', 'dpb:name',
            {   'ro': True,
                'tt': _("The name the profile will be given in the work area"),
            }
    ],
    ['Button', 'dpb:name_s',
            {   'text': _("Change"),
                'tt': _("Open a dialog to change the new profile's name"),
            },
        'clicked'
    ],
    ['DialogButtons', 'dpb:dbuttons',
            {   'buttons':   ('Ok', 'Cancel'),
                'dialog':   'dialog:profile_browser',
            },
    ],
]