57 |
if self.object._type == 'GFEntry': |
if self.object._type == 'GFEntry': |
58 |
GDebug.printMesg(4,'Adding a new entry property manager') |
GDebug.printMesg(4,'Adding a new entry property manager') |
59 |
self.addPage(FieldInspectorPanel(self, self.notebook), "Field") |
self.addPage(FieldInspectorPanel(self, self.notebook), "Field") |
60 |
|
if self.object._block: |
61 |
|
self.addPage(EntryBlockInspectorPanel(self, self.notebook), "Block") |
62 |
|
|
63 |
|
# Block? |
64 |
|
if self.object.findParentOfType('GFBlock',includeSelf=0): |
65 |
|
self.addPage(BlockInspectorPanel(self, self.notebook), "Block") |
66 |
|
|
67 |
|
|
68 |
# Add layout |
# Add layout |
69 |
if self.object._type == 'GFLayout': |
if self.object._type == 'GFLayout': |
85 |
self._setCurrent(object._field) |
self._setCurrent(object._field) |
86 |
|
|
87 |
# |
# |
88 |
|
# Block properties (when Entry/Field is selected) |
89 |
|
# |
90 |
|
class BlockInspectorPanel(BaseInspectorPanel): |
91 |
|
|
92 |
|
def setCurrent(self, object): |
93 |
|
self._setCurrent(object.findParentOfType('GFBlock')) |
94 |
|
|
95 |
|
class EntryBlockInspectorPanel(BaseInspectorPanel): |
96 |
|
def setCurrent(self, object): |
97 |
|
self._setCurrent(object._block) |
98 |
|
|
99 |
|
# |
100 |
# Character-cell layout (x,y) properties |
# Character-cell layout (x,y) properties |
101 |
# |
# |
102 |
class CharPosInspectorPanel(BaseInspectorPanel): |
class CharPosInspectorPanel(BaseInspectorPanel): |