Added simulation functionality
62
ui/Window.ui
|
@ -30,6 +30,9 @@
|
|||
</attribute>
|
||||
<addaction name="actionStart"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionCursor"/>
|
||||
<addaction name="actionWiring"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionAddNOT"/>
|
||||
<addaction name="actionAddAND"/>
|
||||
<addaction name="actionAddNAND"/>
|
||||
|
@ -37,6 +40,8 @@
|
|||
<addaction name="actionAddNOR"/>
|
||||
<addaction name="actionAddXOR"/>
|
||||
<addaction name="actionAddXNOR"/>
|
||||
<addaction name="actionAddSwitch"/>
|
||||
<addaction name="actionAddLamp"/>
|
||||
</widget>
|
||||
<action name="actionStart">
|
||||
<property name="icon">
|
||||
|
@ -183,6 +188,63 @@
|
|||
<string>7</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionAddSwitch">
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="assets/resources.qrc">
|
||||
<normaloff>:/components/switch.png</normaloff>:/components/switch.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>AddSwitch</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionAddLamp">
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="assets/resources.qrc">
|
||||
<normaloff>:/components/lamp.png</normaloff>:/components/lamp.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>AddLamp</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionCursor">
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="assets/resources.qrc">
|
||||
<normaloff>:/toolbar/cursor.png</normaloff>:/toolbar/cursor.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Cursor</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Default Mode</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionWiring">
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="assets/resources.qrc">
|
||||
<normaloff>:/toolbar/wire.png</normaloff>:/toolbar/wire.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Wiring</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Wiring mode</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<resources>
|
||||
<include location="assets/resources.qrc"/>
|
||||
|
|
BIN
ui/assets/cursor.png
Normal file
After Width: | Height: | Size: 5 KiB |
BIN
ui/assets/lamp.png
Normal file
After Width: | Height: | Size: 711 B |
BIN
ui/assets/lamp_off.png
Normal file
After Width: | Height: | Size: 8.7 KiB |
BIN
ui/assets/lamp_on.png
Normal file
After Width: | Height: | Size: 8.9 KiB |
|
@ -2,6 +2,8 @@
|
|||
<qresource prefix="/toolbar">
|
||||
<file>start.png</file>
|
||||
<file>stop.png</file>
|
||||
<file>cursor.png</file>
|
||||
<file>wire.png</file>
|
||||
</qresource>
|
||||
<qresource prefix="/components">
|
||||
<file>and.png</file>
|
||||
|
@ -11,5 +13,11 @@
|
|||
<file>not.png</file>
|
||||
<file>xnor.png</file>
|
||||
<file>xor.png</file>
|
||||
<file>lamp.png</file>
|
||||
<file>lamp_off.png</file>
|
||||
<file>lamp_on.png</file>
|
||||
<file>switch.png</file>
|
||||
<file>switch_off.png</file>
|
||||
<file>switch_on.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
|
BIN
ui/assets/switch.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
ui/assets/switch_off.png
Normal file
After Width: | Height: | Size: 8.7 KiB |
BIN
ui/assets/switch_on.png
Normal file
After Width: | Height: | Size: 8.9 KiB |
BIN
ui/assets/wire.png
Normal file
After Width: | Height: | Size: 789 B |