modify ui setting
This commit is contained in:
parent
8b94963f39
commit
bbec5d9598
@ -22,6 +22,7 @@
|
||||
<file>res/default/menu_restart.png</file>
|
||||
<file>res/default/menu_setting_restore.png</file>
|
||||
<file>res/default/menu_setting.png</file>
|
||||
<file>res/default/menu_uisetting.png</file>
|
||||
</qresource>
|
||||
<qresource prefix="/qss">
|
||||
</qresource>
|
||||
|
BIN
src/res/default/menu_uisetting.png
Normal file
BIN
src/res/default/menu_uisetting.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 319 B |
Binary file not shown.
@ -6,22 +6,22 @@
|
||||
<message>
|
||||
<location filename="../ui/Layout/AddParamSetting.cpp" line="64"/>
|
||||
<source>ParamSetting</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>参数设置</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/Layout/AddParamSetting.cpp" line="104"/>
|
||||
<source>input param name</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>参数名</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/Layout/AddParamSetting.cpp" line="111"/>
|
||||
<source>input param descript</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>参数描述</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/Layout/AddParamSetting.cpp" line="167"/>
|
||||
<source>input value</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>值</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
@ -29,7 +29,7 @@
|
||||
<message>
|
||||
<location filename="../ui/Layout/AddParamSetting.ui" line="14"/>
|
||||
<source>AddParamSetting</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/Layout/AddParamSetting.ui" line="21"/>
|
||||
@ -92,22 +92,22 @@
|
||||
<message>
|
||||
<location filename="../ui/Menu/ChartPlotMenu.ui" line="14"/>
|
||||
<source>ChartPlotMenu</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>图表绘图</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/Menu/ChartPlotMenu.ui" line="28"/>
|
||||
<source>2D Curver</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>2D</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/Menu/ChartPlotMenu.ui" line="41"/>
|
||||
<source>2D(lg) Curver</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>2D(lg)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/Menu/ChartPlotMenu.ui" line="54"/>
|
||||
<source>3D Curver</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>3D</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
@ -115,7 +115,7 @@
|
||||
<message>
|
||||
<location filename="../ui/Layout/CodeEdtUI.cpp" line="34"/>
|
||||
<source>&file</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>文件(&f)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/Layout/CodeEdtUI.cpp" line="35"/>
|
||||
@ -209,7 +209,7 @@
|
||||
<location filename="../ui/chartPlot/DYTChart.ui" line="261"/>
|
||||
<location filename="../ui/chartPlot/DYTChart.ui" line="296"/>
|
||||
<source>...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation type="unfinished">...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/chartPlot/DYTChart.ui" line="200"/>
|
||||
@ -366,7 +366,22 @@
|
||||
<message>
|
||||
<location filename="../ui/Menu/FileManagerMenu.ui" line="14"/>
|
||||
<source>FileManagerMenu</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>文件</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/Menu/FileManagerMenu.ui" line="20"/>
|
||||
<source>new workspace</source>
|
||||
<translation>新建</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/Menu/FileManagerMenu.ui" line="30"/>
|
||||
<source>open workspace</source>
|
||||
<translation>打开</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/Menu/FileManagerMenu.ui" line="40"/>
|
||||
<source>save workspace</source>
|
||||
<translation>保存</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/Menu/FileManagerMenu.cpp" line="44"/>
|
||||
@ -377,7 +392,7 @@
|
||||
<message>
|
||||
<location filename="../ui/Menu/FileManagerMenu.cpp" line="47"/>
|
||||
<source>open dyt file</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>打开空间</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/Menu/FileManagerMenu.cpp" line="48"/>
|
||||
@ -388,7 +403,7 @@
|
||||
<message>
|
||||
<location filename="../ui/Menu/FileManagerMenu.cpp" line="63"/>
|
||||
<source>save dyt file</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>保存空间</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
@ -396,7 +411,7 @@
|
||||
<message>
|
||||
<location filename="../ui/chartPlot/FitCurveChartView.ui" line="16"/>
|
||||
<source>FitCurveChartView</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
@ -453,37 +468,34 @@
|
||||
<message>
|
||||
<location filename="../ui/MainFrame.cpp" line="40"/>
|
||||
<source>Dyt</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/MainFrame.cpp" line="99"/>
|
||||
<source>file manager</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>文件</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/MainFrame.cpp" line="101"/>
|
||||
<source>view manager</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation type="vanished">视图管理</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/MainFrame.cpp" line="102"/>
|
||||
<source>plan manager</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation type="vanished">想定管理</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/MainFrame.cpp" line="103"/>
|
||||
<source>dynamic display</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation type="vanished">动态显示</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/MainFrame.cpp" line="106"/>
|
||||
<source>system manager</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>系统管理</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/MainFrame.cpp" line="109"/>
|
||||
<source>play manager</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>回放管理</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
@ -496,7 +508,7 @@
|
||||
<message>
|
||||
<location filename="../ui/MainWindow.cpp" line="71"/>
|
||||
<source>model elements</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation type="unfinished">模型元素</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/MainWindow.cpp" line="77"/>
|
||||
@ -632,7 +644,7 @@
|
||||
<message>
|
||||
<location filename="../ui/MainWindow.cpp" line="204"/>
|
||||
<source>ParamSetting</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation type="unfinished">参数设置</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/MainWindow.cpp" line="209"/>
|
||||
@ -650,7 +662,7 @@
|
||||
<message>
|
||||
<location filename="../ui/ModelBrowser.cpp" line="31"/>
|
||||
<source>model elements</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>模型元素</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
@ -676,7 +688,7 @@
|
||||
<message>
|
||||
<location filename="../ui/ModelBrowser/ModelTreeWidget.cpp" line="96"/>
|
||||
<source>Release Track</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>取消跟踪</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/ModelBrowser/ModelTreeWidget.cpp" line="113"/>
|
||||
@ -711,7 +723,7 @@
|
||||
<message>
|
||||
<location filename="../ui/ModelBrowser/ModelTreeWidget.cpp" line="250"/>
|
||||
<source>Track</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>跟随</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/ModelBrowser/ModelTreeWidget.cpp" line="258"/>
|
||||
@ -790,7 +802,7 @@
|
||||
<location filename="../ui/Menu/PlayManagerMenu.cpp" line="99"/>
|
||||
<location filename="../ui/Menu/PlayManagerMenu.cpp" line="106"/>
|
||||
<source>question</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation type="unfinished">询问</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/Menu/PlayManagerMenu.cpp" line="34"/>
|
||||
@ -934,7 +946,7 @@
|
||||
<message>
|
||||
<location filename="../ui/PropertyBrowser/qteditorfactory.cpp" line="2332"/>
|
||||
<source>...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation type="unfinished">...</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
@ -1136,7 +1148,7 @@
|
||||
<message>
|
||||
<location filename="../ui/PropertyBrowser/qteditorfactory.cpp" line="2943"/>
|
||||
<source>...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation type="unfinished">...</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
@ -1144,7 +1156,7 @@
|
||||
<message>
|
||||
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8042"/>
|
||||
<source>Name</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation type="unfinished">名称</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8049"/>
|
||||
@ -1157,7 +1169,7 @@
|
||||
<message>
|
||||
<location filename="../ui/PropertyBrowser/qteditorfactory.cpp" line="2535"/>
|
||||
<source>...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation type="unfinished">...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/PropertyBrowser/qteditorfactory.cpp" line="2555"/>
|
||||
@ -1245,7 +1257,7 @@
|
||||
<message>
|
||||
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="7622"/>
|
||||
<source>Name</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation type="unfinished">名称</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="7629"/>
|
||||
@ -1287,7 +1299,7 @@
|
||||
<message>
|
||||
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="8397"/>
|
||||
<source>Path</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation type="unfinished">路径</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
@ -1480,7 +1492,7 @@
|
||||
<message>
|
||||
<location filename="../ui/PropertyBrowser/qteditorfactory.cpp" line="2753"/>
|
||||
<source>...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation type="unfinished">...</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
@ -1537,7 +1549,7 @@
|
||||
<message>
|
||||
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="7842"/>
|
||||
<source>Name</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation type="unfinished">名称</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/PropertyBrowser/qtpropertymanager.cpp" line="7849"/>
|
||||
@ -1591,53 +1603,22 @@
|
||||
<message>
|
||||
<location filename="../ui/Menu/SystemManagerMenu.ui" line="20"/>
|
||||
<source>exit</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/Menu/SystemManagerMenu.ui" line="30"/>
|
||||
<source>restart</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>退出</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/Menu/SystemManagerMenu.ui" line="40"/>
|
||||
<source>setting</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/Menu/SystemManagerMenu.ui" line="50"/>
|
||||
<source>setting restore</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/Menu/SystemManagerMenu.ui" line="70"/>
|
||||
<source>help</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/Menu/SystemManagerMenu.ui" line="87"/>
|
||||
<source>license</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/Menu/SystemManagerMenu.ui" line="104"/>
|
||||
<source>logs</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/Menu/SystemManagerMenu.ui" line="114"/>
|
||||
<location filename="../ui/Menu/SystemManagerMenu.ui" line="131"/>
|
||||
<source>clean logs</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<source>ui setting</source>
|
||||
<translation>ui设置</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/Menu/SystemManagerMenu.cpp" line="28"/>
|
||||
<source>question</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>询问</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/Menu/SystemManagerMenu.cpp" line="28"/>
|
||||
<source>are you sure to exit</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>是否退出</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
@ -1696,47 +1677,52 @@
|
||||
<message>
|
||||
<location filename="../ui/WorkSpace/WorkSpaceDlg.ui" line="14"/>
|
||||
<source>New WorkSpace</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>工作空间</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/WorkSpace/WorkSpaceDlg.ui" line="22"/>
|
||||
<source>Name</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>名称</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/WorkSpace/WorkSpaceDlg.ui" line="43"/>
|
||||
<source>Path</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>路径</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/WorkSpace/WorkSpaceDlg.ui" line="32"/>
|
||||
<source>input workspace name</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>输入名称</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/WorkSpace/WorkSpaceDlg.ui" line="56"/>
|
||||
<source>select workspace save path</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>选择路径</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/WorkSpace/WorkSpaceDlg.ui" line="63"/>
|
||||
<source>...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/WorkSpace/WorkSpaceDlg.ui" line="74"/>
|
||||
<source>describe</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>描述</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/WorkSpace/WorkSpaceDlg.ui" line="101"/>
|
||||
<source>Sure</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>确定</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/WorkSpace/WorkSpaceDlg.ui" line="108"/>
|
||||
<source>Cancel</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>取消</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/WorkSpace/WorkSpaceDlg.cpp" line="26"/>
|
||||
<source>new workspace</source>
|
||||
<translation type="unfinished">新建</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/WorkSpace/WorkSpaceDlg.cpp" line="49"/>
|
||||
@ -1747,47 +1733,47 @@
|
||||
<location filename="../ui/WorkSpace/WorkSpaceDlg.cpp" line="88"/>
|
||||
<location filename="../ui/WorkSpace/WorkSpaceDlg.cpp" line="97"/>
|
||||
<source>warning</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>警告</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/WorkSpace/WorkSpaceDlg.cpp" line="49"/>
|
||||
<source>name or save path is empty, please check it</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>没有选择路径</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/WorkSpace/WorkSpaceDlg.cpp" line="55"/>
|
||||
<source>save current workspace?</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>保存当前空间?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/WorkSpace/WorkSpaceDlg.cpp" line="66"/>
|
||||
<source>current path is contains current folder, do you want to overwrite it?</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>当前路径已经包含,是否覆盖?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/WorkSpace/WorkSpaceDlg.cpp" line="73"/>
|
||||
<source>removeRecursively failed</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>创建失败</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/WorkSpace/WorkSpaceDlg.cpp" line="82"/>
|
||||
<source>mkpath failed</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>创建路径失败</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/WorkSpace/WorkSpaceDlg.cpp" line="88"/>
|
||||
<source>name is exits</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>当前名称已经存在</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/WorkSpace/WorkSpaceDlg.cpp" line="97"/>
|
||||
<source>create workSpace failed</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>创建失败</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ui/WorkSpace/WorkSpaceDlg.cpp" line="107"/>
|
||||
<source>save spaceWork directory</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>选择空间目录</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
|
@ -27,6 +27,14 @@ void Dialog::SetTitleBar(FrameTitleBar* titleBar) {
|
||||
layout->insertWidget(0, titleBar, 0);
|
||||
}
|
||||
|
||||
void Dialog::SetTitle(const QString& title) {
|
||||
if (!delegate_) {
|
||||
return;
|
||||
}
|
||||
|
||||
delegate_->SetTitle(title);
|
||||
}
|
||||
|
||||
void Dialog::hideEvent(QHideEvent*) {
|
||||
|
||||
}
|
||||
@ -57,7 +65,7 @@ void Dialog::InitFrame() {
|
||||
FrameTitleBar* titleBar = new FrameTitleBar(this);
|
||||
titleBar->SetMainWidget(this);
|
||||
|
||||
titleBar->SetSysButton(FrameTitleBar::FTB_ICON | FrameTitleBar::FTB_CLOSE);
|
||||
titleBar->SetSysButton(FrameTitleBar::FTB_ICON | FrameTitleBar::FTB_CLOSE | FrameTitleBar::FTB_TTILE);
|
||||
|
||||
QVBoxLayout* layout = new QVBoxLayout(this);
|
||||
layout->setContentsMargins(0, 0, 0, 0);
|
||||
|
@ -14,6 +14,7 @@ public:
|
||||
|
||||
void DeleteThisOnClose();
|
||||
void SetTitleBar(FrameTitleBar* titleBar);
|
||||
void SetTitle(const QString& title);
|
||||
|
||||
|
||||
protected:
|
||||
|
@ -36,7 +36,7 @@ FrameTitleBar::~FrameTitleBar() {
|
||||
}
|
||||
|
||||
void FrameTitleBar::SetTitle(const QString& title) {
|
||||
// ui->sys_title->setText(title);
|
||||
ui->sys_title->setText(title);
|
||||
if (mainWidget_) {
|
||||
mainWidget_->setWindowTitle(title);
|
||||
}
|
||||
|
@ -46,6 +46,12 @@ void FramelessDelegate::SetTitleBar(FrameTitleBar* titleBar) {
|
||||
}
|
||||
}
|
||||
|
||||
void FramelessDelegate::SetTitle(const QString& title) {
|
||||
if (nullptr != titleBar_) {
|
||||
titleBar_->SetTitle(title);
|
||||
}
|
||||
}
|
||||
|
||||
bool FramelessDelegate::eventFilter(QObject* watched, QEvent* event) {
|
||||
if (nullptr != mainWidget_ && mainWidget_ == watched) {
|
||||
if (QEvent::Show == event->type()) {
|
||||
|
@ -14,6 +14,7 @@ public:
|
||||
static FramelessDelegate* Create(QWidget* paranet);
|
||||
|
||||
void SetTitleBar(FrameTitleBar* titleBar);
|
||||
void SetTitle(const QString& title);
|
||||
|
||||
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
||||
virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result);
|
||||
|
@ -98,9 +98,9 @@ void MainFrame::InitUI() {
|
||||
FileManagerMenu* fileMenu = new FileManagerMenu(this);
|
||||
AddMenuWidget("file_manager", tr("file manager"), fileMenu);
|
||||
|
||||
AddMenuWidget("view_manager", tr("view manager"), new ViewManagerMenu(this));
|
||||
AddMenuWidget("plan_manager", tr("plan manager"), new PlanManagerMenu(this));
|
||||
AddMenuWidget("dynamic_display", tr("dynamic display"), new DynamicDisplayMenu(this));
|
||||
//AddMenuWidget("view_manager", tr("view manager"), new ViewManagerMenu(this));
|
||||
//AddMenuWidget("plan_manager", tr("plan manager"), new PlanManagerMenu(this));
|
||||
//AddMenuWidget("dynamic_display", tr("dynamic display"), new DynamicDisplayMenu(this));
|
||||
|
||||
SystemManagerMenu* system_ = new SystemManagerMenu(this);
|
||||
AddMenuWidget("system_manager", tr("system manager"), system_);
|
||||
|
@ -16,6 +16,9 @@
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
<widget class="QToolButton" name="menu_new_file">
|
||||
<property name="toolTip">
|
||||
<string>new workspace</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
@ -23,6 +26,9 @@
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QToolButton" name="menu_open_file">
|
||||
<property name="toolTip">
|
||||
<string>open workspace</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
@ -30,6 +36,9 @@
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QToolButton" name="menu_save_file">
|
||||
<property name="toolTip">
|
||||
<string>save workspace</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
@ -45,90 +54,6 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QToolButton" name="menu_save_as_file">
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QToolButton" name="menu_save_shape_file">
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QToolButton" name="menu_save_store_file">
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QToolButton" name="toolButton_4">
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QToolButton" name="toolButton_5">
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QToolButton" name="toolButton_6">
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="Line" name="line_2">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QToolButton" name="toolButton_7">
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="Line" name="line_3">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QToolButton" name="toolButton_8">
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="Line" name="line_4">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QToolButton" name="toolButton_9">
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
|
@ -24,36 +24,6 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QToolButton" name="menu_restart">
|
||||
<property name="toolTip">
|
||||
<string>restart</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QToolButton" name="menu_setting">
|
||||
<property name="toolTip">
|
||||
<string>setting</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QToolButton" name="menu_setting_restore">
|
||||
<property name="toolTip">
|
||||
<string>setting restore</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="Line" name="line">
|
||||
<property name="frameShadow">
|
||||
@ -64,71 +34,10 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QToolButton" name="menu_helper">
|
||||
<property name="toolTip">
|
||||
<string>help</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="Line" name="line_3">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QToolButton" name="menu_license">
|
||||
<property name="toolTip">
|
||||
<string>license</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="Line" name="line_4">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QToolButton" name="menu_logs">
|
||||
<property name="toolTip">
|
||||
<string>logs</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QToolButton" name="menu_logs_clean">
|
||||
<property name="toolTip">
|
||||
<string>clean logs</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="Line" name="line_5">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QToolButton" name="menu_uisetting">
|
||||
<property name="toolTip">
|
||||
<string>clean logs</string>
|
||||
<string>ui setting</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
|
@ -23,7 +23,7 @@ WorkSpaceDlg::WorkSpaceDlg(QWidget* parent)
|
||||
SetupUI(ui);
|
||||
InitConnect();
|
||||
|
||||
|
||||
SetTitle(tr("new workspace"));
|
||||
|
||||
//setFixedHeight(500);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user