Esempio n. 1
0
 def __init__(self):
     """Construct plugin."""
     self.fields = [
         field.FieldWidget("widget",
                           descr=_("Start from widget"),
                           default="/"),
         field.FieldBool("follow",
                         descr=_("Change references and defaults"),
                         default=True),
         field.FieldBool("onlystr",
                         descr=_("Change only textual data"),
                         default=False),
         field.FieldText('text1', descr=_("Text to change"), default=''),
         field.FieldText('text2', descr=_("Replacement text"), default=''),
     ]
Esempio n. 2
0
 def __init__(self):
     self.fields = [
         field.FieldText("name", descr=_("Dataset name"), default=''),
         field.FieldBool("errorsin2d",
                         descr=_("Treat 2 and 3 column 2D arrays as\n"
                                 "data with error bars"),
                         default=True),
     ]
Esempio n. 3
0
 def __init__(self):
     self.fields = [
         field.FieldText("name", descr=_("Dataset name"), default="name"),
         field.FieldBool("invert", descr=_("invert values")),
         field.FieldFloat("mult",
                          descr=_("Multiplication factor"),
                          default=1),
         field.FieldInt("skip",
                        descr=_("Skip N lines"),
                        default=0,
                        minval=0),
         field.FieldCombo("subtract",
                          items=("0", "1", "2"),
                          editable=False,
                          default="0")
     ]
Esempio n. 4
0
 def __init__(self):
     self.fields = [
         field.FieldText("name", descr=_("Dataset name"), default=""),
         field.FieldCombo("datatype",
                          descr=_("Data type"),
                          items=("float32", "float64", "int8", "int16",
                                 "int32", "int64", "uint8", "uint16",
                                 "uint32", "uint64"),
                          default="float64",
                          editable=False),
         field.FieldCombo("endian",
                          descr=_("Endian (byte order)"),
                          items=("little", "big"),
                          editable=False),
         field.FieldInt("offset",
                        descr=_("Offset (bytes)"),
                        default=0,
                        minval=0),
         field.FieldInt("length", descr=_("Length (values)"), default=-1)
     ]
Esempio n. 5
0
 def __init__(self):
     self.fields = [
         field.FieldText("name", descr=_("Dataset name"), default="name"),
     ]