add ui designer file

This commit is contained in:
Maciej Barć 2020-08-18 00:02:17 +02:00
parent 49f9ec2c44
commit ddeda5fae4
No known key found for this signature in database
GPG Key ID: 031C9FE65BED714A
5 changed files with 348 additions and 6 deletions

1
.gitignore vendored
View File

@ -18,3 +18,4 @@
/target/ /target/
__pycache__/ __pycache__/
_build/ _build/
ui.py

View File

@ -1,18 +1,22 @@
BIN = leaden BIN = leaden
.PHONY: all clean install uninstall distclean .PHONY: all build clean install uninstall distclean
all: all: build
@echo did nothing. try targets: install, or uninstall.
build:
pyuic5 -x $(BIN)/ui.ui -o $(BIN)/ui.py
clean: clean:
$(RM) $(BIN)/ui.py
$(RM) -dr $(BIN).egg-info $(RM) -dr $(BIN).egg-info
$(RM) -dr $(BIN)/__pycache__
$(RM) -dr build $(RM) -dr build
$(RM) -dr dist $(RM) -dr dist
$(RM) -dr $(BIN)/__pycache__
install: install:

View File

@ -52,7 +52,7 @@ Some functions of Leaden may be also called from console. Run `leaden --help` to
## Manual ## Manual
- clone this project using git - clone this project using git
- run `make install` - run `make && make install`
## Ebuild ## Ebuild

View File

@ -3,9 +3,15 @@
import sys import sys
from leaden import ui
def main(argv): def main(argv):
print("Test") app = ui.QtWidgets.QApplication(sys.argv)
MainWindow = ui.QtWidgets.QMainWindow()
ui.Ui_MainWindow().setupUi(MainWindow)
MainWindow.show()
sys.exit(app.exec_())
if __name__ == "__main__": if __name__ == "__main__":

331
leaden/ui.ui Normal file
View File

@ -0,0 +1,331 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1023</width>
<height>720</height>
</rect>
</property>
<property name="windowTitle">
<string>MainWindow</string>
</property>
<widget class="QWidget" name="centralwidget">
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QTreeWidget" name="treeWidget">
<column>
<property name="text">
<string notr="true">1</string>
</property>
</column>
</widget>
</item>
<item>
<widget class="QTabWidget" name="tabWidget">
<property name="minimumSize">
<size>
<width>500</width>
<height>500</height>
</size>
</property>
<property name="baseSize">
<size>
<width>500</width>
<height>500</height>
</size>
</property>
<property name="currentIndex">
<number>0</number>
</property>
<widget class="QWidget" name="tab">
<attribute name="title">
<string>Tab 1</string>
</attribute>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QTextBrowser" name="textBrowser_2"/>
</item>
</layout>
</widget>
<widget class="QWidget" name="tab_2">
<attribute name="title">
<string>Tab 2</string>
</attribute>
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0">
<widget class="QTextBrowser" name="textBrowser_3"/>
</item>
</layout>
</widget>
</widget>
</item>
<item alignment="Qt::AlignRight">
<widget class="QListWidget" name="listWidget"/>
</item>
</layout>
</item>
<item alignment="Qt::AlignBottom">
<widget class="QTextBrowser" name="textBrowser"/>
</item>
</layout>
</widget>
<widget class="QMenuBar" name="menubar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1023</width>
<height>18</height>
</rect>
</property>
<widget class="QMenu" name="menuFile">
<property name="title">
<string>File</string>
</property>
<addaction name="actionNew"/>
<addaction name="actionOpen"/>
<addaction name="actionSave"/>
<addaction name="actionSave_As"/>
<addaction name="actionClose"/>
<addaction name="actionQuit"/>
</widget>
<widget class="QMenu" name="menuEbuild">
<property name="title">
<string>Ebuild</string>
</property>
<addaction name="actionSetup"/>
<addaction name="actionClean"/>
<addaction name="actionFetch"/>
<addaction name="actiondigest"/>
<addaction name="actionManifest_2"/>
<addaction name="actionUnpack"/>
<addaction name="actionPrepare"/>
<addaction name="actionConfigure"/>
<addaction name="actionCompile"/>
<addaction name="actionTest"/>
<addaction name="actionPreinst"/>
<addaction name="actionInstall"/>
<addaction name="actionInstprep"/>
<addaction name="actionPostinst"/>
<addaction name="actionQmerge"/>
<addaction name="actionMerge"/>
<addaction name="actionUnmerge"/>
<addaction name="actionPrerm"/>
<addaction name="actionPostrm"/>
<addaction name="actionConfig"/>
<addaction name="actionPackage"/>
<addaction name="actionRpm"/>
</widget>
<widget class="QMenu" name="menuRepoman">
<property name="title">
<string>Repoman</string>
</property>
<addaction name="actionCommit"/>
<addaction name="actionFix"/>
<addaction name="actionFull"/>
<addaction name="actionManifest"/>
<addaction name="actionManifest_Check"/>
<addaction name="actionScan"/>
</widget>
<widget class="QMenu" name="menuHelp">
<property name="title">
<string>Help</string>
</property>
<addaction name="actionAbout_Leaden"/>
</widget>
<addaction name="menuFile"/>
<addaction name="menuEbuild"/>
<addaction name="menuRepoman"/>
<addaction name="menuHelp"/>
</widget>
<widget class="QStatusBar" name="statusbar"/>
<action name="actionNew">
<property name="text">
<string>New</string>
</property>
</action>
<action name="actionOpen">
<property name="text">
<string>Open</string>
</property>
</action>
<action name="actionSave">
<property name="text">
<string>Save</string>
</property>
</action>
<action name="actionSave_As">
<property name="text">
<string>Save As</string>
</property>
</action>
<action name="actionClose">
<property name="text">
<string>Close</string>
</property>
</action>
<action name="actionQuit">
<property name="text">
<string>Quit</string>
</property>
</action>
<action name="actionAbout_Leaden">
<property name="text">
<string>About Leaden</string>
</property>
</action>
<action name="actionCommit">
<property name="text">
<string>Commit</string>
</property>
</action>
<action name="actionFix">
<property name="text">
<string>Fix</string>
</property>
</action>
<action name="actionFull">
<property name="text">
<string>Full</string>
</property>
</action>
<action name="actionHelp">
<property name="text">
<string>Help</string>
</property>
</action>
<action name="actionManifest">
<property name="text">
<string>Manifest</string>
</property>
</action>
<action name="actionManifest_Check">
<property name="text">
<string>Manifest-Check</string>
</property>
</action>
<action name="actionScan">
<property name="text">
<string>Scan</string>
</property>
</action>
<action name="actionSetup">
<property name="text">
<string>Setup</string>
</property>
</action>
<action name="actionClean">
<property name="text">
<string>Clean</string>
</property>
</action>
<action name="actionFetch">
<property name="text">
<string>Fetch</string>
</property>
</action>
<action name="actiondigest">
<property name="text">
<string>Digest</string>
</property>
</action>
<action name="actionManifest_2">
<property name="text">
<string>Manifest</string>
</property>
</action>
<action name="actionUnpack">
<property name="text">
<string>Unpack</string>
</property>
</action>
<action name="actionPrepare">
<property name="text">
<string>Prepare</string>
</property>
</action>
<action name="actionConfigure">
<property name="text">
<string>Configure</string>
</property>
</action>
<action name="actionCompile">
<property name="text">
<string>Compile</string>
</property>
</action>
<action name="actionTest">
<property name="text">
<string>Test</string>
</property>
</action>
<action name="actionPreinst">
<property name="text">
<string>Preinst</string>
</property>
</action>
<action name="actionInstall">
<property name="text">
<string>Install</string>
</property>
</action>
<action name="actionInstprep">
<property name="text">
<string>Instprep</string>
</property>
</action>
<action name="actionPostinst">
<property name="text">
<string>Postinst</string>
</property>
</action>
<action name="actionQmerge">
<property name="text">
<string>Qmerge</string>
</property>
</action>
<action name="actionMerge">
<property name="text">
<string>Merge</string>
</property>
</action>
<action name="actionUnmerge">
<property name="text">
<string>Unmerge</string>
</property>
</action>
<action name="actionPrerm">
<property name="text">
<string>Prerm</string>
</property>
</action>
<action name="actionPostrm">
<property name="text">
<string>Postrm</string>
</property>
</action>
<action name="actionConfig">
<property name="text">
<string>Config</string>
</property>
</action>
<action name="actionPackage">
<property name="text">
<string>Package</string>
</property>
</action>
<action name="actionRpm">
<property name="text">
<string>Rpm</string>
</property>
</action>
</widget>
<resources/>
<connections/>
</ui>