Initial commit

This commit is contained in:
Robert 2020-11-30 17:35:58 +01:00
commit c3dd7f832d
16 changed files with 989 additions and 0 deletions

57
ui/Component.ui Normal file
View file

@ -0,0 +1,57 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Component</class>
<widget class="QFrame" name="Component">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>100</width>
<height>100</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<pointsize>19</pointsize>
</font>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<widget class="QLabel" name="label">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>100</width>
<height>100</height>
</rect>
</property>
<property name="text">
<string/>
</property>
<property name="pixmap">
<pixmap resource="assets/resources.qrc">:/components/and.png</pixmap>
</property>
<property name="scaledContents">
<bool>true</bool>
</property>
</widget>
</widget>
<resources>
<include location="assets/resources.qrc"/>
</resources>
<connections/>
</ui>

84
ui/Window.ui Normal file
View file

@ -0,0 +1,84 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Window</class>
<widget class="QMainWindow" name="Window">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>800</width>
<height>600</height>
</rect>
</property>
<property name="windowTitle">
<string>Digital Circuit</string>
</property>
<property name="dockOptions">
<set>QMainWindow::AnimatedDocks</set>
</property>
<widget class="QWidget" name="centralwidget">
<widget class="Component" name="frame">
<property name="geometry">
<rect>
<x>170</x>
<y>180</y>
<width>100</width>
<height>100</height>
</rect>
</property>
<property name="autoFillBackground">
<bool>false</bool>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
</widget>
</widget>
<widget class="QStatusBar" name="statusbar"/>
<widget class="QToolBar" name="toolBar">
<property name="windowTitle">
<string>toolBar</string>
</property>
<attribute name="toolBarArea">
<enum>TopToolBarArea</enum>
</attribute>
<attribute name="toolBarBreak">
<bool>false</bool>
</attribute>
<addaction name="actionStart"/>
</widget>
<action name="actionStart">
<property name="icon">
<iconset resource="assets/resources.qrc">
<normaloff>:/toolbar/start.png</normaloff>:/toolbar/start.png</iconset>
</property>
<property name="text">
<string>StartStop</string>
</property>
<property name="toolTip">
<string>Starts the simulation</string>
</property>
<property name="shortcut">
<string>F5</string>
</property>
</action>
</widget>
<customwidgets>
<customwidget>
<class>Component</class>
<extends>QFrame</extends>
<header>Component.hpp</header>
<container>1</container>
</customwidget>
</customwidgets>
<resources>
<include location="assets/resources.qrc"/>
</resources>
<connections/>
</ui>

2
ui/assets/README.md Normal file
View file

@ -0,0 +1,2 @@
I didn't bother choosing any icons myself yet.
Privately I grabbed some icons from the internet, however they're only for non-commercial use.

BIN
ui/assets/and.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

9
ui/assets/resources.qrc Normal file
View file

@ -0,0 +1,9 @@
<RCC>
<qresource prefix="/toolbar">
<file>start.png</file>
<file>stop.png</file>
</qresource>
<qresource prefix="/components">
<file>and.png</file>
</qresource>
</RCC>

BIN
ui/assets/start.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
ui/assets/stop.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 730 B