Thread: [PythonReports-users] Font and Style use and how they are shown in lists
Brought to you by:
a1s
From: Werner F. B. <wer...@fr...> - 2012-12-10 14:50:50
|
Hi, How do I see in the designer which font/style applies to field? Currently I seem to have to look at the field, click the list and see if there is something defined, if not go up to the section and repeat checking the list and if not go up to the report and check the list again. Instead of what is shown now: (style_list) or (font_list) could it show e.g.: (font_list) - selected font name Currently the Edit list shows e.g. for fonts something like: font13 font14 font15 font16 Could it show instead the name of the fonts? title pagetitle body bold If I can come up with a patch would above be fine or would you like something different? Werner |
From: alexander s. <al...@go...> - 2012-12-10 17:52:20
|
Werner F. Bruhin wrote, at 10.12.2012 16:52: > > How do I see in the designer which font/style applies to field? I don't think you can, at present. Evaluating the styles to find which font applies is a task of report builder; template editor does not have enough brains for that. > Currently I seem to have to look at the field, click the list and see if > there is something defined, if not go up to the section and repeat > checking the list and if not go up to the report and check the list again. > > Instead of what is shown now: > > (style_list) or (font_list) > > could it show e.g.: > > (font_list) - selected font name That would be nontrivial with conditional and inherited styles. > Currently the Edit list shows e.g. for fonts something like: > > font13 > font14 > font15 > font16 > > Could it show instead the name of the fonts? > > title > pagetitle > body > bold > > If I can come up with a patch would above be fine or would you like > something different? Font names are fine. Even better would be name followed by font specs in brackets, like this: pagetitle (14bi:Helvetica) Best wishes, alex. |
From: Werner F. B. <wer...@fr...> - 2012-12-11 16:49:15
|
Hi Alex, On 10/12/2012 18:51, alexander smishlajev wrote: > Werner F. Bruhin wrote, at 10.12.2012 16:52: >> How do I see in the designer which font/style applies to field? > I don't think you can, at present. Evaluating the styles to find which > font applies is a task of report builder; template editor does not have > enough brains for that. I did not explain well what I think would be nice to see. I am not looking to see what font/style applies but what font/style is defined at a certain level without having to open the list. In other words, if I define "specialfieldstyle" on a field I like to see in the property grid instead of: (style_list) to show: (style_list - specialfieldstyle) or something along these lines if on a particular field no style is defined then it would still show: (style_list) In which case I have to go up the hierarchy to see what would apply. Werner |
From: Werner F. B. <wer...@fr...> - 2012-12-21 18:14:54
Attachments:
fontandstyle.patch
|
Hi Alex, Attached a patch to show fonts in the list as e.g.: body (8biu:Arial) and styles in the list as e.g.: style 2 - body Werner |
From: alexander s. <al...@go...> - 2012-12-22 07:40:30
|
On 21.12.2012 20:16, Werner F. Bruhin wrote: > > Attached a patch to show fonts in the list as e.g.: > > body (8biu:Arial) > > and styles in the list as e.g.: > > style 2 - body Thank you. I have a question: may the computation of list titles be done by the values themselves? ListPropertyDialog does not seem to be the right place for this. Best wishes, alex. |
From: Werner F. B. <wer...@fr...> - 2012-12-22 08:47:17
|
On 22/12/2012 08:39, alexander smishlajev wrote: > On 21.12.2012 20:16, Werner F. Bruhin wrote: >> Attached a patch to show fonts in the list as e.g.: >> >> body (8biu:Arial) >> >> and styles in the list as e.g.: >> >> style 2 - body > Thank you. > > I have a question: may the computation of list titles be done by the > values themselves? ListPropertyDialog does not seem to be the right > place for this. I had tried to do it in class ListElement and replace how self.name is generated in there, but I hit a wall in not being able to figure out how to get at the attributes value (shows my lack of Python knowhow:-( ). How do I get at if bold is true or false? attributes['bold'] (<class 'PythonReports.datatypes.Boolean'>, <Boolean: false>) And how to get at the typeface name at that point? attributes['typeface'] (<class 'PythonReports.datatypes.String'>, <PythonReports.datatypes.REQUIRED object at 0x05D0CF70>) Werner |
From: Werner F. B. <wer...@fr...> - 2012-12-22 09:02:45
|
Hi Alex, I think I got it, they are in self.properties for the ListElement, I'll make that change. Werner |
From: Werner F. B. <wer...@fr...> - 2012-12-22 09:41:08
Attachments:
fontAndStyleDisplay 2.patch
|
On 22/12/2012 10:03, Werner F. Bruhin wrote: > Hi Alex, > > I think I got it, they are in self.properties for the ListElement, I'll > make that change. I moved it to ListPropertyValue.after_property_changed , had it first in __init__ but at that point e.g. font name shows "default" instead of "body". Werner |
From: alexander s. <al...@go...> - 2012-12-22 11:49:40
|
On 22.12.2012 11:42, Werner F. Bruhin wrote: >> >> I think I got it, they are in self.properties for the ListElement, I'll >> make that change. > I moved it to ListPropertyValue.after_property_changed , had it first in > __init__ but at that point e.g. font name shows "default" instead of > "body". This is checked in. Thank you. Merry Christmas, alex. |