Status: | Merged | ||||||||
---|---|---|---|---|---|---|---|---|---|
Merged at revision: | not available | ||||||||
Proposed branch: | lp:~trb143/openlp/bugfixes | ||||||||
Merge into: | lp:openlp | ||||||||
Diff against target: | None lines | ||||||||
To merge this branch: | bzr merge lp:~trb143/openlp/bugfixes | ||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Raoul Snyman | Approve | ||
Review via email:
|
Commit message
Description of the change
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Tim Bentley (trb143) wrote : | # |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Raoul Snyman (raoul-snyman) : | # |
- 502. By Raoul Snyman
-
Merge from songmaintenance branch.
- 503. By Tim Bentley
-
New bible Import Screen
Transparent Theme backgrounds
Global Theme Handling improvements-------This line and the following will be ignored --------------
modified:
openlp/core/lib/ renderer. py
openlp/core/lib/ themexmlhandler .py
openlp/core/ui/ amendthemeform. py
openlp/core/ui/ servicemanager. py
openlp/core/ui/ thememanager. py
openlp/core/ui/ themestab. py
openlp/plugins/ bibles/ forms/bibleimpo rtdialog. py
resources/forms/bibleimpo rtdialog. ui
pending merges:
Tim Bentley 2009-08-07 finish Theme handling corrections
Tim Bentley 2009-08-07 Default handling allows editing and blocks deletes
Tim Bentley 2009-08-07 New bible import form
Tim Bentley 2009-08-06 [merge] Head
Tim Bentley 2009-08-06 Standardize row hight in renderer
Preview Diff
1 | === modified file 'openlp/core/lib/renderer.py' | |||
2 | --- openlp/core/lib/renderer.py 2009-08-05 17:59:37 +0000 | |||
3 | +++ openlp/core/lib/renderer.py 2009-08-07 17:19:32 +0000 | |||
4 | @@ -154,11 +154,6 @@ | |||
5 | 154 | text.append(line) | 154 | text.append(line) |
6 | 155 | #print text | 155 | #print text |
7 | 156 | split_text = self.pre_render_text(text) | 156 | split_text = self.pre_render_text(text) |
8 | 157 | # print "-----------------------------" | ||
9 | 158 | # print split_text | ||
10 | 159 | # split_text = self._split_set_of_lines(text, False) | ||
11 | 160 | # print "-----------------------------" | ||
12 | 161 | # print split_text | ||
13 | 162 | log.debug(u'format_slide - End') | 157 | log.debug(u'format_slide - End') |
14 | 163 | return split_text | 158 | return split_text |
15 | 164 | 159 | ||
16 | @@ -168,7 +163,7 @@ | |||
17 | 168 | line_width = self._rect.width() - self._right_margin | 163 | line_width = self._rect.width() - self._right_margin |
18 | 169 | #number of lines on a page - adjust for rounding up. | 164 | #number of lines on a page - adjust for rounding up. |
19 | 170 | #print self._rect.height() , metrics.height(), int(self._rect.height() / metrics.height()) | 165 | #print self._rect.height() , metrics.height(), int(self._rect.height() / metrics.height()) |
21 | 171 | page_length = int(self._rect.height() / metrics.height()) - 1 | 166 | page_length = int(self._rect.height() / metrics.height() - 2 ) - 1 |
22 | 172 | ave_line_width = line_width / metrics.averageCharWidth() | 167 | ave_line_width = line_width / metrics.averageCharWidth() |
23 | 173 | # print "A", ave_line_width | 168 | # print "A", ave_line_width |
24 | 174 | ave_line_width = int(ave_line_width + (ave_line_width * 0.5)) | 169 | ave_line_width = int(ave_line_width + (ave_line_width * 0.5)) |
25 | @@ -272,113 +267,49 @@ | |||
26 | 272 | log.debug(u'render background %s start', self._theme.background_type) | 267 | log.debug(u'render background %s start', self._theme.background_type) |
27 | 273 | painter = QtGui.QPainter() | 268 | painter = QtGui.QPainter() |
28 | 274 | painter.begin(self._bg_frame) | 269 | painter.begin(self._bg_frame) |
64 | 275 | if self._theme.background_type == u'solid': | 270 | if self._theme.background_mode == u'transparent': |
65 | 276 | painter.fillRect(self._frame.rect(), QtGui.QColor(self._theme.background_color)) | 271 | painter.fillRect(self._frame.rect(), QtCore.Qt.transparent) |
66 | 277 | elif self._theme.background_type == u'gradient': | 272 | else: |
67 | 278 | # gradient | 273 | if self._theme.background_type == u'solid': |
68 | 279 | gradient = None | 274 | painter.fillRect(self._frame.rect(), QtGui.QColor(self._theme.background_color)) |
69 | 280 | if self._theme.background_direction == u'horizontal': | 275 | elif self._theme.background_type == u'gradient': |
70 | 281 | w = int(self._frame.width()) / 2 | 276 | # gradient |
71 | 282 | # vertical | 277 | gradient = None |
72 | 283 | gradient = QtGui.QLinearGradient(w, 0, w, self._frame.height()) | 278 | if self._theme.background_direction == u'horizontal': |
73 | 284 | elif self._theme.background_direction == u'vertical': | 279 | w = int(self._frame.width()) / 2 |
74 | 285 | h = int(self._frame.height()) / 2 | 280 | # vertical |
75 | 286 | # Horizontal | 281 | gradient = QtGui.QLinearGradient(w, 0, w, self._frame.height()) |
76 | 287 | gradient = QtGui.QLinearGradient(0, h, self._frame.width(), h) | 282 | elif self._theme.background_direction == u'vertical': |
77 | 288 | else: | 283 | h = int(self._frame.height()) / 2 |
78 | 289 | w = int(self._frame.width()) / 2 | 284 | # Horizontal |
79 | 290 | h = int(self._frame.height()) / 2 | 285 | gradient = QtGui.QLinearGradient(0, h, self._frame.width(), h) |
80 | 291 | # Circular | 286 | else: |
81 | 292 | gradient = QtGui.QRadialGradient(w, h, w) | 287 | w = int(self._frame.width()) / 2 |
82 | 293 | gradient.setColorAt(0, QtGui.QColor(self._theme.background_startColor)) | 288 | h = int(self._frame.height()) / 2 |
83 | 294 | gradient.setColorAt(1, QtGui.QColor(self._theme.background_endColor)) | 289 | # Circular |
84 | 295 | painter.setBrush(QtGui.QBrush(gradient)) | 290 | gradient = QtGui.QRadialGradient(w, h, w) |
85 | 296 | rectPath = QtGui.QPainterPath() | 291 | gradient.setColorAt(0, QtGui.QColor(self._theme.background_startColor)) |
86 | 297 | max_x = self._frame.width() | 292 | gradient.setColorAt(1, QtGui.QColor(self._theme.background_endColor)) |
87 | 298 | max_y = self._frame.height() | 293 | painter.setBrush(QtGui.QBrush(gradient)) |
88 | 299 | rectPath.moveTo(0, 0) | 294 | rectPath = QtGui.QPainterPath() |
89 | 300 | rectPath.lineTo(0, max_y) | 295 | max_x = self._frame.width() |
90 | 301 | rectPath.lineTo(max_x, max_y) | 296 | max_y = self._frame.height() |
91 | 302 | rectPath.lineTo(max_x, 0) | 297 | rectPath.moveTo(0, 0) |
92 | 303 | rectPath.closeSubpath() | 298 | rectPath.lineTo(0, max_y) |
93 | 304 | painter.drawPath(rectPath) | 299 | rectPath.lineTo(max_x, max_y) |
94 | 305 | elif self._theme.background_type== u'image': | 300 | rectPath.lineTo(max_x, 0) |
95 | 306 | # image | 301 | rectPath.closeSubpath() |
96 | 307 | painter.fillRect(self._frame.rect(), QtCore.Qt.black) | 302 | painter.drawPath(rectPath) |
97 | 308 | if self.bg_image is not None: | 303 | elif self._theme.background_type== u'image': |
98 | 309 | painter.drawImage(0 ,0 , self.bg_image) | 304 | # image |
99 | 305 | painter.fillRect(self._frame.rect(), QtCore.Qt.black) | ||
100 | 306 | if self.bg_image is not None: | ||
101 | 307 | painter.drawImage(0 ,0 , self.bg_image) | ||
102 | 310 | painter.end() | 308 | painter.end() |
103 | 311 | self._bg_frame_small = self._bg_frame.scaled(QtCore.QSize(280, 210), QtCore.Qt.KeepAspectRatio, | 309 | self._bg_frame_small = self._bg_frame.scaled(QtCore.QSize(280, 210), QtCore.Qt.KeepAspectRatio, |
104 | 312 | QtCore.Qt.SmoothTransformation) | 310 | QtCore.Qt.SmoothTransformation) |
105 | 313 | log.debug(u'render background End') | 311 | log.debug(u'render background End') |
106 | 314 | 312 | ||
107 | 315 | # def _split_set_of_lines(self, lines, footer): | ||
108 | 316 | # """ | ||
109 | 317 | # Given a list of lines, decide how to split them best if they don't all | ||
110 | 318 | # fit on the screen. This is done by splitting at 1/2, 1/3 or 1/4 of the | ||
111 | 319 | # set. If it doesn't fit, even at this size, just split at each | ||
112 | 320 | # opportunity. We'll do this by getting the bounding box of each line, | ||
113 | 321 | # and then summing them appropriately. | ||
114 | 322 | # | ||
115 | 323 | # Returns a list of [lists of lines], one set for each screenful. | ||
116 | 324 | # | ||
117 | 325 | # ``lines`` | ||
118 | 326 | # The lines of text to split. | ||
119 | 327 | # | ||
120 | 328 | # ``footer`` | ||
121 | 329 | # The footer text. | ||
122 | 330 | # """ | ||
123 | 331 | # bboxes = [] | ||
124 | 332 | # for line in lines: | ||
125 | 333 | # bboxes.append(self._render_and_wrap_single_line(line, footer)) | ||
126 | 334 | # numlines = len(lines) | ||
127 | 335 | # bottom = self._rect.bottom() | ||
128 | 336 | # for ratio in (numlines, numlines/2, numlines/3, numlines/4): | ||
129 | 337 | # good = 1 | ||
130 | 338 | # startline = 0 | ||
131 | 339 | # endline = startline + ratio | ||
132 | 340 | # while (endline <= numlines and endline != 0): | ||
133 | 341 | # by = 0 | ||
134 | 342 | # for (x,y) in bboxes[startline:endline]: | ||
135 | 343 | # by += y | ||
136 | 344 | # if by > bottom: | ||
137 | 345 | # good = 0 | ||
138 | 346 | # break | ||
139 | 347 | # startline += ratio | ||
140 | 348 | # endline = startline + ratio | ||
141 | 349 | # if good == 1: | ||
142 | 350 | # break | ||
143 | 351 | # retval = [] | ||
144 | 352 | # numlines_per_page = ratio | ||
145 | 353 | # if good: | ||
146 | 354 | # c = 0 | ||
147 | 355 | # thislines = [] | ||
148 | 356 | # while c < numlines: | ||
149 | 357 | # thislines.append(lines[c]) | ||
150 | 358 | # c += 1 | ||
151 | 359 | # if len(thislines) == numlines_per_page: | ||
152 | 360 | # retval.append(thislines) | ||
153 | 361 | # thislines = [] | ||
154 | 362 | # if len(thislines) > 0: | ||
155 | 363 | # retval.append(thislines) | ||
156 | 364 | # else: | ||
157 | 365 | # # print "Just split where you can" | ||
158 | 366 | # retval = [] | ||
159 | 367 | # startline = 0 | ||
160 | 368 | # endline = startline + 1 | ||
161 | 369 | # while (endline <= numlines): | ||
162 | 370 | # by = 0 | ||
163 | 371 | # for (x,y) in bboxes[startline:endline]: | ||
164 | 372 | # by += y | ||
165 | 373 | # if by > bottom: | ||
166 | 374 | # retval.append(lines[startline:endline-1]) | ||
167 | 375 | # startline = endline-1 | ||
168 | 376 | # # gets incremented below | ||
169 | 377 | # endline = startline | ||
170 | 378 | # by = 0 | ||
171 | 379 | # endline += 1 | ||
172 | 380 | # return retval | ||
173 | 381 | |||
174 | 382 | def _correctAlignment(self, rect, bbox): | 313 | def _correctAlignment(self, rect, bbox): |
175 | 383 | """ | 314 | """ |
176 | 384 | Corrects the vertical alignment of text. | 315 | Corrects the vertical alignment of text. |
177 | 385 | 316 | ||
178 | === modified file 'openlp/core/lib/themexmlhandler.py' | |||
179 | --- openlp/core/lib/themexmlhandler.py 2009-08-05 17:59:37 +0000 | |||
180 | +++ openlp/core/lib/themexmlhandler.py 2009-08-07 17:19:32 +0000 | |||
181 | @@ -331,6 +331,11 @@ | |||
182 | 331 | for element in iter: | 331 | for element in iter: |
183 | 332 | if len(element.getchildren()) > 0: | 332 | if len(element.getchildren()) > 0: |
184 | 333 | master = element.tag + u'_' | 333 | master = element.tag + u'_' |
185 | 334 | else: | ||
186 | 335 | #background transparent tags have no children so special case | ||
187 | 336 | if element.tag == u'background': | ||
188 | 337 | for e in element.attrib.iteritems(): | ||
189 | 338 | setattr(self, element.tag + u'_' + e[0], e[1]) | ||
190 | 334 | if len(element.attrib) > 0: | 339 | if len(element.attrib) > 0: |
191 | 335 | for e in element.attrib.iteritems(): | 340 | for e in element.attrib.iteritems(): |
192 | 336 | if master == u'font_' and e[0] == u'type': | 341 | if master == u'font_' and e[0] == u'type': |
193 | 337 | 342 | ||
194 | === modified file 'openlp/core/ui/amendthemeform.py' | |||
195 | --- openlp/core/ui/amendthemeform.py 2009-08-03 19:49:21 +0000 | |||
196 | +++ openlp/core/ui/amendthemeform.py 2009-08-07 17:19:32 +0000 | |||
197 | @@ -108,16 +108,19 @@ | |||
198 | 108 | new_theme.new_document(theme_name) | 108 | new_theme.new_document(theme_name) |
199 | 109 | save_from = None | 109 | save_from = None |
200 | 110 | save_to = None | 110 | save_to = None |
206 | 111 | if self.theme.background_type == u'solid': | 111 | if self.theme.background_mode == u'transparent': |
207 | 112 | new_theme.add_background_solid(unicode(self.theme.background_color)) | 112 | new_theme.add_background_transparent() |
203 | 113 | elif self.theme.background_type == u'gradient': | ||
204 | 114 | new_theme.add_background_gradient(unicode(self.theme.background_startColor), | ||
205 | 115 | unicode(self.theme.background_endColor), self.theme.background_direction) | ||
208 | 116 | else: | 113 | else: |
213 | 117 | (path, filename) =os.path.split(unicode(self.theme.background_filename)) | 114 | if self.theme.background_type == u'solid': |
214 | 118 | new_theme.add_background_image(filename) | 115 | new_theme.add_background_solid(unicode(self.theme.background_color)) |
215 | 119 | save_to= os.path.join(self.path, theme_name, filename ) | 116 | elif self.theme.background_type == u'gradient': |
216 | 120 | save_from = self.theme.background_filename | 117 | new_theme.add_background_gradient(unicode(self.theme.background_startColor), |
217 | 118 | unicode(self.theme.background_endColor), self.theme.background_direction) | ||
218 | 119 | else: | ||
219 | 120 | (path, filename) =os.path.split(unicode(self.theme.background_filename)) | ||
220 | 121 | new_theme.add_background_image(filename) | ||
221 | 122 | save_to= os.path.join(self.path, theme_name, filename ) | ||
222 | 123 | save_from = self.theme.background_filename | ||
223 | 121 | 124 | ||
224 | 122 | new_theme.add_font(unicode(self.theme.font_main_name), unicode(self.theme.font_main_color), | 125 | new_theme.add_font(unicode(self.theme.font_main_name), unicode(self.theme.font_main_color), |
225 | 123 | unicode(self.theme.font_main_proportion), unicode(self.theme.font_main_override), u'main', | 126 | unicode(self.theme.font_main_proportion), unicode(self.theme.font_main_override), u'main', |
226 | 124 | 127 | ||
227 | === modified file 'openlp/core/ui/servicemanager.py' | |||
228 | --- openlp/core/ui/servicemanager.py 2009-08-02 16:13:59 +0000 | |||
229 | +++ openlp/core/ui/servicemanager.py 2009-08-06 17:43:53 +0000 | |||
230 | @@ -161,7 +161,7 @@ | |||
231 | 161 | # Last little bits of setting up | 161 | # Last little bits of setting up |
232 | 162 | self.config = PluginConfig(u'ServiceManager') | 162 | self.config = PluginConfig(u'ServiceManager') |
233 | 163 | self.servicePath = self.config.get_data_path() | 163 | self.servicePath = self.config.get_data_path() |
235 | 164 | self.service_theme = self.config.get_config(u'theme service theme', u'') | 164 | self.service_theme = unicode(self.config.get_config(u'theme service theme', u'')) |
236 | 165 | 165 | ||
237 | 166 | def onMoveSelectionUp(self): | 166 | def onMoveSelectionUp(self): |
238 | 167 | """ | 167 | """ |
239 | @@ -412,7 +412,11 @@ | |||
240 | 412 | 412 | ||
241 | 413 | def addServiceItem(self, item): | 413 | def addServiceItem(self, item): |
242 | 414 | """ | 414 | """ |
244 | 415 | Add an item to the list | 415 | Add a Service item to the list |
245 | 416 | |||
246 | 417 | ``item`` | ||
247 | 418 | Service Item to be added | ||
248 | 419 | |||
249 | 416 | """ | 420 | """ |
250 | 417 | self.serviceItems.append({u'data': item, u'order': len(self.serviceItems)+1, u'expanded':True}) | 421 | self.serviceItems.append({u'data': item, u'order': len(self.serviceItems)+1, u'expanded':True}) |
251 | 418 | treewidgetitem = QtGui.QTreeWidgetItem(self.ServiceManagerList) | 422 | treewidgetitem = QtGui.QTreeWidgetItem(self.ServiceManagerList) |
252 | @@ -465,13 +469,21 @@ | |||
253 | 465 | def dragEnterEvent(self, event): | 469 | def dragEnterEvent(self, event): |
254 | 466 | """ | 470 | """ |
255 | 467 | Accept Drag events | 471 | Accept Drag events |
256 | 472 | |||
257 | 473 | ``event`` | ||
258 | 474 | Handle of the event pint passed | ||
259 | 475 | |||
260 | 468 | """ | 476 | """ |
261 | 469 | event.accept() | 477 | event.accept() |
262 | 470 | 478 | ||
263 | 471 | def dropEvent(self, event): | 479 | def dropEvent(self, event): |
264 | 472 | """ | 480 | """ |
267 | 473 | Handle the release of the event and trigger the plugin | 481 | Receive drop event and trigger an internal event to get the |
268 | 474 | to add the data | 482 | plugins to build and push the correct service item |
269 | 483 | The drag event payload carries the plugin name | ||
270 | 484 | |||
271 | 485 | ``event`` | ||
272 | 486 | Handle of the event pint passed | ||
273 | 475 | """ | 487 | """ |
274 | 476 | link = event.mimeData() | 488 | link = event.mimeData() |
275 | 477 | if link.hasText(): | 489 | if link.hasText(): |
276 | @@ -481,12 +493,16 @@ | |||
277 | 481 | def updateThemeList(self, theme_list): | 493 | def updateThemeList(self, theme_list): |
278 | 482 | """ | 494 | """ |
279 | 483 | Called from ThemeManager when the Themes have changed | 495 | Called from ThemeManager when the Themes have changed |
280 | 496 | |||
281 | 497 | ``theme_list`` | ||
282 | 498 | A list of current themes to be displayed | ||
283 | 499 | |||
284 | 484 | """ | 500 | """ |
285 | 485 | self.ThemeComboBox.clear() | 501 | self.ThemeComboBox.clear() |
286 | 486 | self.ThemeComboBox.addItem(u'') | 502 | self.ThemeComboBox.addItem(u'') |
287 | 487 | for theme in theme_list: | 503 | for theme in theme_list: |
288 | 488 | self.ThemeComboBox.addItem(theme) | 504 | self.ThemeComboBox.addItem(theme) |
290 | 489 | id = self.ThemeComboBox.findText(unicode(self.service_theme), QtCore.Qt.MatchExactly) | 505 | id = self.ThemeComboBox.findText(self.service_theme, QtCore.Qt.MatchExactly) |
291 | 490 | # Not Found | 506 | # Not Found |
292 | 491 | if id == -1: | 507 | if id == -1: |
293 | 492 | id = 0 | 508 | id = 0 |
294 | 493 | 509 | ||
295 | === modified file 'openlp/core/ui/thememanager.py' | |||
296 | --- openlp/core/ui/thememanager.py 2009-08-02 16:13:59 +0000 | |||
297 | +++ openlp/core/ui/thememanager.py 2009-08-07 19:05:00 +0000 | |||
298 | @@ -28,7 +28,7 @@ | |||
299 | 28 | 28 | ||
300 | 29 | from openlp.core.ui import AmendThemeForm, ServiceManager | 29 | from openlp.core.ui import AmendThemeForm, ServiceManager |
301 | 30 | from openlp.core.theme import Theme | 30 | from openlp.core.theme import Theme |
303 | 31 | from openlp.core.lib import Event, EventType, EventManager, OpenLPToolbar, ThemeXML, Renderer, translate, file_to_xml, buildIcon | 31 | from openlp.core.lib import PluginConfig, Event, EventType, EventManager, OpenLPToolbar, ThemeXML, Renderer, translate, file_to_xml, buildIcon |
304 | 32 | from openlp.core.utils import ConfigHelper | 32 | from openlp.core.utils import ConfigHelper |
305 | 33 | 33 | ||
306 | 34 | class ThemeManager(QtGui.QWidget): | 34 | class ThemeManager(QtGui.QWidget): |
307 | @@ -68,10 +68,33 @@ | |||
308 | 68 | self.ThemeListWidget.setAlternatingRowColors(True) | 68 | self.ThemeListWidget.setAlternatingRowColors(True) |
309 | 69 | self.ThemeListWidget.setIconSize(QtCore.QSize(88,50)) | 69 | self.ThemeListWidget.setIconSize(QtCore.QSize(88,50)) |
310 | 70 | self.Layout.addWidget(self.ThemeListWidget) | 70 | self.Layout.addWidget(self.ThemeListWidget) |
311 | 71 | #Signals | ||
312 | 72 | QtCore.QObject.connect(self.ThemeListWidget, | ||
313 | 73 | QtCore.SIGNAL(u'doubleClicked(QModelIndex)'), self.changeGlobal) | ||
314 | 74 | #Variables | ||
315 | 71 | self.themelist = [] | 75 | self.themelist = [] |
316 | 72 | self.path = os.path.join(ConfigHelper.get_data_path(), u'themes') | 76 | self.path = os.path.join(ConfigHelper.get_data_path(), u'themes') |
317 | 73 | self.checkThemesExists(self.path) | 77 | self.checkThemesExists(self.path) |
318 | 74 | self.amendThemeForm.path = self.path | 78 | self.amendThemeForm.path = self.path |
319 | 79 | # Last little bits of setting up | ||
320 | 80 | self.config = PluginConfig(u'themes') | ||
321 | 81 | self.servicePath = self.config.get_data_path() | ||
322 | 82 | self.global_theme = unicode(self.config.get_config(u'theme global theme', u'')) | ||
323 | 83 | |||
324 | 84 | def changeGlobal(self, index): | ||
325 | 85 | for count in range (0, self.ThemeListWidget.count()): | ||
326 | 86 | item = self.ThemeListWidget.item(count) | ||
327 | 87 | oldName = item.text() | ||
328 | 88 | #reset the old name | ||
329 | 89 | if oldName != unicode(item.data(QtCore.Qt.UserRole).toString()): | ||
330 | 90 | self.ThemeListWidget.item(count).setText(unicode(item.data(QtCore.Qt.UserRole).toString())) | ||
331 | 91 | #Set the new name | ||
332 | 92 | if count == index.row(): | ||
333 | 93 | self.global_theme = unicode(self.ThemeListWidget.item(count).text()) | ||
334 | 94 | name = (u'(%s):%s' % (translate(u'ThemeManager', u'default'), self.global_theme)) | ||
335 | 95 | self.ThemeListWidget.item(count).setText(name) | ||
336 | 96 | self.config.set_config(u'theme global theme', self.global_theme) | ||
337 | 97 | self.push_themes() | ||
338 | 75 | 98 | ||
339 | 76 | def onAddTheme(self): | 99 | def onAddTheme(self): |
340 | 77 | self.amendThemeForm.loadTheme(None) | 100 | self.amendThemeForm.loadTheme(None) |
341 | @@ -80,30 +103,38 @@ | |||
342 | 80 | def onEditTheme(self): | 103 | def onEditTheme(self): |
343 | 81 | item = self.ThemeListWidget.currentItem() | 104 | item = self.ThemeListWidget.currentItem() |
344 | 82 | if item is not None: | 105 | if item is not None: |
346 | 83 | self.amendThemeForm.loadTheme(unicode(item.text())) | 106 | self.amendThemeForm.loadTheme(unicode(item.data(QtCore.Qt.UserRole).toString())) |
347 | 84 | self.amendThemeForm.exec_() | 107 | self.amendThemeForm.exec_() |
348 | 85 | 108 | ||
349 | 86 | def onDeleteTheme(self): | 109 | def onDeleteTheme(self): |
350 | 110 | self.global_theme = unicode(self.config.get_config(u'theme global theme', u'')) | ||
351 | 87 | item = self.ThemeListWidget.currentItem() | 111 | item = self.ThemeListWidget.currentItem() |
352 | 88 | if item is not None: | 112 | if item is not None: |
353 | 89 | theme = unicode(item.text()) | 113 | theme = unicode(item.text()) |
371 | 90 | th = theme + u'.png' | 114 | # should be the same unless default |
372 | 91 | row = self.ThemeListWidget.row(item) | 115 | if theme != unicode(item.data(QtCore.Qt.UserRole).toString()): |
373 | 92 | self.ThemeListWidget.takeItem(row) | 116 | QtGui.QMessageBox.critical(self, |
374 | 93 | try: | 117 | translate(u'ThemeManager', u'Error'), |
375 | 94 | os.remove(os.path.join(self.path, th)) | 118 | translate(u'ThemeManager', u'You are unable to delete the default theme!'), |
376 | 95 | except: | 119 | QtGui.QMessageBox.StandardButtons(QtGui.QMessageBox.Ok)) |
377 | 96 | #if not present do not worry | 120 | else: |
378 | 97 | pass | 121 | self.themelist.remove(theme) |
379 | 98 | try: | 122 | th = theme + u'.png' |
380 | 99 | shutil.rmtree(os.path.join(self.path, theme)) | 123 | row = self.ThemeListWidget.row(item) |
381 | 100 | except: | 124 | self.ThemeListWidget.takeItem(row) |
382 | 101 | #if not present do not worry | 125 | try: |
383 | 102 | pass | 126 | os.remove(os.path.join(self.path, th)) |
384 | 103 | #As we do not reload the themes push out the change | 127 | except: |
385 | 104 | self.parent.EventManager.post_event(Event(EventType.ThemeListChanged)) | 128 | #if not present do not worry |
386 | 105 | self.parent.ServiceManagerContents.updateThemeList(self.getThemes()) | 129 | pass |
387 | 106 | self.parent.settingsForm.ThemesTab.updateThemeList(self.getThemes()) | 130 | try: |
388 | 131 | shutil.rmtree(os.path.join(self.path, theme)) | ||
389 | 132 | except: | ||
390 | 133 | #if not present do not worry | ||
391 | 134 | pass | ||
392 | 135 | #As we do not reload the themes push out the change | ||
393 | 136 | #Reaload the list as the internal lists and events need to be triggered | ||
394 | 137 | self.push_themes() | ||
395 | 107 | 138 | ||
396 | 108 | def onExportTheme(self): | 139 | def onExportTheme(self): |
397 | 109 | pass | 140 | pass |
398 | @@ -136,11 +167,18 @@ | |||
399 | 136 | if os.path.exists(theme): | 167 | if os.path.exists(theme): |
400 | 137 | (path, filename) = os.path.split(unicode(file)) | 168 | (path, filename) = os.path.split(unicode(file)) |
401 | 138 | textName = os.path.splitext(name)[0] | 169 | textName = os.path.splitext(name)[0] |
403 | 139 | item_name = QtGui.QListWidgetItem(textName) | 170 | if textName == self.global_theme: |
404 | 171 | name = (u'(%s):%s' % (translate(u'ThemeManager', u'default'), textName)) | ||
405 | 172 | else: | ||
406 | 173 | name = textName | ||
407 | 174 | item_name = QtGui.QListWidgetItem(name) | ||
408 | 140 | item_name.setIcon(buildIcon(theme)) | 175 | item_name.setIcon(buildIcon(theme)) |
409 | 141 | item_name.setData(QtCore.Qt.UserRole, QtCore.QVariant(textName)) | 176 | item_name.setData(QtCore.Qt.UserRole, QtCore.QVariant(textName)) |
410 | 142 | self.ThemeListWidget.addItem(item_name) | 177 | self.ThemeListWidget.addItem(item_name) |
411 | 143 | self.themelist.append(textName) | 178 | self.themelist.append(textName) |
412 | 179 | self.push_themes() | ||
413 | 180 | |||
414 | 181 | def push_themes(self): | ||
415 | 144 | self.parent.EventManager.post_event(Event(EventType.ThemeListChanged)) | 182 | self.parent.EventManager.post_event(Event(EventType.ThemeListChanged)) |
416 | 145 | self.parent.ServiceManagerContents.updateThemeList(self.getThemes()) | 183 | self.parent.ServiceManagerContents.updateThemeList(self.getThemes()) |
417 | 146 | self.parent.settingsForm.ThemesTab.updateThemeList(self.getThemes()) | 184 | self.parent.settingsForm.ThemesTab.updateThemeList(self.getThemes()) |
418 | @@ -153,6 +191,7 @@ | |||
419 | 153 | xml_file = os.path.join(self.path, unicode(themename), unicode(themename) + u'.xml') | 191 | xml_file = os.path.join(self.path, unicode(themename), unicode(themename) + u'.xml') |
420 | 154 | try: | 192 | try: |
421 | 155 | xml = file_to_xml(xml_file) | 193 | xml = file_to_xml(xml_file) |
422 | 194 | #print xml | ||
423 | 156 | except: | 195 | except: |
424 | 157 | newtheme = ThemeXML() | 196 | newtheme = ThemeXML() |
425 | 158 | newtheme.new_document(u'New Theme') | 197 | newtheme.new_document(u'New Theme') |
426 | @@ -163,7 +202,9 @@ | |||
427 | 163 | unicode(0), unicode(0), unicode(0)) | 202 | unicode(0), unicode(0), unicode(0)) |
428 | 164 | xml = newtheme.extract_xml() | 203 | xml = newtheme.extract_xml() |
429 | 165 | theme = ThemeXML() | 204 | theme = ThemeXML() |
430 | 205 | #print theme | ||
431 | 166 | theme.parse(xml) | 206 | theme.parse(xml) |
432 | 207 | #print "A ", theme | ||
433 | 167 | theme.extend_image_filename(self.path) | 208 | theme.extend_image_filename(self.path) |
434 | 168 | return theme | 209 | return theme |
435 | 169 | 210 | ||
436 | @@ -211,6 +252,9 @@ | |||
437 | 211 | self.generateAndSaveImage(dir, themename, filexml) | 252 | self.generateAndSaveImage(dir, themename, filexml) |
438 | 212 | 253 | ||
439 | 213 | def checkVersion1(self, xmlfile): | 254 | def checkVersion1(self, xmlfile): |
440 | 255 | """ | ||
441 | 256 | Am I a version 1 theme | ||
442 | 257 | """ | ||
443 | 214 | log.debug(u'checkVersion1 ') | 258 | log.debug(u'checkVersion1 ') |
444 | 215 | theme = xmlfile | 259 | theme = xmlfile |
445 | 216 | tree = ElementTree(element=XML(theme)).getroot() | 260 | tree = ElementTree(element=XML(theme)).getroot() |
446 | @@ -220,6 +264,11 @@ | |||
447 | 220 | return True | 264 | return True |
448 | 221 | 265 | ||
449 | 222 | def migrateVersion122(self, filename, fullpath, xml_data): | 266 | def migrateVersion122(self, filename, fullpath, xml_data): |
450 | 267 | """ | ||
451 | 268 | Called by convert the xml data from version 1 format | ||
452 | 269 | to the current format. | ||
453 | 270 | New fields are defaulted but the new theme is useable | ||
454 | 271 | """ | ||
455 | 223 | log.debug(u'migrateVersion122 %s %s', filename, fullpath) | 272 | log.debug(u'migrateVersion122 %s %s', filename, fullpath) |
456 | 224 | theme = Theme(xml_data) | 273 | theme = Theme(xml_data) |
457 | 225 | newtheme = ThemeXML() | 274 | newtheme = ThemeXML() |
458 | 226 | 275 | ||
459 | === modified file 'openlp/core/ui/themestab.py' | |||
460 | --- openlp/core/ui/themestab.py 2009-06-16 18:21:24 +0000 | |||
461 | +++ openlp/core/ui/themestab.py 2009-08-07 19:05:00 +0000 | |||
462 | @@ -99,8 +99,6 @@ | |||
463 | 99 | QtCore.QObject.connect(self.DefaultComboBox, | 99 | QtCore.QObject.connect(self.DefaultComboBox, |
464 | 100 | QtCore.SIGNAL(u'activated(int)'), self.onDefaultComboBoxChanged) | 100 | QtCore.SIGNAL(u'activated(int)'), self.onDefaultComboBoxChanged) |
465 | 101 | 101 | ||
466 | 102 | #self.DefaultListView.setScaledContents(True) | ||
467 | 103 | |||
468 | 104 | def retranslateUi(self): | 102 | def retranslateUi(self): |
469 | 105 | self.GlobalGroupBox.setTitle(translate(u'ThemesTab', u'Global theme')) | 103 | self.GlobalGroupBox.setTitle(translate(u'ThemesTab', u'Global theme')) |
470 | 106 | self.LevelGroupBox.setTitle(translate(u'ThemesTab', u'Theme level')) | 104 | self.LevelGroupBox.setTitle(translate(u'ThemesTab', u'Theme level')) |
471 | @@ -138,9 +136,9 @@ | |||
472 | 138 | self.parent.RenderManager.set_global_theme(self.global_theme, self.global_style) | 136 | self.parent.RenderManager.set_global_theme(self.global_theme, self.global_style) |
473 | 139 | 137 | ||
474 | 140 | def onDefaultComboBoxChanged(self, value): | 138 | def onDefaultComboBoxChanged(self, value): |
476 | 141 | self.global_theme = self.DefaultComboBox.currentText() | 139 | self.global_theme = unicode(self.DefaultComboBox.currentText()) |
477 | 142 | self.parent.RenderManager.set_global_theme(self.global_theme, self.global_style) | 140 | self.parent.RenderManager.set_global_theme(self.global_theme, self.global_style) |
479 | 143 | image = self.parent.ThemeManagerContents.getPreviewImage(unicode(self.global_theme)) | 141 | image = self.parent.ThemeManagerContents.getPreviewImage(self.global_theme) |
480 | 144 | preview = QtGui.QPixmap(unicode(image)) | 142 | preview = QtGui.QPixmap(unicode(image)) |
481 | 145 | display = preview.scaled(300, 255, QtCore.Qt.KeepAspectRatio, QtCore.Qt.SmoothTransformation) | 143 | display = preview.scaled(300, 255, QtCore.Qt.KeepAspectRatio, QtCore.Qt.SmoothTransformation) |
482 | 146 | self.DefaultListView.setPixmap(display) | 144 | self.DefaultListView.setPixmap(display) |
483 | @@ -149,17 +147,19 @@ | |||
484 | 149 | """ | 147 | """ |
485 | 150 | Called from ThemeManager when the Themes have changed | 148 | Called from ThemeManager when the Themes have changed |
486 | 151 | """ | 149 | """ |
487 | 150 | #reload as may have been triggered by the ThemeManager | ||
488 | 151 | self.global_theme = self.config.get_config(u'theme global theme', u'') | ||
489 | 152 | self.DefaultComboBox.clear() | 152 | self.DefaultComboBox.clear() |
490 | 153 | for theme in theme_list: | 153 | for theme in theme_list: |
491 | 154 | self.DefaultComboBox.addItem(theme) | 154 | self.DefaultComboBox.addItem(theme) |
493 | 155 | id = self.DefaultComboBox.findText(unicode(self.global_theme), QtCore.Qt.MatchExactly) | 155 | id = self.DefaultComboBox.findText(self.global_theme, QtCore.Qt.MatchExactly) |
494 | 156 | if id == -1: | 156 | if id == -1: |
495 | 157 | id = 0 # Not Found | 157 | id = 0 # Not Found |
496 | 158 | self.global_theme = u'' | 158 | self.global_theme = u'' |
497 | 159 | self.DefaultComboBox.setCurrentIndex(id) | 159 | self.DefaultComboBox.setCurrentIndex(id) |
498 | 160 | self.parent.RenderManager.set_global_theme(self.global_theme, self.global_style) | 160 | self.parent.RenderManager.set_global_theme(self.global_theme, self.global_style) |
499 | 161 | if self.global_theme is not u'': | 161 | if self.global_theme is not u'': |
501 | 162 | image = self.parent.ThemeManagerContents.getPreviewImage(unicode(self.global_theme)) | 162 | image = self.parent.ThemeManagerContents.getPreviewImage(self.global_theme) |
502 | 163 | preview = QtGui.QPixmap(unicode(image)) | 163 | preview = QtGui.QPixmap(unicode(image)) |
503 | 164 | display = preview.scaled(300, 255, QtCore.Qt.KeepAspectRatio, QtCore.Qt.SmoothTransformation) | 164 | display = preview.scaled(300, 255, QtCore.Qt.KeepAspectRatio, QtCore.Qt.SmoothTransformation) |
504 | 165 | self.DefaultListView.setPixmap(display) | ||
505 | 166 | \ No newline at end of file | 165 | \ No newline at end of file |
506 | 166 | self.DefaultListView.setPixmap(display) | ||
507 | 167 | 167 | ||
508 | === modified file 'openlp/plugins/bibles/forms/bibleimportdialog.py' | |||
509 | --- openlp/plugins/bibles/forms/bibleimportdialog.py 2009-06-19 19:49:00 +0000 | |||
510 | +++ openlp/plugins/bibles/forms/bibleimportdialog.py 2009-08-07 17:19:32 +0000 | |||
511 | @@ -2,49 +2,110 @@ | |||
512 | 2 | 2 | ||
513 | 3 | # Form implementation generated from reading ui file 'bibleimportdialog.ui' | 3 | # Form implementation generated from reading ui file 'bibleimportdialog.ui' |
514 | 4 | # | 4 | # |
516 | 5 | # Created: Fri Feb 20 05:45:22 2009 | 5 | # Created: Fri Aug 7 06:07:06 2009 |
517 | 6 | # by: PyQt4 UI code generator 4.4.4 | 6 | # by: PyQt4 UI code generator 4.4.4 |
518 | 7 | # | 7 | # |
519 | 8 | # WARNING! All changes made in this file will be lost! | 8 | # WARNING! All changes made in this file will be lost! |
520 | 9 | 9 | ||
521 | 10 | from PyQt4 import QtCore, QtGui | 10 | from PyQt4 import QtCore, QtGui |
522 | 11 | from openlp.core.lib import translate | ||
523 | 12 | 11 | ||
524 | 13 | class Ui_BibleImportDialog(object): | 12 | class Ui_BibleImportDialog(object): |
525 | 14 | def setupUi(self, BibleImportDialog): | 13 | def setupUi(self, BibleImportDialog): |
526 | 15 | BibleImportDialog.setObjectName(u'BibleImportDialog') | 14 | BibleImportDialog.setObjectName(u'BibleImportDialog') |
528 | 16 | BibleImportDialog.resize(494, 725) | 15 | BibleImportDialog.resize(500, 686) |
529 | 17 | icon = QtGui.QIcon() | 16 | icon = QtGui.QIcon() |
531 | 18 | icon.addPixmap(QtGui.QPixmap(u':/icon/openlp-logo-16x16.png'), QtGui.QIcon.Normal, QtGui.QIcon.Off) | 17 | icon.addPixmap(QtGui.QPixmap(u':/icon/openlp.org-icon-32.bmp'), QtGui.QIcon.Normal, QtGui.QIcon.Off) |
532 | 19 | BibleImportDialog.setWindowIcon(icon) | 18 | BibleImportDialog.setWindowIcon(icon) |
542 | 20 | self.ImportToolBox = QtGui.QToolBox(BibleImportDialog) | 19 | self.LicenceDetailsGroupBox = QtGui.QGroupBox(BibleImportDialog) |
543 | 21 | self.ImportToolBox.setGeometry(QtCore.QRect(20, 20, 451, 401)) | 20 | self.LicenceDetailsGroupBox.setGeometry(QtCore.QRect(10, 400, 480, 151)) |
544 | 22 | self.ImportToolBox.setFrameShape(QtGui.QFrame.StyledPanel) | 21 | self.LicenceDetailsGroupBox.setMinimumSize(QtCore.QSize(0, 123)) |
545 | 23 | self.ImportToolBox.setObjectName(u'ImportToolBox') | 22 | self.LicenceDetailsGroupBox.setObjectName(u'LicenceDetailsGroupBox') |
546 | 24 | self.FileImportPage = QtGui.QWidget() | 23 | self.formLayout = QtGui.QFormLayout(self.LicenceDetailsGroupBox) |
547 | 25 | self.FileImportPage.setGeometry(QtCore.QRect(0, 0, 447, 337)) | 24 | self.formLayout.setMargin(8) |
548 | 26 | self.FileImportPage.setObjectName(u'FileImportPage') | 25 | self.formLayout.setHorizontalSpacing(8) |
549 | 27 | self.OSISGroupBox = QtGui.QGroupBox(self.FileImportPage) | 26 | self.formLayout.setObjectName(u'formLayout') |
550 | 28 | self.OSISGroupBox.setGeometry(QtCore.QRect(18, 65, 411, 81)) | 27 | self.VersionNameLabel = QtGui.QLabel(self.LicenceDetailsGroupBox) |
551 | 28 | self.VersionNameLabel.setObjectName(u'VersionNameLabel') | ||
552 | 29 | self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.VersionNameLabel) | ||
553 | 30 | self.VersionNameEdit = QtGui.QLineEdit(self.LicenceDetailsGroupBox) | ||
554 | 31 | self.VersionNameEdit.setObjectName(u'VersionNameEdit') | ||
555 | 32 | self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.VersionNameEdit) | ||
556 | 33 | self.CopyrightLabel = QtGui.QLabel(self.LicenceDetailsGroupBox) | ||
557 | 34 | self.CopyrightLabel.setObjectName(u'CopyrightLabel') | ||
558 | 35 | self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.CopyrightLabel) | ||
559 | 36 | self.CopyrightEdit = QtGui.QLineEdit(self.LicenceDetailsGroupBox) | ||
560 | 37 | self.CopyrightEdit.setObjectName(u'CopyrightEdit') | ||
561 | 38 | self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.CopyrightEdit) | ||
562 | 39 | self.PermisionLabel = QtGui.QLabel(self.LicenceDetailsGroupBox) | ||
563 | 40 | self.PermisionLabel.setObjectName(u'PermisionLabel') | ||
564 | 41 | self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.PermisionLabel) | ||
565 | 42 | self.PermisionEdit = QtGui.QLineEdit(self.LicenceDetailsGroupBox) | ||
566 | 43 | self.PermisionEdit.setObjectName(u'PermisionEdit') | ||
567 | 44 | self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.PermisionEdit) | ||
568 | 45 | self.MessageLabel = QtGui.QLabel(BibleImportDialog) | ||
569 | 46 | self.MessageLabel.setGeometry(QtCore.QRect(20, 670, 271, 17)) | ||
570 | 47 | self.MessageLabel.setObjectName(u'MessageLabel') | ||
571 | 48 | self.ProgressGroupBox = QtGui.QGroupBox(BibleImportDialog) | ||
572 | 49 | self.ProgressGroupBox.setGeometry(QtCore.QRect(10, 550, 480, 70)) | ||
573 | 50 | self.ProgressGroupBox.setObjectName(u'ProgressGroupBox') | ||
574 | 51 | self.gridLayout_3 = QtGui.QGridLayout(self.ProgressGroupBox) | ||
575 | 52 | self.gridLayout_3.setObjectName(u'gridLayout_3') | ||
576 | 53 | self.ProgressBar = QtGui.QProgressBar(self.ProgressGroupBox) | ||
577 | 54 | self.ProgressBar.setProperty(u'value', QtCore.QVariant(0)) | ||
578 | 55 | self.ProgressBar.setInvertedAppearance(False) | ||
579 | 56 | self.ProgressBar.setObjectName(u'ProgressBar') | ||
580 | 57 | self.gridLayout_3.addWidget(self.ProgressBar, 0, 0, 1, 1) | ||
581 | 58 | self.layoutWidget = QtGui.QWidget(BibleImportDialog) | ||
582 | 59 | self.layoutWidget.setGeometry(QtCore.QRect(310, 630, 180, 38)) | ||
583 | 60 | self.layoutWidget.setObjectName(u'layoutWidget') | ||
584 | 61 | self.horizontalLayout = QtGui.QHBoxLayout(self.layoutWidget) | ||
585 | 62 | self.horizontalLayout.setMargin(6) | ||
586 | 63 | self.horizontalLayout.setObjectName(u'horizontalLayout') | ||
587 | 64 | self.ImportButton = QtGui.QPushButton(self.layoutWidget) | ||
588 | 65 | self.ImportButton.setObjectName(u'ImportButton') | ||
589 | 66 | self.horizontalLayout.addWidget(self.ImportButton) | ||
590 | 67 | self.CancelButton = QtGui.QPushButton(self.layoutWidget) | ||
591 | 68 | self.CancelButton.setObjectName(u'CancelButton') | ||
592 | 69 | self.horizontalLayout.addWidget(self.CancelButton) | ||
593 | 70 | self.tabWidget = QtGui.QTabWidget(BibleImportDialog) | ||
594 | 71 | self.tabWidget.setGeometry(QtCore.QRect(10, 30, 480, 361)) | ||
595 | 72 | self.tabWidget.setObjectName(u'tabWidget') | ||
596 | 73 | self.OsisTab = QtGui.QWidget() | ||
597 | 74 | self.OsisTab.setObjectName(u'OsisTab') | ||
598 | 75 | self.OSISGroupBox = QtGui.QGroupBox(self.OsisTab) | ||
599 | 76 | self.OSISGroupBox.setGeometry(QtCore.QRect(10, 10, 460, 141)) | ||
600 | 29 | self.OSISGroupBox.setObjectName(u'OSISGroupBox') | 77 | self.OSISGroupBox.setObjectName(u'OSISGroupBox') |
601 | 30 | self.gridLayout_2 = QtGui.QGridLayout(self.OSISGroupBox) | 78 | self.gridLayout_2 = QtGui.QGridLayout(self.OSISGroupBox) |
602 | 31 | self.gridLayout_2.setMargin(8) | ||
603 | 32 | self.gridLayout_2.setSpacing(8) | ||
604 | 33 | self.gridLayout_2.setObjectName(u'gridLayout_2') | 79 | self.gridLayout_2.setObjectName(u'gridLayout_2') |
605 | 80 | self.horizontalLayout_2 = QtGui.QHBoxLayout() | ||
606 | 81 | self.horizontalLayout_2.setObjectName(u'horizontalLayout_2') | ||
607 | 82 | self.BibleNameLabel = QtGui.QLabel(self.OSISGroupBox) | ||
608 | 83 | self.BibleNameLabel.setObjectName(u'BibleNameLabel') | ||
609 | 84 | self.horizontalLayout_2.addWidget(self.BibleNameLabel) | ||
610 | 85 | self.BibleNameEdit = QtGui.QLineEdit(self.OSISGroupBox) | ||
611 | 86 | self.BibleNameEdit.setObjectName(u'BibleNameEdit') | ||
612 | 87 | self.horizontalLayout_2.addWidget(self.BibleNameEdit) | ||
613 | 88 | self.gridLayout_2.addLayout(self.horizontalLayout_2, 0, 0, 1, 1) | ||
614 | 89 | self.horizontalLayout_3 = QtGui.QHBoxLayout() | ||
615 | 90 | self.horizontalLayout_3.setObjectName(u'horizontalLayout_3') | ||
616 | 34 | self.LocatioLabel = QtGui.QLabel(self.OSISGroupBox) | 91 | self.LocatioLabel = QtGui.QLabel(self.OSISGroupBox) |
617 | 35 | self.LocatioLabel.setObjectName(u'LocatioLabel') | 92 | self.LocatioLabel.setObjectName(u'LocatioLabel') |
619 | 36 | self.gridLayout_2.addWidget(self.LocatioLabel, 0, 0, 1, 1) | 93 | self.horizontalLayout_3.addWidget(self.LocatioLabel) |
620 | 37 | self.OSISLocationEdit = QtGui.QLineEdit(self.OSISGroupBox) | 94 | self.OSISLocationEdit = QtGui.QLineEdit(self.OSISGroupBox) |
621 | 38 | self.OSISLocationEdit.setObjectName(u'OSISLocationEdit') | 95 | self.OSISLocationEdit.setObjectName(u'OSISLocationEdit') |
623 | 39 | self.gridLayout_2.addWidget(self.OSISLocationEdit, 0, 1, 1, 1) | 96 | self.horizontalLayout_3.addWidget(self.OSISLocationEdit) |
624 | 40 | self.OsisFileButton = QtGui.QPushButton(self.OSISGroupBox) | 97 | self.OsisFileButton = QtGui.QPushButton(self.OSISGroupBox) |
625 | 41 | icon1 = QtGui.QIcon() | 98 | icon1 = QtGui.QIcon() |
626 | 42 | icon1.addPixmap(QtGui.QPixmap(u':/imports/import_load.png'), QtGui.QIcon.Normal, QtGui.QIcon.Off) | 99 | icon1.addPixmap(QtGui.QPixmap(u':/imports/import_load.png'), QtGui.QIcon.Normal, QtGui.QIcon.Off) |
627 | 43 | self.OsisFileButton.setIcon(icon1) | 100 | self.OsisFileButton.setIcon(icon1) |
628 | 44 | self.OsisFileButton.setObjectName(u'OsisFileButton') | 101 | self.OsisFileButton.setObjectName(u'OsisFileButton') |
632 | 45 | self.gridLayout_2.addWidget(self.OsisFileButton, 0, 2, 1, 1) | 102 | self.horizontalLayout_3.addWidget(self.OsisFileButton) |
633 | 46 | self.CVSGroupBox = QtGui.QGroupBox(self.FileImportPage) | 103 | self.gridLayout_2.addLayout(self.horizontalLayout_3, 1, 0, 1, 1) |
634 | 47 | self.CVSGroupBox.setGeometry(QtCore.QRect(20, 170, 411, 191)) | 104 | self.tabWidget.addTab(self.OsisTab, u'') |
635 | 105 | self.CsvTab = QtGui.QWidget() | ||
636 | 106 | self.CsvTab.setObjectName(u'CsvTab') | ||
637 | 107 | self.CVSGroupBox = QtGui.QGroupBox(self.CsvTab) | ||
638 | 108 | self.CVSGroupBox.setGeometry(QtCore.QRect(10, 10, 460, 191)) | ||
639 | 48 | self.CVSGroupBox.setObjectName(u'CVSGroupBox') | 109 | self.CVSGroupBox.setObjectName(u'CVSGroupBox') |
640 | 49 | self.gridLayout = QtGui.QGridLayout(self.CVSGroupBox) | 110 | self.gridLayout = QtGui.QGridLayout(self.CVSGroupBox) |
641 | 50 | self.gridLayout.setMargin(8) | 111 | self.gridLayout.setMargin(8) |
642 | @@ -70,43 +131,39 @@ | |||
643 | 70 | self.VersesFileButton.setIcon(icon1) | 131 | self.VersesFileButton.setIcon(icon1) |
644 | 71 | self.VersesFileButton.setObjectName(u'VersesFileButton') | 132 | self.VersesFileButton.setObjectName(u'VersesFileButton') |
645 | 72 | self.gridLayout.addWidget(self.VersesFileButton, 4, 2, 1, 1) | 133 | self.gridLayout.addWidget(self.VersesFileButton, 4, 2, 1, 1) |
661 | 73 | self.BibleNameEdit = QtGui.QLineEdit(self.FileImportPage) | 134 | self.tabWidget.addTab(self.CsvTab, u'') |
662 | 74 | self.BibleNameEdit.setGeometry(QtCore.QRect(100, 20, 280, 28)) | 135 | self.HttpTab = QtGui.QWidget() |
663 | 75 | self.BibleNameEdit.setObjectName(u'BibleNameEdit') | 136 | self.HttpTab.setObjectName(u'HttpTab') |
664 | 76 | self.BibleNameLabel = QtGui.QLabel(self.FileImportPage) | 137 | self.OptionsGroupBox = QtGui.QGroupBox(self.HttpTab) |
665 | 77 | self.BibleNameLabel.setGeometry(QtCore.QRect(18, 20, 98, 22)) | 138 | self.OptionsGroupBox.setGeometry(QtCore.QRect(10, 10, 460, 141)) |
651 | 78 | self.BibleNameLabel.setObjectName(u'BibleNameLabel') | ||
652 | 79 | self.ImportToolBox.addItem(self.FileImportPage, u'') | ||
653 | 80 | self.WebBiblePage = QtGui.QWidget() | ||
654 | 81 | self.WebBiblePage.setGeometry(QtCore.QRect(0, 0, 447, 337)) | ||
655 | 82 | self.WebBiblePage.setObjectName(u'WebBiblePage') | ||
656 | 83 | self.WebBibleLayout = QtGui.QVBoxLayout(self.WebBiblePage) | ||
657 | 84 | self.WebBibleLayout.setSpacing(8) | ||
658 | 85 | self.WebBibleLayout.setMargin(8) | ||
659 | 86 | self.WebBibleLayout.setObjectName(u'WebBibleLayout') | ||
660 | 87 | self.OptionsGroupBox = QtGui.QGroupBox(self.WebBiblePage) | ||
666 | 88 | self.OptionsGroupBox.setObjectName(u'OptionsGroupBox') | 139 | self.OptionsGroupBox.setObjectName(u'OptionsGroupBox') |
669 | 89 | self.formLayout_2 = QtGui.QFormLayout(self.OptionsGroupBox) | 140 | self.verticalLayout = QtGui.QVBoxLayout(self.OptionsGroupBox) |
670 | 90 | self.formLayout_2.setObjectName(u'formLayout_2') | 141 | self.verticalLayout.setObjectName(u'verticalLayout') |
671 | 142 | self.horizontalLayout_4 = QtGui.QHBoxLayout() | ||
672 | 143 | self.horizontalLayout_4.setObjectName(u'horizontalLayout_4') | ||
673 | 91 | self.LocationLabel = QtGui.QLabel(self.OptionsGroupBox) | 144 | self.LocationLabel = QtGui.QLabel(self.OptionsGroupBox) |
674 | 92 | self.LocationLabel.setObjectName(u'LocationLabel') | 145 | self.LocationLabel.setObjectName(u'LocationLabel') |
676 | 93 | self.formLayout_2.setWidget(0, QtGui.QFormLayout.LabelRole, self.LocationLabel) | 146 | self.horizontalLayout_4.addWidget(self.LocationLabel) |
677 | 94 | self.LocationComboBox = QtGui.QComboBox(self.OptionsGroupBox) | 147 | self.LocationComboBox = QtGui.QComboBox(self.OptionsGroupBox) |
678 | 95 | self.LocationComboBox.setObjectName(u'LocationComboBox') | 148 | self.LocationComboBox.setObjectName(u'LocationComboBox') |
679 | 96 | self.LocationComboBox.addItem(QtCore.QString()) | 149 | self.LocationComboBox.addItem(QtCore.QString()) |
681 | 97 | self.formLayout_2.setWidget(0, QtGui.QFormLayout.FieldRole, self.LocationComboBox) | 150 | self.horizontalLayout_4.addWidget(self.LocationComboBox) |
682 | 151 | self.verticalLayout.addLayout(self.horizontalLayout_4) | ||
683 | 152 | self.horizontalLayout_5 = QtGui.QHBoxLayout() | ||
684 | 153 | self.horizontalLayout_5.setObjectName(u'horizontalLayout_5') | ||
685 | 98 | self.BibleLabel = QtGui.QLabel(self.OptionsGroupBox) | 154 | self.BibleLabel = QtGui.QLabel(self.OptionsGroupBox) |
686 | 99 | self.BibleLabel.setObjectName(u'BibleLabel') | 155 | self.BibleLabel.setObjectName(u'BibleLabel') |
688 | 100 | self.formLayout_2.setWidget(1, QtGui.QFormLayout.LabelRole, self.BibleLabel) | 156 | self.horizontalLayout_5.addWidget(self.BibleLabel) |
689 | 101 | self.BibleComboBox = QtGui.QComboBox(self.OptionsGroupBox) | 157 | self.BibleComboBox = QtGui.QComboBox(self.OptionsGroupBox) |
690 | 102 | self.BibleComboBox.setObjectName(u'BibleComboBox') | 158 | self.BibleComboBox.setObjectName(u'BibleComboBox') |
691 | 103 | self.BibleComboBox.addItem(QtCore.QString()) | 159 | self.BibleComboBox.addItem(QtCore.QString()) |
692 | 104 | self.BibleComboBox.setItemText(0, u'') | 160 | self.BibleComboBox.setItemText(0, u'') |
693 | 105 | self.BibleComboBox.addItem(QtCore.QString()) | 161 | self.BibleComboBox.addItem(QtCore.QString()) |
694 | 106 | self.BibleComboBox.addItem(QtCore.QString()) | 162 | self.BibleComboBox.addItem(QtCore.QString()) |
698 | 107 | self.formLayout_2.setWidget(1, QtGui.QFormLayout.FieldRole, self.BibleComboBox) | 163 | self.horizontalLayout_5.addWidget(self.BibleComboBox) |
699 | 108 | self.WebBibleLayout.addWidget(self.OptionsGroupBox) | 164 | self.verticalLayout.addLayout(self.horizontalLayout_5) |
700 | 109 | self.ProxyGroupBox = QtGui.QGroupBox(self.WebBiblePage) | 165 | self.ProxyGroupBox = QtGui.QGroupBox(self.HttpTab) |
701 | 166 | self.ProxyGroupBox.setGeometry(QtCore.QRect(10, 160, 460, 161)) | ||
702 | 110 | self.ProxyGroupBox.setObjectName(u'ProxyGroupBox') | 167 | self.ProxyGroupBox.setObjectName(u'ProxyGroupBox') |
703 | 111 | self.ProxySettingsLayout = QtGui.QFormLayout(self.ProxyGroupBox) | 168 | self.ProxySettingsLayout = QtGui.QFormLayout(self.ProxyGroupBox) |
704 | 112 | self.ProxySettingsLayout.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow) | 169 | self.ProxySettingsLayout.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow) |
705 | @@ -129,66 +186,12 @@ | |||
706 | 129 | self.PasswordLabel.setObjectName(u'PasswordLabel') | 186 | self.PasswordLabel.setObjectName(u'PasswordLabel') |
707 | 130 | self.ProxySettingsLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.PasswordLabel) | 187 | self.ProxySettingsLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.PasswordLabel) |
708 | 131 | self.PasswordEdit = QtGui.QLineEdit(self.ProxyGroupBox) | 188 | self.PasswordEdit = QtGui.QLineEdit(self.ProxyGroupBox) |
709 | 132 | self.PasswordEdit.setEchoMode(QtGui.QLineEdit.Password) | ||
710 | 133 | self.PasswordEdit.setObjectName(u'PasswordEdit') | 189 | self.PasswordEdit.setObjectName(u'PasswordEdit') |
711 | 134 | self.ProxySettingsLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.PasswordEdit) | 190 | self.ProxySettingsLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.PasswordEdit) |
765 | 135 | self.WebBibleLayout.addWidget(self.ProxyGroupBox) | 191 | self.tabWidget.addTab(self.HttpTab, u'') |
713 | 136 | self.ImportToolBox.addItem(self.WebBiblePage, u'') | ||
714 | 137 | self.LicenceDetailsGroupBox = QtGui.QGroupBox(BibleImportDialog) | ||
715 | 138 | self.LicenceDetailsGroupBox.setGeometry(QtCore.QRect(10, 435, 471, 151)) | ||
716 | 139 | self.LicenceDetailsGroupBox.setMinimumSize(QtCore.QSize(0, 123)) | ||
717 | 140 | self.LicenceDetailsGroupBox.setObjectName(u'LicenceDetailsGroupBox') | ||
718 | 141 | self.formLayout = QtGui.QFormLayout(self.LicenceDetailsGroupBox) | ||
719 | 142 | self.formLayout.setMargin(8) | ||
720 | 143 | self.formLayout.setHorizontalSpacing(8) | ||
721 | 144 | self.formLayout.setObjectName(u'formLayout') | ||
722 | 145 | self.VersionNameLabel = QtGui.QLabel(self.LicenceDetailsGroupBox) | ||
723 | 146 | self.VersionNameLabel.setObjectName(u'VersionNameLabel') | ||
724 | 147 | self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.VersionNameLabel) | ||
725 | 148 | self.VersionNameEdit = QtGui.QLineEdit(self.LicenceDetailsGroupBox) | ||
726 | 149 | self.VersionNameEdit.setObjectName(u'VersionNameEdit') | ||
727 | 150 | self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.VersionNameEdit) | ||
728 | 151 | self.CopyrightLabel = QtGui.QLabel(self.LicenceDetailsGroupBox) | ||
729 | 152 | self.CopyrightLabel.setObjectName(u'CopyrightLabel') | ||
730 | 153 | self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.CopyrightLabel) | ||
731 | 154 | self.CopyrightEdit = QtGui.QLineEdit(self.LicenceDetailsGroupBox) | ||
732 | 155 | self.CopyrightEdit.setObjectName(u'CopyrightEdit') | ||
733 | 156 | self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.CopyrightEdit) | ||
734 | 157 | self.PermisionLabel = QtGui.QLabel(self.LicenceDetailsGroupBox) | ||
735 | 158 | self.PermisionLabel.setObjectName(u'PermisionLabel') | ||
736 | 159 | self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.PermisionLabel) | ||
737 | 160 | self.PermisionEdit = QtGui.QLineEdit(self.LicenceDetailsGroupBox) | ||
738 | 161 | self.PermisionEdit.setObjectName(u'PermisionEdit') | ||
739 | 162 | self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.PermisionEdit) | ||
740 | 163 | self.MessageLabel = QtGui.QLabel(BibleImportDialog) | ||
741 | 164 | self.MessageLabel.setGeometry(QtCore.QRect(20, 670, 271, 17)) | ||
742 | 165 | self.MessageLabel.setObjectName(u'MessageLabel') | ||
743 | 166 | self.ProgressGroupBox = QtGui.QGroupBox(BibleImportDialog) | ||
744 | 167 | self.ProgressGroupBox.setGeometry(QtCore.QRect(10, 600, 471, 70)) | ||
745 | 168 | self.ProgressGroupBox.setObjectName(u'ProgressGroupBox') | ||
746 | 169 | self.gridLayout_3 = QtGui.QGridLayout(self.ProgressGroupBox) | ||
747 | 170 | self.gridLayout_3.setObjectName(u'gridLayout_3') | ||
748 | 171 | self.ProgressBar = QtGui.QProgressBar(self.ProgressGroupBox) | ||
749 | 172 | self.ProgressBar.setProperty(u'value', QtCore.QVariant(0)) | ||
750 | 173 | self.ProgressBar.setInvertedAppearance(False) | ||
751 | 174 | self.ProgressBar.setObjectName(u'ProgressBar') | ||
752 | 175 | self.gridLayout_3.addWidget(self.ProgressBar, 0, 0, 1, 1) | ||
753 | 176 | self.layoutWidget = QtGui.QWidget(BibleImportDialog) | ||
754 | 177 | self.layoutWidget.setGeometry(QtCore.QRect(300, 680, 180, 38)) | ||
755 | 178 | self.layoutWidget.setObjectName(u'layoutWidget') | ||
756 | 179 | self.horizontalLayout = QtGui.QHBoxLayout(self.layoutWidget) | ||
757 | 180 | self.horizontalLayout.setMargin(6) | ||
758 | 181 | self.horizontalLayout.setObjectName(u'horizontalLayout') | ||
759 | 182 | self.ImportButton = QtGui.QPushButton(self.layoutWidget) | ||
760 | 183 | self.ImportButton.setObjectName(u'ImportButton') | ||
761 | 184 | self.horizontalLayout.addWidget(self.ImportButton) | ||
762 | 185 | self.CancelButton = QtGui.QPushButton(self.layoutWidget) | ||
763 | 186 | self.CancelButton.setObjectName(u'CancelButton') | ||
764 | 187 | self.horizontalLayout.addWidget(self.CancelButton) | ||
766 | 188 | 192 | ||
767 | 189 | self.retranslateUi(BibleImportDialog) | 193 | self.retranslateUi(BibleImportDialog) |
770 | 190 | self.ImportToolBox.setCurrentIndex(1) | 194 | self.tabWidget.setCurrentIndex(2) |
769 | 191 | |||
771 | 192 | QtCore.QMetaObject.connectSlotsByName(BibleImportDialog) | 195 | QtCore.QMetaObject.connectSlotsByName(BibleImportDialog) |
772 | 193 | BibleImportDialog.setTabOrder(self.BibleNameEdit, self.OSISLocationEdit) | 196 | BibleImportDialog.setTabOrder(self.BibleNameEdit, self.OSISLocationEdit) |
773 | 194 | BibleImportDialog.setTabOrder(self.OSISLocationEdit, self.OsisFileButton) | 197 | BibleImportDialog.setTabOrder(self.OSISLocationEdit, self.OsisFileButton) |
774 | @@ -206,30 +209,31 @@ | |||
775 | 206 | BibleImportDialog.setTabOrder(self.CopyrightEdit, self.PermisionEdit) | 209 | BibleImportDialog.setTabOrder(self.CopyrightEdit, self.PermisionEdit) |
776 | 207 | 210 | ||
777 | 208 | def retranslateUi(self, BibleImportDialog): | 211 | def retranslateUi(self, BibleImportDialog): |
805 | 209 | BibleImportDialog.setWindowTitle(translate(u'BibleImportDialog', u'Bible Registration')) | 212 | BibleImportDialog.setWindowTitle(QtGui.QApplication.translate(u'BibleImportDialog', u'Bible Registration', None, QtGui.QApplication.UnicodeUTF8)) |
806 | 210 | self.OSISGroupBox.setTitle(translate(u'BibleImportDialog', u'OSIS Bible')) | 213 | self.LicenceDetailsGroupBox.setTitle(QtGui.QApplication.translate(u'BibleImportDialog', u'Licence Details', None, QtGui.QApplication.UnicodeUTF8)) |
807 | 211 | self.LocatioLabel.setText(translate(u'BibleImportDialog', u'File Location:')) | 214 | self.VersionNameLabel.setText(QtGui.QApplication.translate(u'BibleImportDialog', u'Version Name:', None, QtGui.QApplication.UnicodeUTF8)) |
808 | 212 | self.CVSGroupBox.setTitle(translate(u'BibleImportDialog', u'CVS Bible')) | 215 | self.CopyrightLabel.setText(QtGui.QApplication.translate(u'BibleImportDialog', u'Copyright:', None, QtGui.QApplication.UnicodeUTF8)) |
809 | 213 | self.BooksLocationLabel.setText(translate(u'BibleImportDialog', u'Books Location:')) | 216 | self.PermisionLabel.setText(QtGui.QApplication.translate(u'BibleImportDialog', u'Permission:', None, QtGui.QApplication.UnicodeUTF8)) |
810 | 214 | self.VerseLocationLabel.setText(translate(u'BibleImportDialog', u'Verse Location:')) | 217 | self.ProgressGroupBox.setTitle(QtGui.QApplication.translate(u'BibleImportDialog', u'Import Progress', None, QtGui.QApplication.UnicodeUTF8)) |
811 | 215 | self.BibleNameLabel.setText(translate(u'BibleImportDialog', u'Bible Name:')) | 218 | self.ProgressBar.setFormat(QtGui.QApplication.translate(u'BibleImportDialog', u'%p', None, QtGui.QApplication.UnicodeUTF8)) |
812 | 216 | self.ImportToolBox.setItemText(self.ImportToolBox.indexOf(self.FileImportPage), translate(u'BibleImportDialog', u'File Import Page')) | 219 | self.ImportButton.setText(QtGui.QApplication.translate(u'BibleImportDialog', u'Import', None, QtGui.QApplication.UnicodeUTF8)) |
813 | 217 | self.OptionsGroupBox.setTitle(translate(u'BibleImportDialog', u'Download Options')) | 220 | self.CancelButton.setText(QtGui.QApplication.translate(u'BibleImportDialog', u'Cancel', None, QtGui.QApplication.UnicodeUTF8)) |
814 | 218 | self.LocationLabel.setText(translate(u'BibleImportDialog', u'Location:')) | 221 | self.OSISGroupBox.setTitle(QtGui.QApplication.translate(u'BibleImportDialog', u'OSIS Bible', None, QtGui.QApplication.UnicodeUTF8)) |
815 | 219 | self.LocationComboBox.setItemText(0, translate(u'BibleImportDialog', u'Crosswalk')) | 222 | self.BibleNameLabel.setText(QtGui.QApplication.translate(u'BibleImportDialog', u'Bible Name:', None, QtGui.QApplication.UnicodeUTF8)) |
816 | 220 | self.BibleLabel.setText(translate(u'BibleImportDialog', u'Bible:')) | 223 | self.LocatioLabel.setText(QtGui.QApplication.translate(u'BibleImportDialog', u'File Location:', None, QtGui.QApplication.UnicodeUTF8)) |
817 | 221 | self.BibleComboBox.setItemText(1, translate(u'BibleImportDialog', u'NIV')) | 224 | self.tabWidget.setTabText(self.tabWidget.indexOf(self.OsisTab), QtGui.QApplication.translate(u'BibleImportDialog', u'Osis (Sword) Imports', None, QtGui.QApplication.UnicodeUTF8)) |
818 | 222 | self.BibleComboBox.setItemText(2, translate(u'BibleImportDialog', u'KJV')) | 225 | self.CVSGroupBox.setTitle(QtGui.QApplication.translate(u'BibleImportDialog', u'CVS Bible', None, QtGui.QApplication.UnicodeUTF8)) |
819 | 223 | self.ProxyGroupBox.setTitle(translate(u'BibleImportDialog', u'Proxy Settings (Optional)')) | 226 | self.BooksLocationLabel.setText(QtGui.QApplication.translate(u'BibleImportDialog', u'Books Location:', None, QtGui.QApplication.UnicodeUTF8)) |
820 | 224 | self.AddressLabel.setText(translate(u'BibleImportDialog', u'Proxy Address:')) | 227 | self.VerseLocationLabel.setText(QtGui.QApplication.translate(u'BibleImportDialog', u'Verse Location:', None, QtGui.QApplication.UnicodeUTF8)) |
821 | 225 | self.UsernameLabel.setText(translate(u'BibleImportDialog', u'Username:')) | 228 | self.tabWidget.setTabText(self.tabWidget.indexOf(self.CsvTab), QtGui.QApplication.translate(u'BibleImportDialog', u'CSV File Imports', None, QtGui.QApplication.UnicodeUTF8)) |
822 | 226 | self.PasswordLabel.setText(translate(u'BibleImportDialog', u'Password:')) | 229 | self.OptionsGroupBox.setTitle(QtGui.QApplication.translate(u'BibleImportDialog', u'Download Options', None, QtGui.QApplication.UnicodeUTF8)) |
823 | 227 | self.ImportToolBox.setItemText(self.ImportToolBox.indexOf(self.WebBiblePage), translate(u'BibleImportDialog', u'Web Bible Import page')) | 230 | self.LocationLabel.setText(QtGui.QApplication.translate(u'BibleImportDialog', u'Location:', None, QtGui.QApplication.UnicodeUTF8)) |
824 | 228 | self.LicenceDetailsGroupBox.setTitle(translate(u'BibleImportDialog', u'Licence Details')) | 231 | self.LocationComboBox.setItemText(0, QtGui.QApplication.translate(u'BibleImportDialog', u'Crosswalk', None, QtGui.QApplication.UnicodeUTF8)) |
825 | 229 | self.VersionNameLabel.setText(translate(u'BibleImportDialog', u'Version Name:')) | 232 | self.BibleLabel.setText(QtGui.QApplication.translate(u'BibleImportDialog', u'Bible:', None, QtGui.QApplication.UnicodeUTF8)) |
826 | 230 | self.CopyrightLabel.setText(translate(u'BibleImportDialog', u'Copyright:')) | 233 | self.BibleComboBox.setItemText(1, QtGui.QApplication.translate(u'BibleImportDialog', u'NIV', None, QtGui.QApplication.UnicodeUTF8)) |
827 | 231 | self.PermisionLabel.setText(translate(u'BibleImportDialog', u'Permission:')) | 234 | self.BibleComboBox.setItemText(2, QtGui.QApplication.translate(u'BibleImportDialog', u'KJV', None, QtGui.QApplication.UnicodeUTF8)) |
828 | 232 | self.ProgressGroupBox.setTitle(translate(u'BibleImportDialog', u'Import Progress')) | 235 | self.ProxyGroupBox.setTitle(QtGui.QApplication.translate(u'BibleImportDialog', u'Proxy Settings (Optional)', None, QtGui.QApplication.UnicodeUTF8)) |
829 | 233 | self.ProgressBar.setFormat(translate(u'BibleImportDialog', u'%p')) | 236 | self.AddressLabel.setText(QtGui.QApplication.translate(u'BibleImportDialog', u'Proxy Address:', None, QtGui.QApplication.UnicodeUTF8)) |
830 | 234 | self.ImportButton.setText(translate(u'BibleImportDialog', u'Import')) | 237 | self.UsernameLabel.setText(QtGui.QApplication.translate(u'BibleImportDialog', u'Username:', None, QtGui.QApplication.UnicodeUTF8)) |
831 | 235 | self.CancelButton.setText(translate(u'BibleImportDialog', u'Cancel')) | 238 | self.PasswordLabel.setText(QtGui.QApplication.translate(u'BibleImportDialog', u'Password:', None, QtGui.QApplication.UnicodeUTF8)) |
832 | 239 | self.tabWidget.setTabText(self.tabWidget.indexOf(self.HttpTab), QtGui.QApplication.translate(u'BibleImportDialog', u'Web Downloads', None, QtGui.QApplication.UnicodeUTF8)) | ||
833 | 236 | 240 | ||
834 | === modified file 'resources/forms/bibleimportdialog.ui' | |||
835 | --- resources/forms/bibleimportdialog.ui 2009-02-20 17:10:30 +0000 | |||
836 | +++ resources/forms/bibleimportdialog.ui 2009-08-07 17:19:32 +0000 | |||
837 | @@ -6,307 +6,23 @@ | |||
838 | 6 | <rect> | 6 | <rect> |
839 | 7 | <x>0</x> | 7 | <x>0</x> |
840 | 8 | <y>0</y> | 8 | <y>0</y> |
843 | 9 | <width>494</width> | 9 | <width>500</width> |
844 | 10 | <height>725</height> | 10 | <height>686</height> |
845 | 11 | </rect> | 11 | </rect> |
846 | 12 | </property> | 12 | </property> |
847 | 13 | <property name="windowTitle"> | 13 | <property name="windowTitle"> |
848 | 14 | <string>Bible Registration</string> | 14 | <string>Bible Registration</string> |
849 | 15 | </property> | 15 | </property> |
850 | 16 | <property name="windowIcon"> | 16 | <property name="windowIcon"> |
852 | 17 | <iconset resource="../images/openlp-2.qrc"> | 17 | <iconset> |
853 | 18 | <normaloff>:/icon/openlp.org-icon-32.bmp</normaloff>:/icon/openlp.org-icon-32.bmp</iconset> | 18 | <normaloff>:/icon/openlp.org-icon-32.bmp</normaloff>:/icon/openlp.org-icon-32.bmp</iconset> |
854 | 19 | </property> | 19 | </property> |
855 | 20 | <widget class="QToolBox" name="ImportToolBox"> | ||
856 | 21 | <property name="geometry"> | ||
857 | 22 | <rect> | ||
858 | 23 | <x>20</x> | ||
859 | 24 | <y>20</y> | ||
860 | 25 | <width>451</width> | ||
861 | 26 | <height>401</height> | ||
862 | 27 | </rect> | ||
863 | 28 | </property> | ||
864 | 29 | <property name="frameShape"> | ||
865 | 30 | <enum>QFrame::StyledPanel</enum> | ||
866 | 31 | </property> | ||
867 | 32 | <property name="currentIndex"> | ||
868 | 33 | <number>1</number> | ||
869 | 34 | </property> | ||
870 | 35 | <widget class="QWidget" name="FileImportPage"> | ||
871 | 36 | <property name="geometry"> | ||
872 | 37 | <rect> | ||
873 | 38 | <x>0</x> | ||
874 | 39 | <y>0</y> | ||
875 | 40 | <width>447</width> | ||
876 | 41 | <height>337</height> | ||
877 | 42 | </rect> | ||
878 | 43 | </property> | ||
879 | 44 | <attribute name="label"> | ||
880 | 45 | <string>File Import Page</string> | ||
881 | 46 | </attribute> | ||
882 | 47 | <widget class="QGroupBox" name="OSISGroupBox"> | ||
883 | 48 | <property name="geometry"> | ||
884 | 49 | <rect> | ||
885 | 50 | <x>18</x> | ||
886 | 51 | <y>65</y> | ||
887 | 52 | <width>411</width> | ||
888 | 53 | <height>81</height> | ||
889 | 54 | </rect> | ||
890 | 55 | </property> | ||
891 | 56 | <property name="title"> | ||
892 | 57 | <string>OSIS Bible</string> | ||
893 | 58 | </property> | ||
894 | 59 | <layout class="QGridLayout" name="gridLayout_2"> | ||
895 | 60 | <property name="margin"> | ||
896 | 61 | <number>8</number> | ||
897 | 62 | </property> | ||
898 | 63 | <property name="spacing"> | ||
899 | 64 | <number>8</number> | ||
900 | 65 | </property> | ||
901 | 66 | <item row="0" column="0"> | ||
902 | 67 | <widget class="QLabel" name="LocatioLabel"> | ||
903 | 68 | <property name="text"> | ||
904 | 69 | <string>File Location:</string> | ||
905 | 70 | </property> | ||
906 | 71 | </widget> | ||
907 | 72 | </item> | ||
908 | 73 | <item row="0" column="1"> | ||
909 | 74 | <widget class="QLineEdit" name="OSISLocationEdit"/> | ||
910 | 75 | </item> | ||
911 | 76 | <item row="0" column="2"> | ||
912 | 77 | <widget class="QPushButton" name="OsisFileButton"> | ||
913 | 78 | <property name="text"> | ||
914 | 79 | <string/> | ||
915 | 80 | </property> | ||
916 | 81 | <property name="icon"> | ||
917 | 82 | <iconset resource="../images/openlp-2.qrc"> | ||
918 | 83 | <normaloff>:/imports/import_load.png</normaloff>:/imports/import_load.png</iconset> | ||
919 | 84 | </property> | ||
920 | 85 | </widget> | ||
921 | 86 | </item> | ||
922 | 87 | </layout> | ||
923 | 88 | </widget> | ||
924 | 89 | <widget class="QGroupBox" name="CVSGroupBox"> | ||
925 | 90 | <property name="geometry"> | ||
926 | 91 | <rect> | ||
927 | 92 | <x>20</x> | ||
928 | 93 | <y>170</y> | ||
929 | 94 | <width>411</width> | ||
930 | 95 | <height>191</height> | ||
931 | 96 | </rect> | ||
932 | 97 | </property> | ||
933 | 98 | <property name="title"> | ||
934 | 99 | <string>CVS Bible</string> | ||
935 | 100 | </property> | ||
936 | 101 | <layout class="QGridLayout" name="gridLayout"> | ||
937 | 102 | <property name="margin"> | ||
938 | 103 | <number>8</number> | ||
939 | 104 | </property> | ||
940 | 105 | <property name="spacing"> | ||
941 | 106 | <number>8</number> | ||
942 | 107 | </property> | ||
943 | 108 | <item row="0" column="0"> | ||
944 | 109 | <widget class="QLabel" name="BooksLocationLabel"> | ||
945 | 110 | <property name="text"> | ||
946 | 111 | <string>Books Location:</string> | ||
947 | 112 | </property> | ||
948 | 113 | </widget> | ||
949 | 114 | </item> | ||
950 | 115 | <item row="4" column="0"> | ||
951 | 116 | <widget class="QLabel" name="VerseLocationLabel"> | ||
952 | 117 | <property name="text"> | ||
953 | 118 | <string>Verse Location:</string> | ||
954 | 119 | </property> | ||
955 | 120 | </widget> | ||
956 | 121 | </item> | ||
957 | 122 | <item row="4" column="1"> | ||
958 | 123 | <widget class="QLineEdit" name="VerseLocationEdit"/> | ||
959 | 124 | </item> | ||
960 | 125 | <item row="0" column="1"> | ||
961 | 126 | <widget class="QLineEdit" name="BooksLocationEdit"/> | ||
962 | 127 | </item> | ||
963 | 128 | <item row="0" column="2"> | ||
964 | 129 | <widget class="QPushButton" name="BooksFileButton"> | ||
965 | 130 | <property name="text"> | ||
966 | 131 | <string/> | ||
967 | 132 | </property> | ||
968 | 133 | <property name="icon"> | ||
969 | 134 | <iconset resource="../images/openlp-2.qrc"> | ||
970 | 135 | <normaloff>:/imports/import_load.png</normaloff>:/imports/import_load.png</iconset> | ||
971 | 136 | </property> | ||
972 | 137 | </widget> | ||
973 | 138 | </item> | ||
974 | 139 | <item row="4" column="2"> | ||
975 | 140 | <widget class="QPushButton" name="VersesFileButton"> | ||
976 | 141 | <property name="text"> | ||
977 | 142 | <string/> | ||
978 | 143 | </property> | ||
979 | 144 | <property name="icon"> | ||
980 | 145 | <iconset resource="../images/openlp-2.qrc"> | ||
981 | 146 | <normaloff>:/imports/import_load.png</normaloff>:/imports/import_load.png</iconset> | ||
982 | 147 | </property> | ||
983 | 148 | </widget> | ||
984 | 149 | </item> | ||
985 | 150 | </layout> | ||
986 | 151 | </widget> | ||
987 | 152 | <widget class="QLineEdit" name="BibleNameEdit"> | ||
988 | 153 | <property name="geometry"> | ||
989 | 154 | <rect> | ||
990 | 155 | <x>100</x> | ||
991 | 156 | <y>20</y> | ||
992 | 157 | <width>280</width> | ||
993 | 158 | <height>28</height> | ||
994 | 159 | </rect> | ||
995 | 160 | </property> | ||
996 | 161 | </widget> | ||
997 | 162 | <widget class="QLabel" name="BibleNameLabel"> | ||
998 | 163 | <property name="geometry"> | ||
999 | 164 | <rect> | ||
1000 | 165 | <x>18</x> | ||
1001 | 166 | <y>20</y> | ||
1002 | 167 | <width>98</width> | ||
1003 | 168 | <height>22</height> | ||
1004 | 169 | </rect> | ||
1005 | 170 | </property> | ||
1006 | 171 | <property name="text"> | ||
1007 | 172 | <string>Bible Name:</string> | ||
1008 | 173 | </property> | ||
1009 | 174 | </widget> | ||
1010 | 175 | </widget> | ||
1011 | 176 | <widget class="QWidget" name="WebBiblePage"> | ||
1012 | 177 | <property name="geometry"> | ||
1013 | 178 | <rect> | ||
1014 | 179 | <x>0</x> | ||
1015 | 180 | <y>0</y> | ||
1016 | 181 | <width>447</width> | ||
1017 | 182 | <height>337</height> | ||
1018 | 183 | </rect> | ||
1019 | 184 | </property> | ||
1020 | 185 | <attribute name="label"> | ||
1021 | 186 | <string>Web Bible Import page</string> | ||
1022 | 187 | </attribute> | ||
1023 | 188 | <layout class="QVBoxLayout" name="WebBibleLayout"> | ||
1024 | 189 | <property name="spacing"> | ||
1025 | 190 | <number>8</number> | ||
1026 | 191 | </property> | ||
1027 | 192 | <property name="margin"> | ||
1028 | 193 | <number>8</number> | ||
1029 | 194 | </property> | ||
1030 | 195 | <item> | ||
1031 | 196 | <widget class="QGroupBox" name="OptionsGroupBox"> | ||
1032 | 197 | <property name="title"> | ||
1033 | 198 | <string>Download Options</string> | ||
1034 | 199 | </property> | ||
1035 | 200 | <layout class="QFormLayout" name="formLayout_2"> | ||
1036 | 201 | <item row="0" column="0"> | ||
1037 | 202 | <widget class="QLabel" name="LocationLabel"> | ||
1038 | 203 | <property name="text"> | ||
1039 | 204 | <string>Location:</string> | ||
1040 | 205 | </property> | ||
1041 | 206 | </widget> | ||
1042 | 207 | </item> | ||
1043 | 208 | <item row="0" column="1"> | ||
1044 | 209 | <widget class="QComboBox" name="LocationComboBox"> | ||
1045 | 210 | <item> | ||
1046 | 211 | <property name="text"> | ||
1047 | 212 | <string>Crosswalk</string> | ||
1048 | 213 | </property> | ||
1049 | 214 | </item> | ||
1050 | 215 | </widget> | ||
1051 | 216 | </item> | ||
1052 | 217 | <item row="1" column="0"> | ||
1053 | 218 | <widget class="QLabel" name="BibleLabel"> | ||
1054 | 219 | <property name="text"> | ||
1055 | 220 | <string>Bible:</string> | ||
1056 | 221 | </property> | ||
1057 | 222 | </widget> | ||
1058 | 223 | </item> | ||
1059 | 224 | <item row="1" column="1"> | ||
1060 | 225 | <widget class="QComboBox" name="BibleComboBox"> | ||
1061 | 226 | <item> | ||
1062 | 227 | <property name="text"> | ||
1063 | 228 | <string/> | ||
1064 | 229 | </property> | ||
1065 | 230 | </item> | ||
1066 | 231 | <item> | ||
1067 | 232 | <property name="text"> | ||
1068 | 233 | <string>NIV</string> | ||
1069 | 234 | </property> | ||
1070 | 235 | </item> | ||
1071 | 236 | <item> | ||
1072 | 237 | <property name="text"> | ||
1073 | 238 | <string>KJV</string> | ||
1074 | 239 | </property> | ||
1075 | 240 | </item> | ||
1076 | 241 | </widget> | ||
1077 | 242 | </item> | ||
1078 | 243 | </layout> | ||
1079 | 244 | <zorder>BibleComboBox</zorder> | ||
1080 | 245 | <zorder>LocationLabel</zorder> | ||
1081 | 246 | <zorder>BibleLabel</zorder> | ||
1082 | 247 | <zorder>LocationComboBox</zorder> | ||
1083 | 248 | </widget> | ||
1084 | 249 | </item> | ||
1085 | 250 | <item> | ||
1086 | 251 | <widget class="QGroupBox" name="ProxyGroupBox"> | ||
1087 | 252 | <property name="title"> | ||
1088 | 253 | <string>Proxy Settings (Optional)</string> | ||
1089 | 254 | </property> | ||
1090 | 255 | <layout class="QFormLayout" name="ProxySettingsLayout"> | ||
1091 | 256 | <property name="fieldGrowthPolicy"> | ||
1092 | 257 | <enum>QFormLayout::AllNonFixedFieldsGrow</enum> | ||
1093 | 258 | </property> | ||
1094 | 259 | <property name="horizontalSpacing"> | ||
1095 | 260 | <number>8</number> | ||
1096 | 261 | </property> | ||
1097 | 262 | <property name="verticalSpacing"> | ||
1098 | 263 | <number>8</number> | ||
1099 | 264 | </property> | ||
1100 | 265 | <property name="margin"> | ||
1101 | 266 | <number>8</number> | ||
1102 | 267 | </property> | ||
1103 | 268 | <item row="0" column="0"> | ||
1104 | 269 | <widget class="QLabel" name="AddressLabel"> | ||
1105 | 270 | <property name="text"> | ||
1106 | 271 | <string>Proxy Address:</string> | ||
1107 | 272 | </property> | ||
1108 | 273 | </widget> | ||
1109 | 274 | </item> | ||
1110 | 275 | <item row="0" column="1"> | ||
1111 | 276 | <widget class="QLineEdit" name="AddressEdit"/> | ||
1112 | 277 | </item> | ||
1113 | 278 | <item row="1" column="0"> | ||
1114 | 279 | <widget class="QLabel" name="UsernameLabel"> | ||
1115 | 280 | <property name="text"> | ||
1116 | 281 | <string>Username:</string> | ||
1117 | 282 | </property> | ||
1118 | 283 | </widget> | ||
1119 | 284 | </item> | ||
1120 | 285 | <item row="1" column="1"> | ||
1121 | 286 | <widget class="QLineEdit" name="UsernameEdit"/> | ||
1122 | 287 | </item> | ||
1123 | 288 | <item row="2" column="0"> | ||
1124 | 289 | <widget class="QLabel" name="PasswordLabel"> | ||
1125 | 290 | <property name="text"> | ||
1126 | 291 | <string>Password:</string> | ||
1127 | 292 | </property> | ||
1128 | 293 | </widget> | ||
1129 | 294 | </item> | ||
1130 | 295 | <item row="2" column="1"> | ||
1131 | 296 | <widget class="QLineEdit" name="PasswordEdit"/> | ||
1132 | 297 | </item> | ||
1133 | 298 | </layout> | ||
1134 | 299 | </widget> | ||
1135 | 300 | </item> | ||
1136 | 301 | </layout> | ||
1137 | 302 | </widget> | ||
1138 | 303 | </widget> | ||
1139 | 304 | <widget class="QGroupBox" name="LicenceDetailsGroupBox"> | 20 | <widget class="QGroupBox" name="LicenceDetailsGroupBox"> |
1140 | 305 | <property name="geometry"> | 21 | <property name="geometry"> |
1141 | 306 | <rect> | 22 | <rect> |
1142 | 307 | <x>10</x> | 23 | <x>10</x> |
1145 | 308 | <y>435</y> | 24 | <y>400</y> |
1146 | 309 | <width>471</width> | 25 | <width>480</width> |
1147 | 310 | <height>151</height> | 26 | <height>151</height> |
1148 | 311 | </rect> | 27 | </rect> |
1149 | 312 | </property> | 28 | </property> |
1150 | @@ -375,8 +91,8 @@ | |||
1151 | 375 | <property name="geometry"> | 91 | <property name="geometry"> |
1152 | 376 | <rect> | 92 | <rect> |
1153 | 377 | <x>10</x> | 93 | <x>10</x> |
1156 | 378 | <y>600</y> | 94 | <y>550</y> |
1157 | 379 | <width>471</width> | 95 | <width>480</width> |
1158 | 380 | <height>70</height> | 96 | <height>70</height> |
1159 | 381 | </rect> | 97 | </rect> |
1160 | 382 | </property> | 98 | </property> |
1161 | @@ -402,8 +118,8 @@ | |||
1162 | 402 | <widget class="QWidget" name="layoutWidget"> | 118 | <widget class="QWidget" name="layoutWidget"> |
1163 | 403 | <property name="geometry"> | 119 | <property name="geometry"> |
1164 | 404 | <rect> | 120 | <rect> |
1167 | 405 | <x>300</x> | 121 | <x>310</x> |
1168 | 406 | <y>680</y> | 122 | <y>630</y> |
1169 | 407 | <width>180</width> | 123 | <width>180</width> |
1170 | 408 | <height>38</height> | 124 | <height>38</height> |
1171 | 409 | </rect> | 125 | </rect> |
1172 | @@ -428,6 +144,280 @@ | |||
1173 | 428 | </item> | 144 | </item> |
1174 | 429 | </layout> | 145 | </layout> |
1175 | 430 | </widget> | 146 | </widget> |
1176 | 147 | <widget class="QTabWidget" name="tabWidget"> | ||
1177 | 148 | <property name="geometry"> | ||
1178 | 149 | <rect> | ||
1179 | 150 | <x>10</x> | ||
1180 | 151 | <y>30</y> | ||
1181 | 152 | <width>480</width> | ||
1182 | 153 | <height>361</height> | ||
1183 | 154 | </rect> | ||
1184 | 155 | </property> | ||
1185 | 156 | <property name="currentIndex"> | ||
1186 | 157 | <number>2</number> | ||
1187 | 158 | </property> | ||
1188 | 159 | <widget class="QWidget" name="OsisTab"> | ||
1189 | 160 | <attribute name="title"> | ||
1190 | 161 | <string>Osis (Sword) Imports</string> | ||
1191 | 162 | </attribute> | ||
1192 | 163 | <widget class="QGroupBox" name="OSISGroupBox"> | ||
1193 | 164 | <property name="geometry"> | ||
1194 | 165 | <rect> | ||
1195 | 166 | <x>10</x> | ||
1196 | 167 | <y>10</y> | ||
1197 | 168 | <width>460</width> | ||
1198 | 169 | <height>141</height> | ||
1199 | 170 | </rect> | ||
1200 | 171 | </property> | ||
1201 | 172 | <property name="title"> | ||
1202 | 173 | <string>OSIS Bible</string> | ||
1203 | 174 | </property> | ||
1204 | 175 | <layout class="QGridLayout" name="gridLayout_2"> | ||
1205 | 176 | <item row="0" column="0"> | ||
1206 | 177 | <layout class="QHBoxLayout" name="horizontalLayout_2"> | ||
1207 | 178 | <item> | ||
1208 | 179 | <widget class="QLabel" name="BibleNameLabel"> | ||
1209 | 180 | <property name="text"> | ||
1210 | 181 | <string>Bible Name:</string> | ||
1211 | 182 | </property> | ||
1212 | 183 | </widget> | ||
1213 | 184 | </item> | ||
1214 | 185 | <item> | ||
1215 | 186 | <widget class="QLineEdit" name="BibleNameEdit"/> | ||
1216 | 187 | </item> | ||
1217 | 188 | </layout> | ||
1218 | 189 | </item> | ||
1219 | 190 | <item row="1" column="0"> | ||
1220 | 191 | <layout class="QHBoxLayout" name="horizontalLayout_3"> | ||
1221 | 192 | <item> | ||
1222 | 193 | <widget class="QLabel" name="LocatioLabel"> | ||
1223 | 194 | <property name="text"> | ||
1224 | 195 | <string>File Location:</string> | ||
1225 | 196 | </property> | ||
1226 | 197 | </widget> | ||
1227 | 198 | </item> | ||
1228 | 199 | <item> | ||
1229 | 200 | <widget class="QLineEdit" name="OSISLocationEdit"/> | ||
1230 | 201 | </item> | ||
1231 | 202 | <item> | ||
1232 | 203 | <widget class="QPushButton" name="OsisFileButton"> | ||
1233 | 204 | <property name="text"> | ||
1234 | 205 | <string/> | ||
1235 | 206 | </property> | ||
1236 | 207 | <property name="icon"> | ||
1237 | 208 | <iconset resource="../images/openlp-2.qrc"> | ||
1238 | 209 | <normaloff>:/imports/import_load.png</normaloff>:/imports/import_load.png</iconset> | ||
1239 | 210 | </property> | ||
1240 | 211 | </widget> | ||
1241 | 212 | </item> | ||
1242 | 213 | </layout> | ||
1243 | 214 | </item> | ||
1244 | 215 | </layout> | ||
1245 | 216 | </widget> | ||
1246 | 217 | </widget> | ||
1247 | 218 | <widget class="QWidget" name="CsvTab"> | ||
1248 | 219 | <attribute name="title"> | ||
1249 | 220 | <string>CSV File Imports</string> | ||
1250 | 221 | </attribute> | ||
1251 | 222 | <widget class="QGroupBox" name="CVSGroupBox"> | ||
1252 | 223 | <property name="geometry"> | ||
1253 | 224 | <rect> | ||
1254 | 225 | <x>10</x> | ||
1255 | 226 | <y>10</y> | ||
1256 | 227 | <width>460</width> | ||
1257 | 228 | <height>191</height> | ||
1258 | 229 | </rect> | ||
1259 | 230 | </property> | ||
1260 | 231 | <property name="title"> | ||
1261 | 232 | <string>CVS Bible</string> | ||
1262 | 233 | </property> | ||
1263 | 234 | <layout class="QGridLayout" name="gridLayout"> | ||
1264 | 235 | <property name="margin"> | ||
1265 | 236 | <number>8</number> | ||
1266 | 237 | </property> | ||
1267 | 238 | <property name="spacing"> | ||
1268 | 239 | <number>8</number> | ||
1269 | 240 | </property> | ||
1270 | 241 | <item row="0" column="0"> | ||
1271 | 242 | <widget class="QLabel" name="BooksLocationLabel"> | ||
1272 | 243 | <property name="text"> | ||
1273 | 244 | <string>Books Location:</string> | ||
1274 | 245 | </property> | ||
1275 | 246 | </widget> | ||
1276 | 247 | </item> | ||
1277 | 248 | <item row="4" column="0"> | ||
1278 | 249 | <widget class="QLabel" name="VerseLocationLabel"> | ||
1279 | 250 | <property name="text"> | ||
1280 | 251 | <string>Verse Location:</string> | ||
1281 | 252 | </property> | ||
1282 | 253 | </widget> | ||
1283 | 254 | </item> | ||
1284 | 255 | <item row="4" column="1"> | ||
1285 | 256 | <widget class="QLineEdit" name="VerseLocationEdit"/> | ||
1286 | 257 | </item> | ||
1287 | 258 | <item row="0" column="1"> | ||
1288 | 259 | <widget class="QLineEdit" name="BooksLocationEdit"/> | ||
1289 | 260 | </item> | ||
1290 | 261 | <item row="0" column="2"> | ||
1291 | 262 | <widget class="QPushButton" name="BooksFileButton"> | ||
1292 | 263 | <property name="text"> | ||
1293 | 264 | <string/> | ||
1294 | 265 | </property> | ||
1295 | 266 | <property name="icon"> | ||
1296 | 267 | <iconset resource="../images/openlp-2.qrc"> | ||
1297 | 268 | <normaloff>:/imports/import_load.png</normaloff>:/imports/import_load.png</iconset> | ||
1298 | 269 | </property> | ||
1299 | 270 | </widget> | ||
1300 | 271 | </item> | ||
1301 | 272 | <item row="4" column="2"> | ||
1302 | 273 | <widget class="QPushButton" name="VersesFileButton"> | ||
1303 | 274 | <property name="text"> | ||
1304 | 275 | <string/> | ||
1305 | 276 | </property> | ||
1306 | 277 | <property name="icon"> | ||
1307 | 278 | <iconset resource="../images/openlp-2.qrc"> | ||
1308 | 279 | <normaloff>:/imports/import_load.png</normaloff>:/imports/import_load.png</iconset> | ||
1309 | 280 | </property> | ||
1310 | 281 | </widget> | ||
1311 | 282 | </item> | ||
1312 | 283 | </layout> | ||
1313 | 284 | </widget> | ||
1314 | 285 | </widget> | ||
1315 | 286 | <widget class="QWidget" name="HttpTab"> | ||
1316 | 287 | <attribute name="title"> | ||
1317 | 288 | <string>Web Downloads</string> | ||
1318 | 289 | </attribute> | ||
1319 | 290 | <widget class="QGroupBox" name="OptionsGroupBox"> | ||
1320 | 291 | <property name="geometry"> | ||
1321 | 292 | <rect> | ||
1322 | 293 | <x>10</x> | ||
1323 | 294 | <y>10</y> | ||
1324 | 295 | <width>460</width> | ||
1325 | 296 | <height>141</height> | ||
1326 | 297 | </rect> | ||
1327 | 298 | </property> | ||
1328 | 299 | <property name="title"> | ||
1329 | 300 | <string>Download Options</string> | ||
1330 | 301 | </property> | ||
1331 | 302 | <layout class="QVBoxLayout" name="verticalLayout"> | ||
1332 | 303 | <item> | ||
1333 | 304 | <layout class="QHBoxLayout" name="horizontalLayout_4"> | ||
1334 | 305 | <item> | ||
1335 | 306 | <widget class="QLabel" name="LocationLabel"> | ||
1336 | 307 | <property name="text"> | ||
1337 | 308 | <string>Location:</string> | ||
1338 | 309 | </property> | ||
1339 | 310 | </widget> | ||
1340 | 311 | </item> | ||
1341 | 312 | <item> | ||
1342 | 313 | <widget class="QComboBox" name="LocationComboBox"> | ||
1343 | 314 | <item> | ||
1344 | 315 | <property name="text"> | ||
1345 | 316 | <string>Crosswalk</string> | ||
1346 | 317 | </property> | ||
1347 | 318 | </item> | ||
1348 | 319 | </widget> | ||
1349 | 320 | </item> | ||
1350 | 321 | </layout> | ||
1351 | 322 | </item> | ||
1352 | 323 | <item> | ||
1353 | 324 | <layout class="QHBoxLayout" name="horizontalLayout_5"> | ||
1354 | 325 | <item> | ||
1355 | 326 | <widget class="QLabel" name="BibleLabel"> | ||
1356 | 327 | <property name="text"> | ||
1357 | 328 | <string>Bible:</string> | ||
1358 | 329 | </property> | ||
1359 | 330 | </widget> | ||
1360 | 331 | </item> | ||
1361 | 332 | <item> | ||
1362 | 333 | <widget class="QComboBox" name="BibleComboBox"> | ||
1363 | 334 | <item> | ||
1364 | 335 | <property name="text"> | ||
1365 | 336 | <string/> | ||
1366 | 337 | </property> | ||
1367 | 338 | </item> | ||
1368 | 339 | <item> | ||
1369 | 340 | <property name="text"> | ||
1370 | 341 | <string>NIV</string> | ||
1371 | 342 | </property> | ||
1372 | 343 | </item> | ||
1373 | 344 | <item> | ||
1374 | 345 | <property name="text"> | ||
1375 | 346 | <string>KJV</string> | ||
1376 | 347 | </property> | ||
1377 | 348 | </item> | ||
1378 | 349 | </widget> | ||
1379 | 350 | </item> | ||
1380 | 351 | </layout> | ||
1381 | 352 | </item> | ||
1382 | 353 | </layout> | ||
1383 | 354 | <zorder>BibleComboBox</zorder> | ||
1384 | 355 | <zorder>LocationLabel</zorder> | ||
1385 | 356 | <zorder>BibleLabel</zorder> | ||
1386 | 357 | <zorder>LocationComboBox</zorder> | ||
1387 | 358 | </widget> | ||
1388 | 359 | <widget class="QGroupBox" name="ProxyGroupBox"> | ||
1389 | 360 | <property name="geometry"> | ||
1390 | 361 | <rect> | ||
1391 | 362 | <x>10</x> | ||
1392 | 363 | <y>160</y> | ||
1393 | 364 | <width>460</width> | ||
1394 | 365 | <height>161</height> | ||
1395 | 366 | </rect> | ||
1396 | 367 | </property> | ||
1397 | 368 | <property name="title"> | ||
1398 | 369 | <string>Proxy Settings (Optional)</string> | ||
1399 | 370 | </property> | ||
1400 | 371 | <layout class="QFormLayout" name="ProxySettingsLayout"> | ||
1401 | 372 | <property name="fieldGrowthPolicy"> | ||
1402 | 373 | <enum>QFormLayout::AllNonFixedFieldsGrow</enum> | ||
1403 | 374 | </property> | ||
1404 | 375 | <property name="horizontalSpacing"> | ||
1405 | 376 | <number>8</number> | ||
1406 | 377 | </property> | ||
1407 | 378 | <property name="verticalSpacing"> | ||
1408 | 379 | <number>8</number> | ||
1409 | 380 | </property> | ||
1410 | 381 | <property name="margin"> | ||
1411 | 382 | <number>8</number> | ||
1412 | 383 | </property> | ||
1413 | 384 | <item row="0" column="0"> | ||
1414 | 385 | <widget class="QLabel" name="AddressLabel"> | ||
1415 | 386 | <property name="text"> | ||
1416 | 387 | <string>Proxy Address:</string> | ||
1417 | 388 | </property> | ||
1418 | 389 | </widget> | ||
1419 | 390 | </item> | ||
1420 | 391 | <item row="0" column="1"> | ||
1421 | 392 | <widget class="QLineEdit" name="AddressEdit"/> | ||
1422 | 393 | </item> | ||
1423 | 394 | <item row="1" column="0"> | ||
1424 | 395 | <widget class="QLabel" name="UsernameLabel"> | ||
1425 | 396 | <property name="text"> | ||
1426 | 397 | <string>Username:</string> | ||
1427 | 398 | </property> | ||
1428 | 399 | </widget> | ||
1429 | 400 | </item> | ||
1430 | 401 | <item row="1" column="1"> | ||
1431 | 402 | <widget class="QLineEdit" name="UsernameEdit"/> | ||
1432 | 403 | </item> | ||
1433 | 404 | <item row="2" column="0"> | ||
1434 | 405 | <widget class="QLabel" name="PasswordLabel"> | ||
1435 | 406 | <property name="text"> | ||
1436 | 407 | <string>Password:</string> | ||
1437 | 408 | </property> | ||
1438 | 409 | </widget> | ||
1439 | 410 | </item> | ||
1440 | 411 | <item row="2" column="1"> | ||
1441 | 412 | <widget class="QLineEdit" name="PasswordEdit"/> | ||
1442 | 413 | </item> | ||
1443 | 414 | </layout> | ||
1444 | 415 | </widget> | ||
1445 | 416 | <zorder>OptionsGroupBox</zorder> | ||
1446 | 417 | <zorder>OptionsGroupBox</zorder> | ||
1447 | 418 | <zorder>ProxyGroupBox</zorder> | ||
1448 | 419 | </widget> | ||
1449 | 420 | </widget> | ||
1450 | 431 | </widget> | 421 | </widget> |
1451 | 432 | <tabstops> | 422 | <tabstops> |
1452 | 433 | <tabstop>BibleNameEdit</tabstop> | 423 | <tabstop>BibleNameEdit</tabstop> |
New Bible Import Screen
Transparent Theme backgrounds
Global Theme Handling improvements