PowerModeler/ui/mainwindow.ui

522 lines
12 KiB
Plaintext
Raw Normal View History

2025-03-14 16:06:20 +08:00
<?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>1111</width>
<height>759</height>
</rect>
</property>
<property name="windowTitle">
<string>PowerModeler</string>
</property>
<property name="windowIcon">
<iconset resource="../resource/PowerModeler.qrc">
<normaloff>:/img/images/icon_database.png</normaloff>:/img/images/icon_database.png</iconset>
2025-03-14 16:06:20 +08:00
</property>
<property name="styleSheet">
2025-06-10 11:22:27 +08:00
<string notr="true">QWidget
2025-03-14 16:06:20 +08:00
{
2025-06-10 11:22:27 +08:00
color: rgb(240, 240, 240);
background-color: rgb(30, 30, 30);
background-clip: border;
outline:0;
}
QMenuBar
{
background-color: rgb(30, 30, 30);
color: rgb(240, 240, 240);
border-bottom: 1px solid rgb(50, 50, 50);
}
QToolBar
{
border: 1px solid transparent;
background:rgb(30, 30, 30);
font-weight: bold;
}
QToolBar::separator:horizontal
{
background:transparent;
}
QToolButton:hover, QToolButton::menu-button:hover
{
border:0px;
background-color:rgb(71, 77, 92);
}
QToolButton:checked, QToolButton:pressed,
QToolButton::menu-button:pressed
{
border:0px;
background-color:rgb(67, 73, 87);
}
QLineEdit
{
border: 0px;
border-radius: 5px;
background-color: rgb(45, 45, 45);
}
QPlainTextEdit
{
border: 0px;
border-radius: 5px;
background-color: rgb(45, 45, 45);
}
QPushButton
{
border: 1px solid rgb(110,110,110);
2025-03-14 16:06:20 +08:00
border-radius:5px;
}
QPushButton:hover
{
2025-06-10 11:22:27 +08:00
border-color: rgb(65, 122, 166);
2025-03-14 16:06:20 +08:00
}
QPushButton:pressed
{
2025-06-10 11:22:27 +08:00
background-color:rgba(65, 122, 166,50);
2025-03-14 16:06:20 +08:00
}
QPushButton:disabled
{
2025-06-10 11:22:27 +08:00
color:rgb(110,110,110);
}
2025-03-14 16:06:20 +08:00
2025-06-10 11:22:27 +08:00
QComboBox
{
background-color: rgb(45, 45, 45);
border: 0px;
border-radius: 5px;
}
QComboBox::drop-down
{
border:0px;
}
QComboBox::down-arrow
{
margin-right:10px;
width:14px;
border-image: url(:/theme/images/darkstyle/down-arrow.png);
}
2025-04-08 20:25:47 +08:00
QComboBox QAbstractItemView
{
2025-06-10 11:22:27 +08:00
outline: 0px; /*去除选中虚线框 */
2025-04-08 20:25:47 +08:00
}
QComboBox QAbstractItemView::item:hover
{
2025-06-10 11:22:27 +08:00
background-color:rgba(49, 91, 125, 80);
2025-04-08 20:25:47 +08:00
}
QComboBox QAbstractItemView::item:selected
{
2025-06-10 11:22:27 +08:00
background-color: rgb(49, 91, 125);
}
/* QSpinBox
{
background-color: rgb(45, 45, 45);
}
QSpinBox::up-button
{
border:0px;
}
QSpinBox::up-button:hover
{
background-color:rgb(71, 77, 92);
}
QSpinBox::up-button:pressed
{
background-color:rgb(67, 73, 87);
}
QSpinBox::up-arrow
{
width:14px;
border-image: url(:/theme/images/darkstyle/up-arrow.png);
2025-04-08 20:25:47 +08:00
}
2025-06-10 11:22:27 +08:00
QSpinBox::down-button
{
border:0px;
}
QSpinBox::down-button:hover
{
background-color:rgb(71, 77, 92);
}
QSpinBox::down-button:pressed
{
background-color:rgb(67, 73, 87);
}
QSpinBox::down-arrow
{
width:14px;
border-image: url(:/theme/images/darkstyle/down-arrow.png);
}*/
2025-04-08 20:25:47 +08:00
2025-03-14 16:06:20 +08:00
QTabWidget
{
}
QTabWidget::pane
{
border:0px;
2025-06-10 11:22:27 +08:00
border-top: 1px solid rgb(50,50,50);;
2025-03-14 16:06:20 +08:00
border-radius: 2px;
margin-top:-1px;
}
QTabWidget::tab-bar
{
}
QTabBar::tab
{
height:26px;
2025-06-10 11:22:27 +08:00
border: 0px;
2025-03-14 16:06:20 +08:00
padding-left:10px;
padding-right:10px;
2025-06-10 11:40:04 +08:00
margin-bottom:-1px;
border-bottom: 1px solid rgb(50,50,50);
2025-03-14 16:06:20 +08:00
}
QTabBar::tab:selected
{
color:rgb(70,130,180);
2025-06-10 15:41:53 +08:00
margin-bottom:0px;
2025-03-14 16:06:20 +08:00
border-bottom: 2px solid rgb(70,130,180);
}
QHeaderView
{
2025-06-10 11:40:04 +08:00
background-color: rgb(40, 40, 40);
2025-03-14 16:06:20 +08:00
}
QHeaderView::section
{
2025-06-10 15:41:53 +08:00
border-bottom: 1px solid rgb(30,30,30);
2025-03-14 16:06:20 +08:00
}
QTableView
{
2025-04-01 18:10:48 +08:00
outline:0px;
2025-06-10 11:22:27 +08:00
background-color: rgb(45, 45, 45);
2025-03-14 16:06:20 +08:00
}
QTableView::item
{
border:0px;
2025-04-01 18:10:48 +08:00
background-color:transparent;
2025-03-14 16:06:20 +08:00
}
QTableView::item:hover
{
2025-04-01 18:10:48 +08:00
background-color:transparent;
2025-03-14 16:06:20 +08:00
}
2025-06-10 11:22:27 +08:00
QTableView::item:selected
{
}
2025-03-14 16:06:20 +08:00
QTreeView
{
2025-04-01 18:10:48 +08:00
outline:0px;
2025-06-10 11:22:27 +08:00
background-color: rgb(45, 45, 45);
2025-03-14 16:06:20 +08:00
}
QTreeView::item
{
border:0px;
}
QTreeView::item:hover
{
2025-06-10 11:22:27 +08:00
background-color:rgba(49, 91, 125, 80);
2025-03-14 16:06:20 +08:00
}
QTreeView::item:selected
{
2025-06-10 11:22:27 +08:00
background-color: rgb(49, 91, 125);
}
QTreeView::branch:has-children:!has-siblings:closed,
QTreeView::branch:closed:has-children:has-siblings
{
image: url(:/theme/images/darkstyle/branch_closed.png);
}
QTreeView::branch:open:has-children:!has-siblings,
QTreeView::branch:open:has-children:has-siblings
{
image: url(:/theme/images/darkstyle/branch_open.png);
2025-03-14 16:06:20 +08:00
}
QListView
{
outline:0px;
2025-06-10 11:22:27 +08:00
background-color: rgb(45, 45, 45);
}
QListView::item
{
border:0px;
padding-left:5px;
padding-top:1px;
padding-bottom:1px;
}
QListView::item:hover
{
2025-06-10 11:22:27 +08:00
background-color:rgba(49, 91, 125, 80);
}
QListView::item:selected
{
2025-06-10 11:22:27 +08:00
background-color: rgb(49, 91, 125);
}
2025-03-14 16:06:20 +08:00
</string>
</property>
<widget class="QWidget" name="centralwidget">
<layout class="QHBoxLayout" name="horizontalLayout">
<property name="spacing">
<number>0</number>
</property>
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QSplitter" name="splitter">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<widget class="QWidget" name="dbStructurePanel" native="true">
2025-06-10 11:22:27 +08:00
<property name="styleSheet">
<string notr="true"/>
</property>
2025-03-14 16:06:20 +08:00
<layout class="QVBoxLayout" name="layoutDBStructure">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
</layout>
</widget>
<widget class="QWidget" name="mainOperationPanel" native="true">
<property name="styleSheet">
<string notr="true"/>
</property>
<layout class="QVBoxLayout" name="layoutAttributeBrowser">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
</layout>
2025-03-14 16:06:20 +08:00
</widget>
</widget>
</item>
</layout>
</widget>
<widget class="QMenuBar" name="menubar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1111</width>
<height>33</height>
</rect>
</property>
<widget class="QMenu" name="menu">
<property name="title">
<string>文件</string>
</property>
</widget>
<widget class="QMenu" name="menu_2">
<property name="title">
<string>编辑</string>
</property>
</widget>
<widget class="QMenu" name="menu_3">
<property name="title">
<string>查看</string>
</property>
</widget>
<widget class="QMenu" name="menu_4">
<property name="title">
<string>工具</string>
</property>
</widget>
<widget class="QMenu" name="menu_5">
<property name="title">
<string>帮助</string>
</property>
</widget>
<addaction name="menu"/>
<addaction name="menu_2"/>
<addaction name="menu_3"/>
<addaction name="menu_4"/>
<addaction name="menu_5"/>
</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="connectAction"/>
<addaction name="disconnectAction"/>
<addaction name="separator"/>
<addaction name="createTableAction"/>
<addaction name="deleteTableAction"/>
<addaction name="separator"/>
<addaction name="importAciton"/>
<addaction name="exportAction"/>
<addaction name="separator"/>
<addaction name="refreshAction"/>
<addaction name="separator"/>
</widget>
<action name="createTableAction">
<property name="enabled">
<bool>false</bool>
</property>
<property name="icon">
<iconset resource="../resource/PowerModeler.qrc">
<normaloff>:/img/images/icon_addTable.png</normaloff>:/img/images/icon_addTable.png</iconset>
</property>
<property name="text">
<string>创建表</string>
</property>
<property name="toolTip">
<string>创建模型</string>
</property>
<property name="visible">
<bool>true</bool>
</property>
<property name="menuRole">
<enum>QAction::MenuRole::NoRole</enum>
</property>
</action>
<action name="deleteTableAction">
<property name="enabled">
<bool>false</bool>
</property>
<property name="icon">
<iconset resource="../resource/PowerModeler.qrc">
<normaloff>:/img/images/icon_deleteTable.png</normaloff>:/img/images/icon_deleteTable.png</iconset>
</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="importAciton">
<property name="enabled">
<bool>false</bool>
</property>
<property name="icon">
<iconset resource="../resource/PowerModeler.qrc">
<normaloff>:/img/images/icon_import.png</normaloff>:/img/images/icon_import.png</iconset>
</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="exportAction">
<property name="enabled">
<bool>false</bool>
</property>
<property name="icon">
<iconset resource="../resource/PowerModeler.qrc">
<normaloff>:/img/images/icon_export.png</normaloff>:/img/images/icon_export.png</iconset>
</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="refreshAction">
<property name="enabled">
<bool>false</bool>
</property>
<property name="icon">
<iconset resource="../resource/PowerModeler.qrc">
<normaloff>:/img/images/icon_refresh.png</normaloff>:/img/images/icon_refresh.png</iconset>
</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="connectAction">
<property name="icon">
<iconset resource="../resource/PowerModeler.qrc">
<normaloff>:/img/images/icon_connect.png</normaloff>:/img/images/icon_connect.png</iconset>
</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="disconnectAction">
<property name="icon">
<iconset resource="../resource/PowerModeler.qrc">
<normaloff>:/img/images/icon_disconnect.png</normaloff>:/img/images/icon_disconnect.png</iconset>
</property>
<property name="text">
<string>断开链接</string>
</property>
<property name="toolTip">
<string>断开链接</string>
</property>
<property name="menuRole">
<enum>QAction::MenuRole::NoRole</enum>
</property>
</action>
</widget>
<resources>
<include location="../resource/PowerModeler.qrc"/>
</resources>
<connections/>
</ui>