move the log file viewer to its own plugin
We plan to have multiple different types of tabs.
This commit is contained in:
23
raven/plugins/ravenlog/Tab.py
Normal file
23
raven/plugins/ravenlog/Tab.py
Normal file
@@ -0,0 +1,23 @@
|
||||
from abc import abstractmethod
|
||||
|
||||
from PyQt6.QtWidgets import QWidget
|
||||
|
||||
|
||||
class Tab(QWidget):
|
||||
|
||||
def __init__(self, unique_id: str, title: str):
|
||||
super(Tab, self).__init__()
|
||||
self.unique_id = unique_id
|
||||
self.title = title
|
||||
|
||||
@abstractmethod
|
||||
def get_status_text(self) -> str:
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def get_file(self) -> str:
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def destruct(self):
|
||||
pass
|
||||
Reference in New Issue
Block a user