summaryrefslogtreecommitdiffstats
path: root/build_tools/larch7/larch0/gui/layouts/page_project.uim
blob: 938c646161516d3080738a9b78c4aac2751b44f3 (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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
# page_project.uim - The layout for the project settings page
#
# (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.06.27

[
    ['Page', ':page_settings',
            {   'layout':
                    ['VBOX',
                        ':settings_profile',
                        '*',
                        ':options_advanced',
                        '*'
                    ]
            }
    ],
    # - - - - The profile selection frame
    ['Frame', ':settings_profile',
            {   'text': _("Profile"),
                'layout':
                    ['VBOX',
                        ['HBOX', ':choose_profile', ':choose_profile_combo',
                                '*', ':profile_browse'],
                        ['HBOX', ':profile_rename', ':profile_delete',
                                ':profile_save']
                    ]
            }
    ],
    ['Label', ':choose_profile',
            {   'text': _("Select:"),
                'align': 'right'
            }
    ],
    ['ComboBox', ':choose_profile_combo',
            {   'width': 200,
                'tt': _("Choose a profile from those already in your"
                        " larch working folder")
            },
            'changed'
    ],
    ['Button', ':profile_browse',
            {   'text': _("Browse for Profile"),
                'tt': _("Fetch a profile from the file-system")
            },
        'clicked'
    ],
    ['Button', ':profile_rename',
            {   'text': _("Rename"),
                'tt': _("Rename the current profile")
            },
        'clicked'
    ],
    ['Button', ':profile_delete',
            {   'text': _("Delete"),
                'tt': _("Delete an unused profile")
            },
        'clicked'
    ],
    ['Button', ':profile_save',
            {   'text': _("Copy to ..."),
                'tt': _("Copy the current profile to somehere else")
            },
        'clicked'
    ],

    # - - - - Advanced project options
    ['OptionalFrame', ':options_advanced',
            {   'text': _("Advanced Project Options"),
                'layout':
                    ['HBOX',
                        #['HBOX', '*', ':lplat', ':platform'],
                        ['GRID',
                            ['+', ':choose_project', ':choose_project_combo'],
                            ['+', ':new_project', ':project_delete']
                        ],
                        'VLINE,3',
                        ':installation_path'
                    ]
            }
    ],
# Pending better support in Arch/pacman
#    ['Label', '::lplat',
#            {   'text': _("Platform (processor architecture):")
#            }
#    ],
#    ['ComboBox', ':platform',
#            {   'tt': _("Which processor architecture?")
#            },
#            'changed'
#    ],
    ['Label', ':choose_project',
            {   'text': _("Choose Existing Project:")
            }
    ],
    ['ComboBox', ':choose_project_combo',
            {   'tt': _("Choose a project from those already defined"),
                'width': 120
            },
            'changed'
    ],
    ['Button', ':new_project',
            {   'text': _("New Project"),
                'tt': _("Create a new project")
            },
        'clicked'
    ],
    ['Button', ':project_delete',
            {   'text': _("Delete"),
                'tt': _("Delete a project")
            },
        'clicked'
    ],
    ['Frame', ':installation_path',
            {   'text': _("Installation Path"),
                'layout':
                    ['HBOX', ':installation_path_show',
                            ':installation_path_change']
            }
    ],
    ['LineEdit', ':installation_path_show',
            {   'ro': True,
                'tt': _("The root directory of the Arch installation"
                        " to larchify")
            }
    ],
    ['Button', ':installation_path_change',
            {   'text': _("Change"),
                'tt': _("Change the root directory of the Arch installation")
            },
        'clicked'
    ],

    ['DATA', 'project_page_data',
            {   'messages':
                    {   'file_ps':  _("Select profile source folder"),
                        'prompt_pr': _("Destination profile exists - replace it?"),
                        'prompt_pn': _("Enter new name for current profile:"),
                        'prompt_pe': _("Profile '%s' exists already"),
                        'msg_pu':   _("Can't rename the profile,"
                                    " it is in use by other projects"),
                        'file_sp':  _("Save profile folder"),
                        'prompt_dr': _("Destination exists - replace it?"),
                        'prompt_dp': _("Select the profile for deletion"),
                        'delprof': _("Remove Profile"),
                        'msg_npf':   _("There are no profiles which can"
                                    " be deleted - all are in use"),
                        'msg_dpff':   _("Couldn't delete profile '%s' -"
                                    " check permissions"),
                        'prompt_ip': _("An empty path here will reset to the default.\n"
                                "  WARNING: Double check your path -\n"
                                "  If you make a mistake here it could destroy your system!"
                                "\n\nEnter new installation path:"),
                        'prompt_np': _("Enter name for new project:"),
                        'msg_pe':   _("Project '%s' already exists"),
                        'prompt_pd': _("Select the project for deletion"),
                        'delproj': _("Remove Project"),
                        'msg_np':   _("There are no projects which can be deleted"),
                        'msg_npd': _("'%s' is not a profile folder"),
                        'msg_piu': _("The path '%s' is already in use, not saving"),
                    }
            },
    ],
]