rbeesoft 2.0.8__tar.gz → 2.0.9__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {rbeesoft-2.0.8 → rbeesoft-2.0.9}/PKG-INFO +1 -1
- {rbeesoft-2.0.8 → rbeesoft-2.0.9}/pyproject.toml +1 -1
- {rbeesoft-2.0.8 → rbeesoft-2.0.9}/src/rbeesoft/app/ui/rbeesoftmainwindow.py +13 -13
- {rbeesoft-2.0.8 → rbeesoft-2.0.9}/README.md +0 -0
- {rbeesoft-2.0.8 → rbeesoft-2.0.9}/src/rbeesoft/__init__.py +0 -0
- {rbeesoft-2.0.8 → rbeesoft-2.0.9}/src/rbeesoft/app/__init__.py +0 -0
- {rbeesoft-2.0.8 → rbeesoft-2.0.9}/src/rbeesoft/app/core/__init__.py +0 -0
- {rbeesoft-2.0.8 → rbeesoft-2.0.9}/src/rbeesoft/app/main.py +0 -0
- {rbeesoft-2.0.8 → rbeesoft-2.0.9}/src/rbeesoft/app/ui/__init__.py +0 -0
- {rbeesoft-2.0.8 → rbeesoft-2.0.9}/src/rbeesoft/app/ui/processes/__init__.py +0 -0
- {rbeesoft-2.0.8 → rbeesoft-2.0.9}/src/rbeesoft/app/ui/processes/dummyprocess.py +0 -0
- {rbeesoft-2.0.8 → rbeesoft-2.0.9}/src/rbeesoft/app/ui/processes/process.py +0 -0
- {rbeesoft-2.0.8 → rbeesoft-2.0.9}/src/rbeesoft/app/ui/processes/processrunner.py +0 -0
- {rbeesoft-2.0.8 → rbeesoft-2.0.9}/src/rbeesoft/app/ui/settings.py +0 -0
- {rbeesoft-2.0.8 → rbeesoft-2.0.9}/src/rbeesoft/app/ui/widgets/__init__.py +0 -0
- {rbeesoft-2.0.8 → rbeesoft-2.0.9}/src/rbeesoft/app/ui/widgets/centraldockwidget.py +0 -0
- {rbeesoft-2.0.8 → rbeesoft-2.0.9}/src/rbeesoft/app/ui/widgets/logdockwidget.py +0 -0
- {rbeesoft-2.0.8 → rbeesoft-2.0.9}/src/rbeesoft/app/ui/widgets/pages/__init__.py +0 -0
- {rbeesoft-2.0.8 → rbeesoft-2.0.9}/src/rbeesoft/app/ui/widgets/pages/page.py +0 -0
- {rbeesoft-2.0.8 → rbeesoft-2.0.9}/src/rbeesoft/app/ui/widgets/pages/pagerouter.py +0 -0
- {rbeesoft-2.0.8 → rbeesoft-2.0.9}/src/rbeesoft/common/__init__.py +0 -0
- {rbeesoft-2.0.8 → rbeesoft-2.0.9}/src/rbeesoft/common/decorators.py +0 -0
- {rbeesoft-2.0.8 → rbeesoft-2.0.9}/src/rbeesoft/common/exceptions/__init__.py +0 -0
- {rbeesoft-2.0.8 → rbeesoft-2.0.9}/src/rbeesoft/common/exceptions/licenseexception.py +0 -0
- {rbeesoft-2.0.8 → rbeesoft-2.0.9}/src/rbeesoft/common/license.py +0 -0
- {rbeesoft-2.0.8 → rbeesoft-2.0.9}/src/rbeesoft/common/licensemanager.py +0 -0
- {rbeesoft-2.0.8 → rbeesoft-2.0.9}/src/rbeesoft/common/logmanager.py +0 -0
- {rbeesoft-2.0.8 → rbeesoft-2.0.9}/src/rbeesoft/common/logmanagerlistener.py +0 -0
- {rbeesoft-2.0.8 → rbeesoft-2.0.9}/src/rbeesoft/webapp/__init__.py +0 -0
|
@@ -27,23 +27,23 @@ class RbeesoftMainWindow(QMainWindow):
|
|
|
27
27
|
self._log_dockwidget = None
|
|
28
28
|
self._license_manager = None
|
|
29
29
|
self._license = None
|
|
30
|
-
self.
|
|
30
|
+
self._init()
|
|
31
31
|
|
|
32
32
|
# INITIALIZATION
|
|
33
33
|
|
|
34
|
-
def
|
|
34
|
+
def _init(self):
|
|
35
35
|
self.setWindowTitle(self.app_title())
|
|
36
36
|
self.addDockWidget(Qt.DockWidgetArea.TopDockWidgetArea, self.central_dockwidget())
|
|
37
37
|
self.addDockWidget(Qt.DockWidgetArea.BottomDockWidgetArea, self.log_dockwidget())
|
|
38
38
|
LOG.info(f'Settings path: {self.settings().fileName()}')
|
|
39
39
|
if self.app_icon():
|
|
40
40
|
self.setWindowIcon(self.app_icon())
|
|
41
|
-
self.
|
|
42
|
-
self.
|
|
43
|
-
self.
|
|
41
|
+
self._load_geometry_and_state()
|
|
42
|
+
self._init_default_menus()
|
|
43
|
+
self._check_license()
|
|
44
44
|
self.statusBar().showMessage('Ready')
|
|
45
45
|
|
|
46
|
-
def
|
|
46
|
+
def _init_default_menus(self):
|
|
47
47
|
# Application menu
|
|
48
48
|
icon = self.style().standardIcon(QStyle.StandardPixmap.SP_MessageBoxCritical)
|
|
49
49
|
exit_action = QAction(icon, 'E&xit', self)
|
|
@@ -96,7 +96,7 @@ class RbeesoftMainWindow(QMainWindow):
|
|
|
96
96
|
# EVENT HANDLERS
|
|
97
97
|
|
|
98
98
|
def closeEvent(self, event):
|
|
99
|
-
self.
|
|
99
|
+
self._save_geometry_and_state()
|
|
100
100
|
return super().closeEvent(event)
|
|
101
101
|
|
|
102
102
|
def handle_open_license_file_action(self):
|
|
@@ -105,14 +105,14 @@ class RbeesoftMainWindow(QMainWindow):
|
|
|
105
105
|
if file_path:
|
|
106
106
|
self.settings().set('mainwindow/last_directory', os.path.split(file_path)[0])
|
|
107
107
|
self.settings().set('mainwindow/license_file', file_path)
|
|
108
|
-
self.
|
|
108
|
+
self._check_license()
|
|
109
109
|
|
|
110
110
|
# HELPERS
|
|
111
111
|
|
|
112
112
|
def add_page(self, page, home_page=False):
|
|
113
113
|
self.central_dockwidget().add_page(page, home_page)
|
|
114
114
|
|
|
115
|
-
def
|
|
115
|
+
def _check_license(self):
|
|
116
116
|
file_path = self.settings().get('mainwindow/license_file', None)
|
|
117
117
|
if file_path:
|
|
118
118
|
try:
|
|
@@ -126,7 +126,7 @@ class RbeesoftMainWindow(QMainWindow):
|
|
|
126
126
|
LOG.info('No license found')
|
|
127
127
|
return False
|
|
128
128
|
|
|
129
|
-
def
|
|
129
|
+
def _load_geometry_and_state(self):
|
|
130
130
|
geometry = self.settings().get('mainwindow/geometry')
|
|
131
131
|
state = self.settings().get('mainwindow/state')
|
|
132
132
|
if isinstance(geometry, QByteArray) and self.restoreGeometry(geometry):
|
|
@@ -134,13 +134,13 @@ class RbeesoftMainWindow(QMainWindow):
|
|
|
134
134
|
self.restoreState(state)
|
|
135
135
|
return
|
|
136
136
|
self.resize(self.app_width(), self.app_height())
|
|
137
|
-
self.
|
|
137
|
+
self._center_window()
|
|
138
138
|
|
|
139
|
-
def
|
|
139
|
+
def _save_geometry_and_state(self):
|
|
140
140
|
self.settings().set('mainwindow/geometry', self.saveGeometry())
|
|
141
141
|
self.settings().set('mainwindow/state', self.saveState())
|
|
142
142
|
|
|
143
|
-
def
|
|
143
|
+
def _center_window(self):
|
|
144
144
|
screen = QGuiApplication.primaryScreen().geometry()
|
|
145
145
|
x = (screen.width() - self.geometry().width()) / 2
|
|
146
146
|
y = (screen.height() - self.geometry().height()) / 2
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|