522 lines
12 KiB
XML
522 lines
12 KiB
XML
<?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>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">QWidget
|
|
{
|
|
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);
|
|
border-radius:5px;
|
|
}
|
|
QPushButton:hover
|
|
{
|
|
border-color: rgb(65, 122, 166);
|
|
}
|
|
QPushButton:pressed
|
|
{
|
|
background-color:rgba(65, 122, 166,50);
|
|
}
|
|
QPushButton:disabled
|
|
{
|
|
color:rgb(110,110,110);
|
|
}
|
|
|
|
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);
|
|
}
|
|
QComboBox QAbstractItemView
|
|
{
|
|
outline: 0px; /*去除选中虚线框 */
|
|
}
|
|
QComboBox QAbstractItemView::item:hover
|
|
{
|
|
background-color:rgba(49, 91, 125, 80);
|
|
}
|
|
QComboBox QAbstractItemView::item:selected
|
|
{
|
|
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);
|
|
}
|
|
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);
|
|
}*/
|
|
|
|
QTabWidget
|
|
{
|
|
|
|
}
|
|
QTabWidget::pane
|
|
{
|
|
border:0px;
|
|
border-top: 1px solid rgb(50,50,50);;
|
|
border-radius: 2px;
|
|
margin-top:-1px;
|
|
}
|
|
QTabWidget::tab-bar
|
|
{
|
|
|
|
}
|
|
QTabBar::tab
|
|
{
|
|
height:26px;
|
|
border: 0px;
|
|
padding-left:10px;
|
|
padding-right:10px;
|
|
margin-bottom:-1px;
|
|
border-bottom: 1px solid rgb(50,50,50);
|
|
}
|
|
QTabBar::tab:selected
|
|
{
|
|
color:rgb(70,130,180);
|
|
margin-bottom:0px;
|
|
border-bottom: 2px solid rgb(70,130,180);
|
|
}
|
|
|
|
QHeaderView
|
|
{
|
|
background-color: rgb(40, 40, 40);
|
|
}
|
|
QHeaderView::section
|
|
{
|
|
border-bottom: 1px solid rgb(30,30,30);
|
|
}
|
|
|
|
QTableView
|
|
{
|
|
outline:0px;
|
|
background-color: rgb(45, 45, 45);
|
|
}
|
|
QTableView::item
|
|
{
|
|
border:0px;
|
|
background-color:transparent;
|
|
}
|
|
QTableView::item:hover
|
|
{
|
|
background-color:transparent;
|
|
}
|
|
QTableView::item:selected
|
|
{
|
|
}
|
|
|
|
QTreeView
|
|
{
|
|
outline:0px;
|
|
background-color: rgb(45, 45, 45);
|
|
}
|
|
QTreeView::item
|
|
{
|
|
border:0px;
|
|
}
|
|
QTreeView::item:hover
|
|
{
|
|
background-color:rgba(49, 91, 125, 80);
|
|
}
|
|
QTreeView::item:selected
|
|
{
|
|
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);
|
|
}
|
|
|
|
QListView
|
|
{
|
|
outline:0px;
|
|
background-color: rgb(45, 45, 45);
|
|
}
|
|
QListView::item
|
|
{
|
|
border:0px;
|
|
padding-left:5px;
|
|
padding-top:1px;
|
|
padding-bottom:1px;
|
|
}
|
|
QListView::item:hover
|
|
{
|
|
background-color:rgba(49, 91, 125, 80);
|
|
}
|
|
QListView::item:selected
|
|
{
|
|
background-color: rgb(49, 91, 125);
|
|
}
|
|
</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">
|
|
<property name="styleSheet">
|
|
<string notr="true"/>
|
|
</property>
|
|
<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>
|
|
</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>
|