示例#1
0
 def __init__(self, table, enabled, regex):
     Row.__init__(self, table)
     self._app = table.app
     self._data = None
     self.enabled = str(enabled)
     self.regex = str(regex)
     self.highlight = False
示例#2
0
 def __init__(self, table, group, dupe):
     Row.__init__(self, table)
     self._app = table.app
     self._group = group
     self._dupe = dupe
     self._data = None
     self._data_delta = None
     self._delta_columns = None
示例#3
0
 def __init__(self, table, group, dupe):
     Row.__init__(self, table)
     self._app = table.app
     self._group = group
     self._dupe = dupe
     self._data = None
     self._data_delta = None
     self._delta_columns = None
示例#4
0
 def sort_key_for_column(self, column_name):
     value = RowBase.sort_key_for_column(self, column_name)
     if isinstance(value, str):
         value = sort_string(value)
     elif isinstance(value, Amount):
         value = value.value
     return value
示例#5
0
 def sort_key_for_column(self, column_name):
     if column_name == 'order':
         return (self._page, self._order)
     elif column_name == 'state':
         if self._state == ElementState.Title:
             return (self._state, self.element.title_level)
         else:
             return (self._state, 0)
     else:
         return Row.sort_key_for_column(self, column_name)
示例#6
0
 def sort_key_for_column(self, column_name):
     if column_name == 'order':
         return (self._page, self._order)
     elif column_name == 'state':
         if self._state == ElementState.Title:
             return (self._state, self.element.title_level)
         else:
             return (self._state, 0)
     else:
         return Row.sort_key_for_column(self, column_name)
示例#7
0
    def __init__(self, table, element):
        Row.__init__(self, table)
        self.element = element
        self._order = element.order
        self._page = element.page
        self._x = element.x
        self._y = element.y
        self._fontsize = element.fontsize
        self._text_length = len(element.text)
        self.text = element.text.replace('\n', ' ')
        self._state = element.state

        # Format
        self.order = "{:d}".format(self._order)
        self.page = "{:d}".format(self._page)
        self.x = "{:.0f}".format(self._x)
        self.y = "{:.0f}".format(self._y)
        self.fontsize = "{:0.1f}".format(self._fontsize)
        self.text_length = "{:d}".format(self._text_length)
        statetext = self._state.capitalize()
        if self._state == ElementState.Title:
            self.state = "{} ({})".format(statetext, self.element.title_level)
        else:
            self.state = statetext
示例#8
0
 def __init__(self, table, element):
     Row.__init__(self, table)
     self.element = element
     self._order = element.order
     self._page = element.page
     self._x = element.x
     self._y = element.y
     self._fontsize = element.fontsize
     self._text_length = len(element.text)
     self.text = element.text.replace('\n', ' ')
     self._state = element.state
     
     # Format
     self.order = "{:d}".format(self._order)
     self.page = "{:d}".format(self._page)
     self.x = "{:.0f}".format(self._x)
     self.y = "{:.0f}".format(self._y)
     self.fontsize = "{:0.1f}".format(self._fontsize)
     self.text_length = "{:d}".format(self._text_length)
     statetext = self._state.capitalize()
     if self._state == ElementState.Title:
         self.state = "{} ({})".format(statetext, self.element.title_level)
     else:
         self.state = statetext
示例#9
0
 def __init__(self, table, dupe, msg):
     Row.__init__(self, table)
     self.dupe = dupe
     self.msg = msg
     self.path = str(dupe.path)
示例#10
0
 def __init__(self, table, dupe, msg):
     Row.__init__(self, table)
     self.dupe = dupe
     self.msg = msg
     self.path = str(dupe.path)
示例#11
0
 def __init__(self, table, path1, path2):
     Row.__init__(self, table)
     self.path1_original = path1
     self.path2_original = path2
     self.path1 = str(path1)
     self.path2 = str(path2)
示例#12
0
 def __init__(self, table, path1, path2):
     Row.__init__(self, table)
     self.path1_original = path1
     self.path2_original = path2
     self.path1 = str(path1)
     self.path2 = str(path2)