forked from caj2pdf/caj2pdf
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
367 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -125,3 +125,8 @@ ENV/ | |
|
||
# Rope project settings | ||
.ropeproject | ||
|
||
# build | ||
main.spec | ||
build/ | ||
__pycache__/ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
pyinstaller.exe -F -w main.py | ||
copy mutool.exe dist\mutool.exe |
0
caj2pdf → caj2pdf.py
100755 → 100644
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
# Form implementation generated from reading ui file 'caj2pdf_GUI.ui' | ||
# | ||
# Created by: PyQt5 UI code generator 5.9.2 | ||
# | ||
# WARNING! All changes made in this file will be lost! | ||
|
||
from PyQt5 import QtCore, QtGui, QtWidgets | ||
|
||
class Ui_MainWindow(object): | ||
def setupUi(self, MainWindow): | ||
MainWindow.setObjectName("MainWindow") | ||
MainWindow.resize(382, 428) | ||
self.centralwidget = QtWidgets.QWidget(MainWindow) | ||
self.centralwidget.setObjectName("centralwidget") | ||
self.gridLayout = QtWidgets.QGridLayout(self.centralwidget) | ||
self.gridLayout.setObjectName("gridLayout") | ||
self.label_2 = QtWidgets.QLabel(self.centralwidget) | ||
self.label_2.setMaximumSize(QtCore.QSize(16777215, 15)) | ||
self.label_2.setObjectName("label_2") | ||
self.gridLayout.addWidget(self.label_2, 4, 0, 1, 4) | ||
self.logger = QtWidgets.QListWidget(self.centralwidget) | ||
self.logger.setObjectName("logger") | ||
self.gridLayout.addWidget(self.logger, 3, 0, 1, 4) | ||
self.lineEdit = QtWidgets.QLineEdit(self.centralwidget) | ||
self.lineEdit.setObjectName("lineEdit") | ||
self.gridLayout.addWidget(self.lineEdit, 5, 0, 1, 4) | ||
self.label = QtWidgets.QLabel(self.centralwidget) | ||
self.label.setMaximumSize(QtCore.QSize(16777215, 15)) | ||
self.label.setObjectName("label") | ||
self.gridLayout.addWidget(self.label, 0, 0, 1, 1) | ||
self.convert = QtWidgets.QPushButton(self.centralwidget) | ||
self.convert.setMaximumSize(QtCore.QSize(93, 16777215)) | ||
self.convert.setObjectName("convert") | ||
self.gridLayout.addWidget(self.convert, 2, 1, 1, 1) | ||
self.outlines = QtWidgets.QPushButton(self.centralwidget) | ||
self.outlines.setMaximumSize(QtCore.QSize(93, 16777215)) | ||
self.outlines.setObjectName("outlines") | ||
self.gridLayout.addWidget(self.outlines, 2, 2, 1, 1) | ||
self.label_3 = QtWidgets.QLabel(self.centralwidget) | ||
self.label_3.setMaximumSize(QtCore.QSize(16777215, 15)) | ||
self.label_3.setObjectName("label_3") | ||
self.gridLayout.addWidget(self.label_3, 6, 0, 1, 2) | ||
self.show_button = QtWidgets.QPushButton(self.centralwidget) | ||
self.show_button.setMaximumSize(QtCore.QSize(93, 16777215)) | ||
self.show_button.setObjectName("show_button") | ||
self.gridLayout.addWidget(self.show_button, 2, 0, 1, 1) | ||
self.line_address = QtWidgets.QLineEdit(self.centralwidget) | ||
self.line_address.setObjectName("line_address") | ||
self.gridLayout.addWidget(self.line_address, 1, 0, 1, 3) | ||
self.file_open_button = QtWidgets.QToolButton(self.centralwidget) | ||
self.file_open_button.setObjectName("file_open_button") | ||
self.gridLayout.addWidget(self.file_open_button, 1, 3, 1, 1) | ||
self.lineEdit_2 = QtWidgets.QLineEdit(self.centralwidget) | ||
self.lineEdit_2.setObjectName("lineEdit_2") | ||
self.gridLayout.addWidget(self.lineEdit_2, 7, 0, 1, 4) | ||
MainWindow.setCentralWidget(self.centralwidget) | ||
self.statusbar = QtWidgets.QStatusBar(MainWindow) | ||
self.statusbar.setObjectName("statusbar") | ||
MainWindow.setStatusBar(self.statusbar) | ||
|
||
self.retranslateUi(MainWindow) | ||
QtCore.QMetaObject.connectSlotsByName(MainWindow) | ||
|
||
def retranslateUi(self, MainWindow): | ||
_translate = QtCore.QCoreApplication.translate | ||
MainWindow.setWindowTitle(_translate("MainWindow", "caj2pdf")) | ||
self.label_2.setText(_translate("MainWindow", "caj2pdf 核心项目源码: (转换不了看这里)")) | ||
self.lineEdit.setText(_translate("MainWindow", "https://github.com/JeziL/caj2pdf")) | ||
self.label.setText(_translate("MainWindow", "caj文件位置:")) | ||
self.convert.setToolTip(_translate("MainWindow", "转换文件")) | ||
self.convert.setText(_translate("MainWindow", "convert")) | ||
self.outlines.setToolTip(_translate("MainWindow", "<html><head/><body><p>从 CAJ 文件中提取大纲信息并添加至转化后的 PDF 文件</p><p>遇到不支持的文件类型或 Bug 时,可用 CAJViewer 打印 PDF 文件,并用这条命令为其添加大纲</p></body></html>")) | ||
self.outlines.setText(_translate("MainWindow", "outlines")) | ||
self.label_3.setText(_translate("MainWindow", "caj2pdf GUI项目源码:")) | ||
self.show_button.setToolTip(_translate("MainWindow", "打印文件基本信息(文件类型、页面数、大纲项目数)")) | ||
self.show_button.setText(_translate("MainWindow", "show")) | ||
self.file_open_button.setText(_translate("MainWindow", "...")) | ||
self.lineEdit_2.setText(_translate("MainWindow", "https://github.com/cnms520/caj2pdf_gui")) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,144 @@ | ||
<?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>382</width> | ||
<height>428</height> | ||
</rect> | ||
</property> | ||
<property name="windowTitle"> | ||
<string>caj2pdf</string> | ||
</property> | ||
<widget class="QWidget" name="centralwidget"> | ||
<layout class="QGridLayout" name="gridLayout"> | ||
<item row="4" column="0" colspan="4"> | ||
<widget class="QLabel" name="label_2"> | ||
<property name="maximumSize"> | ||
<size> | ||
<width>16777215</width> | ||
<height>15</height> | ||
</size> | ||
</property> | ||
<property name="text"> | ||
<string>caj2pdf 核心项目源码: (转换不了看这里)</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="3" column="0" colspan="4"> | ||
<widget class="QListWidget" name="logger"/> | ||
</item> | ||
<item row="5" column="0" colspan="4"> | ||
<widget class="QLineEdit" name="lineEdit"> | ||
<property name="text"> | ||
<string>https://github.com/JeziL/caj2pdf</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="0" column="0"> | ||
<widget class="QLabel" name="label"> | ||
<property name="maximumSize"> | ||
<size> | ||
<width>16777215</width> | ||
<height>15</height> | ||
</size> | ||
</property> | ||
<property name="text"> | ||
<string>caj文件位置:</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="2" column="1"> | ||
<widget class="QPushButton" name="convert"> | ||
<property name="maximumSize"> | ||
<size> | ||
<width>93</width> | ||
<height>16777215</height> | ||
</size> | ||
</property> | ||
<property name="toolTip"> | ||
<string>转换文件</string> | ||
</property> | ||
<property name="text"> | ||
<string>convert</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="2" column="2"> | ||
<widget class="QPushButton" name="outlines"> | ||
<property name="maximumSize"> | ||
<size> | ||
<width>93</width> | ||
<height>16777215</height> | ||
</size> | ||
</property> | ||
<property name="toolTip"> | ||
<string><html><head/><body><p>从 CAJ 文件中提取大纲信息并添加至转化后的 PDF 文件</p><p>遇到不支持的文件类型或 Bug 时,可用 CAJViewer 打印 PDF 文件,并用这条命令为其添加大纲</p></body></html></string> | ||
</property> | ||
<property name="text"> | ||
<string>outlines</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="6" column="0" colspan="2"> | ||
<widget class="QLabel" name="label_3"> | ||
<property name="maximumSize"> | ||
<size> | ||
<width>16777215</width> | ||
<height>15</height> | ||
</size> | ||
</property> | ||
<property name="text"> | ||
<string>caj2pdf GUI项目源码:</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="2" column="0"> | ||
<widget class="QPushButton" name="show_button"> | ||
<property name="maximumSize"> | ||
<size> | ||
<width>93</width> | ||
<height>16777215</height> | ||
</size> | ||
</property> | ||
<property name="toolTip"> | ||
<string>打印文件基本信息(文件类型、页面数、大纲项目数)</string> | ||
</property> | ||
<property name="text"> | ||
<string>show</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="1" column="0" colspan="3"> | ||
<widget class="QLineEdit" name="line_address"/> | ||
</item> | ||
<item row="1" column="3"> | ||
<widget class="QToolButton" name="file_open_button"> | ||
<property name="text"> | ||
<string>...</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="7" column="0" colspan="4"> | ||
<widget class="QLineEdit" name="lineEdit_2"> | ||
<property name="text"> | ||
<string>https://github.com/cnms520/caj2pdf_gui</string> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</widget> | ||
<widget class="QStatusBar" name="statusbar"/> | ||
</widget> | ||
<resources/> | ||
<connections/> | ||
<slots> | ||
<slot>show_caj()</slot> | ||
<slot>convert_caj()</slot> | ||
<slot>outlines_caj()</slot> | ||
<slot>open_caj()</slot> | ||
</slots> | ||
</ui> |
Oops, something went wrong.