2024-09-08 23:53:42 -04:00

48 lines
1.3 KiB
Diff

75a76,78
>
> EDITORTAB = 14
>
77c80
< MAPSERVICE, VIEW, RELCALC, GRAMPLET, SIDEBAR, DATABASE, RULE]
---
> MAPSERVICE, VIEW, RELCALC, GRAMPLET, SIDEBAR, DATABASE, RULE, EDITORTAB]
92c95,96
< RULE: _('Rule')
---
> RULE: _('Rule'),
> EDITORTAB: _('Editor Tab')
454a459,461
> #EDITORTAB attr
> self._tabclass = None
> self._tabviews = None
1021a1029,1048
> #EDITORTAB attr
> def _set_tabclass(self, data):
> if self._ptype != EDITORTAB:
> raise ValueError('tabclass may only be set for EDITORTAB plugins')
> self._tabclass = data
>
> def _get_tabclass(self):
> return self._tabclass
>
> def _set_tabviews(self, data):
> if self._ptype != EDITORTAB:
> raise ValueError('tabviews may only be set for EDITORTAB plugins')
> self._tabviews = data
>
> def _get_tabviews(self):
> return self._tabviews
>
> tabclass = property(_get_tabclass, _set_tabclass)
> tabviews = property(_get_tabviews, _set_tabviews)
>
1074a1102
> 'EDITORTAB': EDITORTAB,
1390a1419,1424
>
> def editortab_plugins(self):
> """
> Return a list of :class:`PluginData` that are of type EDITORTAB
> """
> return self.type_plugins(EDITORTAB)