add time diff plugin
This commit is contained in:
18
src/ui/bigtext/preProcessLinesModel.py
Normal file
18
src/ui/bigtext/preProcessLinesModel.py
Normal file
@@ -0,0 +1,18 @@
|
||||
from typing import List
|
||||
|
||||
from src.plugins.logfile.preprocesslineshook import PreProcessLinesHook
|
||||
|
||||
|
||||
class PreProcessLinesModel:
|
||||
def __init__(self):
|
||||
self._pre_process_lines_hooks: List[PreProcessLinesHook] = []
|
||||
|
||||
def add_hook(self, hook: PreProcessLinesHook):
|
||||
self._pre_process_lines_hooks.append(hook)
|
||||
|
||||
def add_hooks(self, hooks: List[PreProcessLinesHook]):
|
||||
for hook in hooks:
|
||||
self.add_hook(hook)
|
||||
|
||||
def get_hooks(self) -> List[PreProcessLinesHook]:
|
||||
return self._pre_process_lines_hooks.copy()
|
||||
@@ -5,5 +5,9 @@ class HBox(QWidget):
|
||||
def __init__(self, *widgets: QWidget):
|
||||
super(HBox, self).__init__()
|
||||
self.layout = QHBoxLayout(self)
|
||||
self.layout.setContentsMargins(0, 0, 0, 0)
|
||||
for widget in widgets:
|
||||
self.layout.addWidget(widget)
|
||||
|
||||
def addWidget(self, widget: QWidget):
|
||||
self.layout.addWidget(widget)
|
||||
|
||||
Reference in New Issue
Block a user