move files into a package structure
This commit is contained in:
@@ -13,7 +13,7 @@ from PySide6.QtWidgets import *
|
|||||||
|
|
||||||
import constants
|
import constants
|
||||||
from raven.ui.ScaledScrollBar import ScaledScrollBar
|
from raven.ui.ScaledScrollBar import ScaledScrollBar
|
||||||
from conversion import humanbytes
|
from raven.util.conversion import humanbytes
|
||||||
from highlight_selection import HighlightSelection
|
from highlight_selection import HighlightSelection
|
||||||
from highlighted_range import HighlightedRange
|
from highlighted_range import HighlightedRange
|
||||||
from highlightingdialog import HighlightingDialog
|
from highlightingdialog import HighlightingDialog
|
||||||
@@ -21,7 +21,7 @@ from line import Line
|
|||||||
from logFileModel import LogFileModel
|
from logFileModel import LogFileModel
|
||||||
from raven.pluginregistry import PluginRegistry
|
from raven.pluginregistry import PluginRegistry
|
||||||
|
|
||||||
from settings import Settings
|
from raven.settings.settings import Settings
|
||||||
from watchdog.observers import Observer
|
from watchdog.observers import Observer
|
||||||
from watchdog.events import FileSystemEventHandler
|
from watchdog.events import FileSystemEventHandler
|
||||||
from raven.i18n import _
|
from raven.i18n import _
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ from filterviewsyncer import FilterViewSyncer
|
|||||||
from filterwidget import FilterWidget
|
from filterwidget import FilterWidget
|
||||||
from logFileModel import LogFileModel
|
from logFileModel import LogFileModel
|
||||||
from raven.plugins.ravenlog.Tab import Tab
|
from raven.plugins.ravenlog.Tab import Tab
|
||||||
from conversion import humanbytes
|
from raven.util.conversion import humanbytes
|
||||||
|
|
||||||
|
|
||||||
class FullTabWidget(Tab):
|
class FullTabWidget(Tab):
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ from line import Line
|
|||||||
from PySide6.QtCore import Qt
|
from PySide6.QtCore import Qt
|
||||||
from PySide6.QtGui import QBrush, QColor
|
from PySide6.QtGui import QBrush, QColor
|
||||||
|
|
||||||
from settings import Settings
|
from raven.settings.settings import Settings
|
||||||
|
|
||||||
|
|
||||||
class HighlightSelection(Highlight):
|
class HighlightSelection(Highlight):
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import logging
|
import logging
|
||||||
|
|
||||||
from highlight_regex import HighlightRegex
|
from highlight_regex import HighlightRegex
|
||||||
from settings import Settings
|
from raven.settings.settings import Settings
|
||||||
|
|
||||||
log = logging.getLogger("highlighting")
|
log = logging.getLogger("highlighting")
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ from raven.ui.colorbutton import ColorButton
|
|||||||
from raven.ui.hbox import HBox
|
from raven.ui.hbox import HBox
|
||||||
from highlight_regex import HighlightRegex
|
from highlight_regex import HighlightRegex
|
||||||
from highlighting import Highlighting
|
from highlighting import Highlighting
|
||||||
from settings import Settings
|
from raven.settings.settings import Settings
|
||||||
|
|
||||||
from raven.i18n import _
|
from raven.i18n import _
|
||||||
|
|
||||||
|
|||||||
BIN
icon7_gold3.png
BIN
icon7_gold3.png
Binary file not shown.
|
Before Width: | Height: | Size: 3.1 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 4.2 KiB |
BIN
icon8c.png
BIN
icon8c.png
Binary file not shown.
|
Before Width: | Height: | Size: 4.4 KiB |
@@ -2,7 +2,7 @@ import os
|
|||||||
import tempfile
|
import tempfile
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
from int2intmap import Int2IntMap
|
from raven.util.int2intmap import Int2IntMap
|
||||||
|
|
||||||
|
|
||||||
class LineToLineMap:
|
class LineToLineMap:
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ from highlight_regex import HighlightRegex
|
|||||||
from highlighting import Highlighting
|
from highlighting import Highlighting
|
||||||
from line import Line
|
from line import Line
|
||||||
import os
|
import os
|
||||||
from settings import Settings
|
from raven.settings.settings import Settings
|
||||||
|
|
||||||
|
|
||||||
class LogFileModel:
|
class LogFileModel:
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import os
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
from raven.pluginregistry import PluginRegistry
|
from raven.pluginregistry import PluginRegistry
|
||||||
from settingsstore import SettingsStore
|
from raven.settings.settingsstore import SettingsStore
|
||||||
|
|
||||||
settings = SettingsStore.load()
|
settings = SettingsStore.load()
|
||||||
locale = os.environ['LANG'] if os.environ['LANG'] else "en"
|
locale = os.environ['LANG'] if os.environ['LANG'] else "en"
|
||||||
|
|||||||
@@ -5,16 +5,16 @@ from PySide6.QtWidgets import *
|
|||||||
from PySide6.QtGui import *
|
from PySide6.QtGui import *
|
||||||
from PySide6.QtCore import Qt
|
from PySide6.QtCore import Qt
|
||||||
|
|
||||||
import urlutils
|
from raven.util import urlutils
|
||||||
from cutesettings import CuteSettings
|
from raven.settings.cutesettings import CuteSettings
|
||||||
from raven.pluginregistry import PluginRegistry
|
from raven.pluginregistry import PluginRegistry
|
||||||
from raven.plugins.domain.menucontribution import MenuContribution, sort_menu_contributions
|
from raven.plugins.domain.menucontribution import MenuContribution, sort_menu_contributions
|
||||||
from raven.plugins.domain.raction import RAction
|
from raven.plugins.domain.raction import RAction
|
||||||
from raven.plugins.domain.rmenu import RMenu
|
from raven.plugins.domain.rmenu import RMenu
|
||||||
from settingsstore import SettingsStore
|
from raven.settings.settingsstore import SettingsStore
|
||||||
from highlightingdialog import HighlightingDialog
|
from highlightingdialog import HighlightingDialog
|
||||||
from raven.ui.tabs import Tabs
|
from raven.ui.tabs import Tabs
|
||||||
from urlutils import url_is_file
|
from raven.util.urlutils import url_is_file
|
||||||
from functools import reduce
|
from functools import reduce
|
||||||
|
|
||||||
from raven.i18n import _
|
from raven.i18n import _
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import os.path
|
import os.path
|
||||||
from typing import Callable, Optional
|
from typing import Optional
|
||||||
|
|
||||||
from PySide6.QtWidgets import QMessageBox
|
from PySide6.QtWidgets import QMessageBox
|
||||||
|
|
||||||
@@ -7,7 +7,7 @@ from fulltabwidget import FullTabWidget
|
|||||||
from logFileModel import LogFileModel
|
from logFileModel import LogFileModel
|
||||||
from raven.pluginbase import PluginBase
|
from raven.pluginbase import PluginBase
|
||||||
from raven.plugins.ravenlog.Tab import Tab
|
from raven.plugins.ravenlog.Tab import Tab
|
||||||
from settings import Settings
|
from raven.settings.settings import Settings
|
||||||
|
|
||||||
from raven.i18n import _
|
from raven.i18n import _
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
import os
|
import os
|
||||||
from typing import Callable
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
from PySide6.QtCore import QObject
|
|
||||||
from PySide6.QtWidgets import QFileDialog
|
from PySide6.QtWidgets import QFileDialog
|
||||||
|
|
||||||
from raven.pluginbase import PluginBase
|
from raven.pluginbase import PluginBase
|
||||||
@@ -10,7 +8,7 @@ from raven.pluginregistry import PluginRegistry
|
|||||||
from raven.plugins.domain.menucontribution import MenuContribution
|
from raven.plugins.domain.menucontribution import MenuContribution
|
||||||
from raven.plugins.domain.raction import RAction
|
from raven.plugins.domain.raction import RAction
|
||||||
from raven.plugins.domain.rmenu import RMenu
|
from raven.plugins.domain.rmenu import RMenu
|
||||||
from settings import Settings
|
from raven.settings.settings import Settings
|
||||||
|
|
||||||
from raven.i18n import _
|
from raven.i18n import _
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ from raven.plugins.domain.raction import RAction
|
|||||||
from raven.plugins.domain.rmenu import RMenu
|
from raven.plugins.domain.rmenu import RMenu
|
||||||
from raven.plugins.ravenlog.Tab import Tab
|
from raven.plugins.ravenlog.Tab import Tab
|
||||||
from raven.i18n import _, locale
|
from raven.i18n import _, locale
|
||||||
from settings import Settings
|
from raven.settings.settings import Settings
|
||||||
|
|
||||||
|
|
||||||
class RavenLogPlugin(PluginBase):
|
class RavenLogPlugin(PluginBase):
|
||||||
|
|||||||
0
raven/settings/__init__.py
Normal file
0
raven/settings/__init__.py
Normal file
@@ -1,12 +1,11 @@
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
from typing import Callable
|
|
||||||
|
|
||||||
from settings import Settings
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from os.path import join, isfile
|
from os.path import join
|
||||||
from configparser import ConfigParser
|
from configparser import ConfigParser
|
||||||
|
|
||||||
|
from raven.settings.settings import Settings
|
||||||
|
|
||||||
|
|
||||||
class SettingsStore():
|
class SettingsStore():
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -4,7 +4,7 @@ from PySide6.QtWidgets import QWidget, QTabWidget, QVBoxLayout
|
|||||||
|
|
||||||
from raven.pluginregistry import PluginRegistry
|
from raven.pluginregistry import PluginRegistry
|
||||||
from raven.plugins.ravenlog.Tab import Tab
|
from raven.plugins.ravenlog.Tab import Tab
|
||||||
from settings import Settings
|
from raven.settings.settings import Settings
|
||||||
|
|
||||||
|
|
||||||
class Tabs(QWidget):
|
class Tabs(QWidget):
|
||||||
|
|||||||
0
raven/util/__init__.py
Normal file
0
raven/util/__init__.py
Normal file
@@ -2,7 +2,7 @@ import tempfile
|
|||||||
import unittest
|
import unittest
|
||||||
from os.path import join
|
from os.path import join
|
||||||
|
|
||||||
from int2intmap import Int2IntMap
|
from raven.util.int2intmap import Int2IntMap
|
||||||
|
|
||||||
|
|
||||||
class Int2IntMapLike(unittest.TestCase):
|
class Int2IntMapLike(unittest.TestCase):
|
||||||
@@ -4,7 +4,7 @@ from configparser import ConfigParser
|
|||||||
from os.path import join
|
from os.path import join
|
||||||
|
|
||||||
from logFileModel import LogFileModel
|
from logFileModel import LogFileModel
|
||||||
from settings import Settings
|
from raven.settings.settings import Settings
|
||||||
|
|
||||||
|
|
||||||
class TestLogFileModel(unittest.TestCase):
|
class TestLogFileModel(unittest.TestCase):
|
||||||
|
|||||||
Reference in New Issue
Block a user