DiagramDesigner/ui/mainwindow.ui

331 lines
8.0 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>CMainWindow</class>
<widget class="QMainWindow" name="CMainWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1696</width>
<height>1079</height>
</rect>
</property>
<property name="windowTitle">
<string>DiagramDesigner</string>
</property>
<property name="styleSheet">
<string notr="true"> QMenuBar {
background: qlineargradient(x1:0, y1:0, x2:0, y2:1,
stop:0 #2c5282, /* 顶部颜色 */
stop:1 #1a365d); /* 底部颜色 */
color: white;
border: none;
padding: 4px 0;
}
QMenuBar::item {
padding: 8px 16px;
border: 1px solid transparent;
}
QMenuBar::item:hover {
background-color: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
}
QMenuBar::item:pressed {
background-color: rgba(255, 255, 255, 0.2);
}
QMenu {
background-color: white;
border: 1px solid #cbd5e1;
color: #1e293b;
padding: 4px;
}
QMenu::item {
padding: 6px 30px 6px 20px;
border-radius: 2px;
}
QMenu::item:selected {
background-color: #2563eb;
color: white;
}
QMenu::separator {
height: 1px;
background-color: #e2e8f0;
margin: 4px 8px;
}</string>
</property>
<widget class="QWidget" name="centralwidget"/>
<widget class="QMenuBar" name="menubar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1696</width>
<height>38</height>
</rect>
</property>
<widget class="QMenu" name="menuFile">
<property name="title">
<string>文件(F)</string>
</property>
</widget>
<widget class="QMenu" name="menuView">
<property name="title">
<string>视图(V)</string>
</property>
</widget>
<widget class="QMenu" name="menuMode">
<property name="title">
<string>模式</string>
</property>
</widget>
<widget class="QMenu" name="menuProject">
<property name="title">
<string>工程模</string>
</property>
</widget>
<widget class="QMenu" name="menuTest">
<property name="title">
<string>测试</string>
</property>
</widget>
<widget class="QMenu" name="menuSetting">
<property name="title">
<string>设置</string>
</property>
</widget>
<addaction name="menuFile"/>
<addaction name="menuView"/>
<addaction name="menuMode"/>
<addaction name="menuProject"/>
<addaction name="menuSetting"/>
<addaction name="menuTest"/>
</widget>
<widget class="QToolBar" name="toolBar">
<property name="windowTitle">
<string>toolBar</string>
</property>
<attribute name="toolBarArea">
<enum>TopToolBarArea</enum>
</attribute>
<attribute name="toolBarBreak">
<bool>false</bool>
</attribute>
<addaction name="actionNew"/>
<addaction name="actionOpen"/>
<addaction name="actionSave"/>
<addaction name="separator"/>
</widget>
<action name="actionNew">
<property name="icon">
<iconset theme="document-new"/>
</property>
<property name="text">
<string>新建</string>
</property>
<property name="toolTip">
<string>新建(N)</string>
</property>
<property name="menuRole">
<enum>QAction::MenuRole::NoRole</enum>
</property>
</action>
<action name="actionOpen">
<property name="icon">
<iconset theme="document-open"/>
</property>
<property name="text">
<string>打开</string>
</property>
<property name="toolTip">
<string>打开(O)</string>
</property>
<property name="menuRole">
<enum>QAction::MenuRole::NoRole</enum>
</property>
</action>
<action name="actionSave">
<property name="icon">
<iconset theme="document-save"/>
</property>
<property name="text">
<string>保存</string>
</property>
<property name="toolTip">
<string>保存(S)</string>
</property>
<property name="menuRole">
<enum>QAction::MenuRole::NoRole</enum>
</property>
</action>
<action name="actionCopy">
<property name="icon">
<iconset theme="edit-copy"/>
</property>
<property name="text">
<string>复制</string>
</property>
<property name="toolTip">
<string>复制(C)</string>
</property>
<property name="menuRole">
<enum>QAction::MenuRole::NoRole</enum>
</property>
</action>
<action name="actionCut">
<property name="icon">
<iconset theme="edit-cut"/>
</property>
<property name="text">
<string>剪切</string>
</property>
<property name="toolTip">
<string>剪切(T)</string>
</property>
<property name="menuRole">
<enum>QAction::MenuRole::NoRole</enum>
</property>
</action>
<action name="actionPast">
<property name="icon">
<iconset theme="edit-paste"/>
</property>
<property name="text">
<string>粘贴</string>
</property>
<property name="toolTip">
<string>粘贴(P)</string>
</property>
<property name="menuRole">
<enum>QAction::MenuRole::NoRole</enum>
</property>
</action>
<action name="actionDelete">
<property name="icon">
<iconset theme="edit-delete"/>
</property>
<property name="text">
<string>删除</string>
</property>
<property name="toolTip">
<string>删除(D)</string>
</property>
<property name="menuRole">
<enum>QAction::MenuRole::NoRole</enum>
</property>
</action>
<action name="actionZoomIn">
<property name="icon">
<iconset theme="zoom-in"/>
</property>
<property name="text">
<string>放大</string>
</property>
<property name="toolTip">
<string>放大</string>
</property>
<property name="menuRole">
<enum>QAction::MenuRole::NoRole</enum>
</property>
</action>
<action name="actionZoomOut">
<property name="icon">
<iconset theme="zoom-out"/>
</property>
<property name="text">
<string>缩小</string>
</property>
<property name="toolTip">
<string>缩小</string>
</property>
<property name="menuRole">
<enum>QAction::MenuRole::NoRole</enum>
</property>
</action>
<action name="actionZoomFit">
<property name="icon">
<iconset theme="zoom-fit-best"/>
</property>
<property name="text">
<string>自适应</string>
</property>
<property name="toolTip">
<string>自适应</string>
</property>
<property name="menuRole">
<enum>QAction::MenuRole::NoRole</enum>
</property>
</action>
<action name="actionGrid">
<property name="text">
<string>网格</string>
</property>
<property name="toolTip">
<string>网格</string>
</property>
<property name="menuRole">
<enum>QAction::MenuRole::NoRole</enum>
</property>
</action>
<action name="actionUndo">
<property name="icon">
<iconset theme="edit-undo"/>
</property>
<property name="text">
<string>撤销</string>
</property>
<property name="toolTip">
<string>撤销</string>
</property>
</action>
<action name="actionRedo">
<property name="icon">
<iconset theme="edit-redo"/>
</property>
<property name="text">
<string>重做</string>
</property>
<property name="toolTip">
<string>重做</string>
</property>
<property name="menuRole">
<enum>QAction::MenuRole::NoRole</enum>
</property>
</action>
<action name="actionGroup">
<property name="text">
<string>群组</string>
</property>
<property name="toolTip">
<string>群组</string>
</property>
<property name="menuRole">
<enum>QAction::MenuRole::NoRole</enum>
</property>
</action>
<action name="actionUngroup">
<property name="text">
<string>解组</string>
</property>
<property name="toolTip">
<string>解组</string>
</property>
<property name="menuRole">
<enum>QAction::MenuRole::NoRole</enum>
</property>
</action>
<action name="actionRun">
<property name="text">
<string>运行</string>
</property>
</action>
</widget>
<resources/>
<connections/>
</ui>