2 Modulo per la modifica delle impostazioni di LeenO
21 _PRINTSETTINGSITEMS = (
48 '[STAZIONE_APPALTANTE]',
54 if data
is None or len(data) == 0:
55 data = cfg.readBlock(
'Lavoro',
True)
61 for key, val
in repl.items():
62 nKey =
'[' + key.upper() +
']'
63 if nKey
in _DOCSTRINGS:
71 vr = v.replace(
'_',
'')
81 cfg.writeBlock(
'Lavoro', js,
True)
88 return Dialogs.Dialog(Title=
'Impostazioni dati lavoro', Horz=
False, CanClose=
True, Items=[
141 Dialogs.Button(Label=
'Ok', MinWidth=Dialogs.MINBTNWIDTH, Icon=
'Icons-24x24/ok.png', RetVal=1),
143 Dialogs.Button(Label=
'Annulla', MinWidth=Dialogs.MINBTNWIDTH, Icon=
'Icons-24x24/cancel.png', RetVal=-1),
158 js = dlg.getData(_JOBSETTINGSITEMS)
163 if coversPath
is not None and coversPath !=
'':
168 if coverName
in covers:
169 return covers, coverName
171 coverName = covers[0]
174 return covers, coverName
179 if data
is None or len(data) == 0:
180 data = cfg.readBlock(
'ImpostazioniStampa',
True)
183 covers, copertina =
fixupCover(data.get(
'fileCopertine',
''), data.get(
'copertina',
''))
185 data[
'copertina'] = copertina
193 cfg.writeBlock(
'ImpostazioniStampa', js,
True)
201 return Dialogs.Dialog(Title=
'Impostazioni stampa / PDF', Horz=
False, CanClose=
True, Items=[
209 Dialogs.ComboBox(Id=
"intSx", List=_DOCSTRINGS, FixedHeight=20, MaxWidth=200),
214 Dialogs.ComboBox(Id=
"intCenter", List=_DOCSTRINGS, FixedHeight=20, MaxWidth=200),
219 Dialogs.ComboBox(Id=
"intDx", List=_DOCSTRINGS, FixedHeight=20, MaxWidth=200),
237 Dialogs.ComboBox(Id=
"ppSx", List=_DOCSTRINGS, FixedHeight=20, MaxWidth=200),
242 Dialogs.ComboBox(Id=
"ppCenter", List=_DOCSTRINGS, FixedHeight=20, MaxWidth=200),
247 Dialogs.ComboBox(Id=
"ppDx", List=_DOCSTRINGS, FixedHeight=20, MaxWidth=200),
269 Dialogs.Button(Label=
'Ok', MinWidth=Dialogs.MINBTNWIDTH, Icon=
'Icons-24x24/ok.png', RetVal=1),
271 Dialogs.Button(Label=
'Annulla', MinWidth=Dialogs.MINBTNWIDTH, Icon=
'Icons-24x24/cancel.png', RetVal=-1),
283 dlg.getWidget(
'copertina').setList(covers)
287 ps = dlg.getData(_PRINTSETTINGSITEMS)