mostly finish rewrite

This commit is contained in:
2026-06-28 10:10:27 -07:00
parent f10eb64332
commit ddb30d98f2
18 changed files with 2116 additions and 2350 deletions
+28 -1
View File
@@ -1,3 +1,11 @@
"""
Filename: flaresbasewidget.py
Description: Custom window design and supporting methods for FLARES
Author: Tyler de Zeeuw
License: GPL-3.0
"""
import os
from PySide6.QtWidgets import QApplication, QComboBox, QDialog, QHBoxLayout, QLabel, QLineEdit, QListView, QMessageBox, QPushButton, QVBoxLayout, QWidget, QFrame, QSpinBox
@@ -5,9 +13,28 @@ from PySide6.QtGui import QStandardItemModel, QStandardItem, QPixmap, QIntValida
from PySide6.QtCore import QEvent, Qt
from src.shared.shareddata import APP_NAME
from src.shared.flaresbasewidget import FullClickComboBox
class FullClickComboBox(QComboBox):
def __init__(self, parent=None):
super().__init__(parent)
self.setEditable(True)
self.lineEdit().setReadOnly(True)
self.lineEdit().installEventFilter(self)
def eventFilter(self, obj, event):
if obj == self.lineEdit():
if event.type() == QEvent.MouseButtonPress:
return True
if event.type() == QEvent.MouseButtonRelease:
self.showPopup()
return True
return super().eventFilter(obj, event)
class ClickableLabel(QLabel):
def __init__(self, full_pixmap: QPixmap, thumbnail_pixmap: QPixmap):
super().__init__()
+10
View File
@@ -1,3 +1,11 @@
"""
Filename: shareddata.py
Description: Shared constants and methods for FLARES
Author: Tyler de Zeeuw
License: GPL-3.0
"""
import sys
import os
import platform
@@ -7,6 +15,8 @@ APP_NAME = "flares"
API_URL = f"https://git.research.dezeeuw.ca/api/v1/repos/tyler/{APP_NAME}/releases"
API_URL_SECONDARY = f"https://git.research2.dezeeuw.ca/api/v1/repos/tyler/{APP_NAME}/releases"
PLATFORM_NAME = platform.system().lower()
CHANGELOG_URL = "https://git.research.dezeeuw.ca/tyler/flares/raw/branch/main/changelog_major.md"
WIKI_URL = "https://git.research.dezeeuw.ca/tyler/flares/wiki"
PIPELINE_STAGES = [
"Preprocessing",