更新代码

master
feiyangqingyun 2021-07-08 08:37:54 +08:00
parent b7647f0b44
commit 3ca23ea276
57 changed files with 78 additions and 70 deletions

28
designer/designer.pro Normal file
View File

@ -0,0 +1,28 @@
QT += xml network
LIBS += -lQtDesignerComponents -lQtDesigner
TARGET = designer
TEMPLATE = app
MOC_DIR = temp/moc
RCC_DIR = temp/rcc
UI_DIR = temp/ui
OBJECTS_DIR = temp/obj
DESTDIR = $$PWD/../bin
RC_FILE = main.rc
TRANSLATIONS = designer_zh_CN.ts
SOURCES += main.cpp
CONFIG += warn_off release
RESOURCES += designer.qrc
include($$PWD/form/form.pri)
include($$PWD/qdesigner/qdesigner.pri)
INCLUDEPATH += $$PWD
INCLUDEPATH += $$PWD/form
INCLUDEPATH += $$PWD/qdesigner
INCLUDEPATH += $$PWD/lib/sdk
INCLUDEPATH += $$PWD/lib/extension
INCLUDEPATH += $$PWD/lib/shared
INCLUDEPATH += $$PWD/lib/uilib

View File

@ -1,69 +0,0 @@
#-------------------------------------------------
#
# Project created by QtCreator 2017-04-07T09:15:51
#
#-------------------------------------------------
QT += xml network
CONFIG += warn_off release
RESOURCES += designer.qrc
LIBS += -lQtDesignerComponents -lQtDesigner
INCLUDEPATH += $$PWD
INCLUDEPATH += ../lib/sdk ../lib/extension ../lib/shared ../lib/uilib
TARGET = designer
TEMPLATE = app
MOC_DIR = temp/moc
RCC_DIR = temp/rcc
UI_DIR = temp/ui
OBJECTS_DIR = temp/obj
DESTDIR = bin
TRANSLATIONS = designer_zh_CN.ts
PRECOMPILED_HEADER = qdesigner_pch.h
win32:RC_FILE = main.rc
HEADERS += \
qdesigner.h \
qdesigner_toolwindow.h \
qdesigner_formwindow.h \
qdesigner_workbench.h \
qdesigner_settings.h \
qdesigner_actions.h \
qdesigner_server.h \
qdesigner_appearanceoptions.h \
saveformastemplate.h \
newform.h \
versiondialog.h \
designer_enums.h \
appfontdialog.h \
preferencesdialog.h \
assistantclient.h \
mainwindow.h \
qttoolbardialog.h \
fontpanel.h
SOURCES += main.cpp \
qdesigner.cpp \
qdesigner_toolwindow.cpp \
qdesigner_formwindow.cpp \
qdesigner_workbench.cpp \
qdesigner_settings.cpp \
qdesigner_server.cpp \
qdesigner_actions.cpp \
qdesigner_appearanceoptions.cpp \
saveformastemplate.cpp \
newform.cpp \
versiondialog.cpp \
appfontdialog.cpp \
preferencesdialog.cpp \
assistantclient.cpp \
mainwindow.cpp \
qttoolbardialog.cpp \
fontpanel.cpp
FORMS += saveformastemplate.ui \
preferencesdialog.ui \
qdesigner_appearanceoptions.ui \
qttoolbardialog.ui

26
designer/form/form.pri Normal file
View File

@ -0,0 +1,26 @@
FORMS += \
$$PWD/preferencesdialog.ui \
$$PWD/qttoolbardialog.ui \
$$PWD/saveformastemplate.ui
HEADERS += \
$$PWD/appfontdialog.h \
$$PWD/assistantclient.h \
$$PWD/fontpanel.h \
$$PWD/mainwindow.h \
$$PWD/newform.h \
$$PWD/preferencesdialog.h \
$$PWD/qttoolbardialog.h \
$$PWD/saveformastemplate.h \
$$PWD/versiondialog.h
SOURCES += \
$$PWD/appfontdialog.cpp \
$$PWD/assistantclient.cpp \
$$PWD/fontpanel.cpp \
$$PWD/mainwindow.cpp \
$$PWD/newform.cpp \
$$PWD/preferencesdialog.cpp \
$$PWD/qttoolbardialog.cpp \
$$PWD/saveformastemplate.cpp \
$$PWD/versiondialog.cpp

View File

Before

Width:  |  Height:  |  Size: 678 B

After

Width:  |  Height:  |  Size: 678 B

View File

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

View File

Before

Width:  |  Height:  |  Size: 594 B

After

Width:  |  Height:  |  Size: 594 B

View File

Before

Width:  |  Height:  |  Size: 655 B

After

Width:  |  Height:  |  Size: 655 B

View File

Before

Width:  |  Height:  |  Size: 250 B

After

Width:  |  Height:  |  Size: 250 B

View File

Before

Width:  |  Height:  |  Size: 462 B

After

Width:  |  Height:  |  Size: 462 B

View File

Before

Width:  |  Height:  |  Size: 692 B

After

Width:  |  Height:  |  Size: 692 B

View File

Before

Width:  |  Height:  |  Size: 66 KiB

After

Width:  |  Height:  |  Size: 66 KiB

View File

@ -0,0 +1,23 @@
FORMS += \
$$PWD/qdesigner_appearanceoptions.ui
HEADERS += \
$$PWD/designer_enums.h \
$$PWD/qdesigner.h \
$$PWD/qdesigner_actions.h \
$$PWD/qdesigner_appearanceoptions.h \
$$PWD/qdesigner_formwindow.h \
$$PWD/qdesigner_server.h \
$$PWD/qdesigner_settings.h \
$$PWD/qdesigner_toolwindow.h \
$$PWD/qdesigner_workbench.h
SOURCES += \
$$PWD/qdesigner.cpp \
$$PWD/qdesigner_actions.cpp \
$$PWD/qdesigner_appearanceoptions.cpp \
$$PWD/qdesigner_formwindow.cpp \
$$PWD/qdesigner_server.cpp \
$$PWD/qdesigner_settings.cpp \
$$PWD/qdesigner_toolwindow.cpp \
$$PWD/qdesigner_workbench.cpp

View File

@ -1,3 +1,3 @@
双击运行designer目录下的designer.pro文件编译运行即可。
双击运行designer.pro文件编译运行即可。
PS只支持Qt5以下的版本。
qdesigner.cpp最后一行代码改成了启动程序后自动加载qui.ui