Skip to content

Commit

Permalink
ENH: add skeleton mainpage and dialogs
Browse files Browse the repository at this point in the history
  • Loading branch information
Marisa Nieto Del Rio De Astis committed Aug 22, 2024
1 parent 4576f44 commit 2d977a0
Show file tree
Hide file tree
Showing 12 changed files with 1,060 additions and 75 deletions.
2 changes: 1 addition & 1 deletion superscore/bin/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ def _build_commands():
return result


COMMANDS = _build_commands()


def main():
COMMANDS = _build_commands()
top_parser = argparse.ArgumentParser(
prog='superscore',
description=DESCRIPTION,
Expand Down
4 changes: 2 additions & 2 deletions superscore/bin/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from qtpy.QtWidgets import QApplication

from superscore.widgets.window import Window
from superscore.widgets.snapshot_mainpage import SnapshotMainPage


def build_arg_parser(argparser=None):
Expand All @@ -18,7 +18,7 @@ def build_arg_parser(argparser=None):

def main(*args, **kwargs):
app = QApplication(sys.argv)
main_window = Window()
main_window = SnapshotMainPage()

main_window.show()
app.exec()
248 changes: 248 additions & 0 deletions superscore/ui/filterScreen.ui
Original file line number Diff line number Diff line change
@@ -0,0 +1,248 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Form</class>
<widget class="QWidget" name="Form">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>338</width>
<height>586</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<property name="autoFillBackground">
<bool>false</bool>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(255, 255, 255);</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<layout class="QHBoxLayout" name="filterSnapshotsHorizontalLayout">
<item>
<widget class="QFrame" name="filterFrame">
<property name="styleSheet">
<string notr="true">background-color: rgb(255, 255, 255);</string>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QLabel" name="filterSnapshotLabel">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="text">
<string>Filter Snapshots</string>
</property>
</widget>
</item>
<item>
<spacer name="filterFrameSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>72</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="clearFilterButton">
<property name="text">
<string>Clear Filters</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="filterOptionsVerticalLayout">
<item>
<widget class="QFrame" name="collectionsFrame">
<property name="styleSheet">
<string notr="true">background-color: rgb(255, 255, 255);</string>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QLabel" name="collectionsLabel">
<property name="font">
<font>
<pointsize>11</pointsize>
</font>
</property>
<property name="text">
<string>Collections</string>
</property>
</widget>
</item>
<item row="0" column="1">
<spacer name="collectionsSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>126</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="2">
<widget class="QPushButton" name="collResetButton">
<property name="text">
<string>Reset</string>
</property>
</widget>
</item>
<item row="1" column="0" colspan="3">
<widget class="QTreeWidget" name="collectionsTreeWidget">
<property name="styleSheet">
<string notr="true">background-color: rgb(255, 255, 255);</string>
</property>
<column>
<property name="text">
<string notr="true">1</string>
</property>
</column>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QFrame" name="tagFrame">
<property name="styleSheet">
<string notr="true">background-color: rgb(255, 255, 255);</string>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0">
<widget class="QLabel" name="tagLabel">
<property name="font">
<font>
<pointsize>11</pointsize>
</font>
</property>
<property name="text">
<string>Tags</string>
</property>
</widget>
</item>
<item row="0" column="1">
<spacer name="tagSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>174</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="2">
<widget class="QPushButton" name="tagResetButton">
<property name="text">
<string>Reset</string>
</property>
</widget>
</item>
<item row="1" column="0" colspan="3">
<widget class="QListWidget" name="tagListWidget"/>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QFrame" name="metaPvFrame">
<property name="styleSheet">
<string notr="true">background-color: rgb(255, 255, 255);</string>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<layout class="QGridLayout" name="gridLayout_3">
<item row="0" column="2">
<widget class="QPushButton" name="metaPvResetButton">
<property name="text">
<string>Reset</string>
</property>
</widget>
</item>
<item row="1" column="0" colspan="3">
<widget class="QTableView" name="metaPvTableView"/>
</item>
<item row="0" column="1">
<spacer name="metaPvSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>150</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="0">
<widget class="QLabel" name="metaPvLabel">
<property name="font">
<font>
<pointsize>11</pointsize>
</font>
</property>
<property name="text">
<string>MetaPV</string>
</property>
</widget>
</item>
<item row="2" column="0" colspan="3">
<widget class="QPushButton" name="applyFiltersButton">
<property name="text">
<string>Apply Filter</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>
Loading

0 comments on commit 2d977a0

Please sign in to comment.