def __init__(self, name, **args): Settings.__init__(self, name, **args) self.add( setting.Color('color', 'black', descr=_('Fill colour'), usertext=_('Color'))) self.add( setting.FillStyleExtended('style', 'solid', descr=_('Fill style'), usertext=_('Style'))) self.add( setting.Bool('hide', False, descr=_('Hide the fill'), usertext=_('Hide'))) self.add( setting.Int('transparency', 0, descr=_('Transparency percentage'), usertext=_('Transparency'), minval=0, maxval=100)) self.add( setting.DistancePt('linewidth', '0.5pt', descr=_('Width of hatch or pattern line'), usertext=_('Line width'))) self.add( setting.LineStyle('linestyle', 'solid', descr=_('Hatch or pattern line style'), usertext=_('Line style'))) self.add( setting.DistancePt('patternspacing', '5pt', descr=_('Hatch or pattern spacing'), usertext=_('Spacing'))) self.add( setting.Color('backcolor', 'white', descr=_('Hatch or pattern background color'), usertext=_('Back color'))) self.add( setting.Int( 'backtransparency', 0, descr=_('Hatch or pattern background transparency percentage'), usertext=_('Back trans.'), minval=0, maxval=100)) self.add( setting.Bool('backhide', True, descr=_('Hide hatch or pattern background'), usertext=_('Back hide')))
def __init__(self): """Initialise with default font family and list of families.""" Settings.__init__(self, 'Font', pixmap='settings_axislabel', descr=_('Default font for document'), usertext=_('Font')) if StylesheetText.defaultfamily is None: _registerFontStyleSheet() self.add( setting.FontFamily('font', StylesheetText.defaultfamily, descr=_('Font name'), usertext=_('Font'), formatting=True)) self.add( setting.DistancePt('size', '14pt', descr=_('Default font size'), usertext=_('Size'), formatting=True)) self.add( setting.Color('color', 'black', descr=_('Default font color'), usertext=_('Color'), formatting=True))
def __init__(self, name, **args): Settings.__init__(self, name, **args) self.add( setting.Color('color', setting.Reference('/StyleSheet/Line/color'), descr=_('Color of line'), usertext=_('Color'))) self.add( setting.DistancePt('width', setting.Reference('/StyleSheet/Line/width'), descr=_('Width of line'), usertext=_('Width'))) self.add( setting.LineStyle('style', 'solid', descr=_('Line style'), usertext=_('Style'))) self.add( setting.Int('transparency', 0, descr=_('Transparency percentage'), usertext=_('Transparency'), minval=0, maxval=100)) self.add( setting.Bool('hide', False, descr=_('Hide the line'), usertext=_('Hide')))
def __init__(self): Settings.__init__(self, 'Line', pixmap='settings_plotline', descr=_('Default line style for document'), usertext=_('Line')) self.add( setting.DistancePt('width', '0.5pt', descr=_('Default line width'), usertext=_('Width'), formatting=True)) self.add( setting.Color('color', 'black', descr=_('Default line color'), usertext=_('Color'), formatting=True))
def __init__(self, name, **args): Settings.__init__(self, name, **args) self.add( setting.FontFamily('font', setting.Reference('/StyleSheet/Font/font'), descr=_('Font name'), usertext=_('Font'))) self.add( setting.DistancePt('size', setting.Reference('/StyleSheet/Font/size'), descr=_('Font size'), usertext=_('Size'))) self.add( setting.Color('color', setting.Reference('/StyleSheet/Font/color'), descr=_('Font color'), usertext=_('Color'))) self.add( setting.Bool('italic', False, descr=_('Italic font'), usertext=_('Italic'))) self.add( setting.Bool('bold', False, descr=_('Bold font'), usertext=_('Bold'))) self.add( setting.Bool('underline', False, descr=_('Underline font'), usertext=_('Underline'))) self.add( setting.Bool('hide', False, descr=_('Hide the text'), usertext=_('Hide')))