dataCreatingGUI/ui/ui_main.ui

840 lines
26 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>966</width>
<height>633</height>
</rect>
</property>
<property name="windowTitle">
<string>DataCreating</string>
</property>
<widget class="QWidget" name="centralwidget">
<layout class="QHBoxLayout" name="horizontalLayout_7">
<item>
<layout class="QVBoxLayout" name="verticalLayout_9">
<item>
<layout class="QHBoxLayout" name="horizontalLayout" stretch="1,0,1">
<item>
<widget class="QTabWidget" name="tabWidget">
<property name="currentIndex">
<number>0</number>
</property>
<widget class="QWidget" name="file_tab">
<attribute name="title">
<string>文件</string>
</attribute>
<layout class="QHBoxLayout" name="horizontalLayout_8">
<item>
<layout class="QVBoxLayout" name="verticalLayout_10" stretch="2,0,3,0">
<item>
<widget class="QGroupBox" name="groupBox_3">
<property name="title">
<string>基本信息:</string>
</property>
<widget class="QWidget" name="layoutWidget">
<property name="geometry">
<rect>
<x>11</x>
<y>20</y>
<width>378</width>
<height>132</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_11">
<item>
<layout class="QVBoxLayout" name="verticalLayout_6" stretch="0,0,0,1">
<item>
<widget class="QLabel" name="filename_label">
<property name="text">
<string>文件名</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="output_label">
<property name="text">
<string>输出路径</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="fileinit_label">
<property name="text">
<string>初始数据量</string>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_4">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_5" stretch="0,0">
<item>
<widget class="QLineEdit" name="fileNameText">
<property name="text">
<string>filetest</string>
</property>
<property name="placeholderText">
<string>文件名</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_7">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>24</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_9" stretch="5,0">
<item>
<widget class="QLineEdit" name="fileOutputText">
<property name="placeholderText">
<string>默认:./data</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="choosedir_Button">
<property name="text">
<string>选择目录</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_10">
<item>
<widget class="QLineEdit" name="fileInitRowsText">
<property name="text">
<string>10</string>
</property>
<property name="placeholderText">
<string/>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_8">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<spacer name="horizontalSpacer_4">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</widget>
</item>
<item>
<spacer name="verticalSpacer_3">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>15</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QGroupBox" name="groupBox_2">
<property name="title">
<string>参数配置:</string>
</property>
<widget class="QFrame" name="frame">
<property name="geometry">
<rect>
<x>12</x>
<y>64</y>
<width>337</width>
<height>72</height>
</rect>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<widget class="QLabel" name="filearges_insert_label">
<property name="text">
<string>每次插入数据量:</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="fileInsertRowsText">
<property name="enabled">
<bool>true</bool>
</property>
<property name="text">
<string>200</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_8">
<property name="text">
<string></string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<widget class="QLabel" name="filearges_del_label">
<property name="text">
<string>每次删除数据量:</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="fileDelRowsText">
<property name="text">
<string>100</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_7">
<property name="text">
<string></string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
</layout>
</widget>
<widget class="QWidget" name="layoutWidget">
<property name="geometry">
<rect>
<x>12</x>
<y>27</y>
<width>174</width>
<height>22</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QLabel" name="filearges_bool_label">
<property name="text">
<string>是否持续生成:</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBox">
<property name="text">
<string>是/否</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
</item>
<item>
<spacer name="verticalSpacer_5">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</widget>
<widget class="QWidget" name="DB_tab">
<attribute name="title">
<string>数据库</string>
</attribute>
<widget class="QLabel" name="db_type_label">
<property name="geometry">
<rect>
<x>20</x>
<y>30</y>
<width>71</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>数据库类型</string>
</property>
</widget>
<widget class="QLabel" name="IP_label">
<property name="geometry">
<rect>
<x>20</x>
<y>60</y>
<width>71</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>IP地址</string>
</property>
</widget>
<widget class="QLabel" name="port_label">
<property name="geometry">
<rect>
<x>200</x>
<y>60</y>
<width>31</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>端口</string>
</property>
</widget>
<widget class="QLabel" name="db_database_label">
<property name="geometry">
<rect>
<x>300</x>
<y>60</y>
<width>61</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>Database</string>
</property>
</widget>
<widget class="QLabel" name="db_servername_label">
<property name="geometry">
<rect>
<x>20</x>
<y>90</y>
<width>71</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>服务名</string>
</property>
</widget>
<widget class="QLabel" name="db_user_label">
<property name="geometry">
<rect>
<x>20</x>
<y>130</y>
<width>71</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>用户名</string>
</property>
</widget>
<widget class="QLabel" name="db_passwd_label">
<property name="geometry">
<rect>
<x>20</x>
<y>160</y>
<width>71</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>密码</string>
</property>
</widget>
<widget class="QLabel" name="db_arges_label">
<property name="geometry">
<rect>
<x>0</x>
<y>240</y>
<width>71</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>参数配置:</string>
</property>
</widget>
<widget class="QLabel" name="db_info_label">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>71</width>
<height>31</height>
</rect>
</property>
<property name="text">
<string>连接信息:</string>
</property>
</widget>
<widget class="QPushButton" name="conn_Button">
<property name="geometry">
<rect>
<x>10</x>
<y>200</y>
<width>75</width>
<height>24</height>
</rect>
</property>
<property name="text">
<string>测试连接</string>
</property>
</widget>
<widget class="QComboBox" name="db_type_Box">
<property name="geometry">
<rect>
<x>90</x>
<y>30</y>
<width>101</width>
<height>21</height>
</rect>
</property>
<item>
<property name="text">
<string>MySQL5</string>
</property>
</item>
<item>
<property name="text">
<string>MySQL8</string>
</property>
</item>
<item>
<property name="text">
<string>Oracle</string>
</property>
</item>
<item>
<property name="text">
<string>MSSQL</string>
</property>
</item>
</widget>
<widget class="QLineEdit" name="IP_text">
<property name="geometry">
<rect>
<x>90</x>
<y>60</y>
<width>101</width>
<height>20</height>
</rect>
</property>
</widget>
<widget class="QLineEdit" name="port_text">
<property name="geometry">
<rect>
<x>230</x>
<y>60</y>
<width>61</width>
<height>20</height>
</rect>
</property>
</widget>
<widget class="QLineEdit" name="db_database_text">
<property name="geometry">
<rect>
<x>360</x>
<y>60</y>
<width>81</width>
<height>20</height>
</rect>
</property>
</widget>
<widget class="QLineEdit" name="db_servername_text">
<property name="geometry">
<rect>
<x>90</x>
<y>90</y>
<width>101</width>
<height>20</height>
</rect>
</property>
</widget>
<widget class="QLineEdit" name="db_user_text">
<property name="geometry">
<rect>
<x>90</x>
<y>130</y>
<width>101</width>
<height>20</height>
</rect>
</property>
</widget>
<widget class="QLineEdit" name="db_passwd_text">
<property name="geometry">
<rect>
<x>90</x>
<y>160</y>
<width>101</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string/>
</property>
<property name="echoMode">
<enum>QLineEdit::Password</enum>
</property>
<property name="placeholderText">
<string/>
</property>
</widget>
<widget class="QLabel" name="db_insert_label">
<property name="geometry">
<rect>
<x>40</x>
<y>260</y>
<width>101</width>
<height>41</height>
</rect>
</property>
<property name="text">
<string>每次插入数据量:</string>
</property>
</widget>
<widget class="QLineEdit" name="db_insert_text">
<property name="geometry">
<rect>
<x>140</x>
<y>270</y>
<width>101</width>
<height>20</height>
</rect>
</property>
</widget>
</widget>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_6">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>15</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QGroupBox" name="groupBox">
<property name="title">
<string>输出日志:</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout" stretch="0,2">
<item>
<spacer name="verticalSpacer_4">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>5</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QTextBrowser" name="Log_Output"/>
</item>
</layout>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_6" stretch="1,1,2,1,10">
<item>
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="startButton">
<property name="text">
<string>开始</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>10</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="stopButton">
<property name="text">
<string>停止</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</item>
</layout>
</widget>
<widget class="QMenuBar" name="menubar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>966</width>
<height>22</height>
</rect>
</property>
<widget class="QMenu" name="menu">
<property name="title">
<string>关于</string>
</property>
<addaction name="actionabout"/>
</widget>
<addaction name="menu"/>
</widget>
<widget class="QStatusBar" name="statusbar"/>
<action name="actionabout">
<property name="text">
<string>about</string>
</property>
</action>
</widget>
<resources/>
<connections>
<connection>
<sender>checkBox</sender>
<signal>clicked(bool)</signal>
<receiver>frame</receiver>
<slot>setVisible(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>169</x>
<y>301</y>
</hint>
<hint type="destinationlabel">
<x>181</x>
<y>403</y>
</hint>
</hints>
</connection>
<connection>
<sender>startButton</sender>
<signal>clicked()</signal>
<receiver>MainWindow</receiver>
<slot>start()</slot>
<hints>
<hint type="sourcelabel">
<x>150</x>
<y>601</y>
</hint>
<hint type="destinationlabel">
<x>153</x>
<y>523</y>
</hint>
</hints>
</connection>
<connection>
<sender>stopButton</sender>
<signal>clicked()</signal>
<receiver>MainWindow</receiver>
<slot>stop()</slot>
<hints>
<hint type="sourcelabel">
<x>356</x>
<y>601</y>
</hint>
<hint type="destinationlabel">
<x>492</x>
<y>515</y>
</hint>
</hints>
</connection>
<connection>
<sender>conn_Button</sender>
<signal>clicked()</signal>
<receiver>MainWindow</receiver>
<slot>conntest()</slot>
<hints>
<hint type="sourcelabel">
<x>82</x>
<y>269</y>
</hint>
<hint type="destinationlabel">
<x>287</x>
<y>528</y>
</hint>
</hints>
</connection>
<connection>
<sender>tabWidget</sender>
<signal>tabBarClicked(int)</signal>
<receiver>db_servername_label</receiver>
<slot>hide()</slot>
<hints>
<hint type="sourcelabel">
<x>88</x>
<y>45</y>
</hint>
<hint type="destinationlabel">
<x>66</x>
<y>156</y>
</hint>
</hints>
</connection>
<connection>
<sender>db_type_Box</sender>
<signal>currentTextChanged(QString)</signal>
<receiver>db_servername_label</receiver>
<slot>show()</slot>
<hints>
<hint type="sourcelabel">
<x>151</x>
<y>104</y>
</hint>
<hint type="destinationlabel">
<x>78</x>
<y>154</y>
</hint>
</hints>
</connection>
<connection>
<sender>choosedir_Button</sender>
<signal>clicked(bool)</signal>
<receiver>MainWindow</receiver>
<slot>choosedir()</slot>
<hints>
<hint type="sourcelabel">
<x>302</x>
<y>137</y>
</hint>
<hint type="destinationlabel">
<x>428</x>
<y>31</y>
</hint>
</hints>
</connection>
</connections>
<slots>
<slot>start()</slot>
<slot>stop()</slot>
<slot>conntest()</slot>
<slot>choosedir()</slot>
</slots>
</ui>