!63 美化界面

Merge pull request !63 from cleverxiao/develop
This commit is contained in:
爬山虎 2023-03-10 12:26:36 +00:00 committed by Gitee
commit 2b3e9b6314
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
16 changed files with 901 additions and 1071 deletions

View File

@ -18,7 +18,7 @@
您可以在这个项目提交bug或反馈问题。
最新版本下载地址https://gitee.com/cxasm/notepad--/releases/tag/v1.23
最新版本下载地址https://gitee.com/cxasm/notepad--/releases/tag/v2.0
NDD已初步推出插件编写功能希望广大的CPP/QT开发者加入我们插件功能均可以留上您的大名和捐赠渠道希望
开发者参与插件功能开发。

View File

@ -14,6 +14,7 @@ BatchFindReplace::BatchFindReplace(QWidget *parent)
ui.setupUi(this);
m_mainNotepad = dynamic_cast<CCNotePad*>(parent);
ui.findReplaceTable->horizontalHeader()->setSectionResizeMode(QHeaderView::Stretch);
}
BatchFindReplace::~BatchFindReplace()

View File

@ -164,14 +164,6 @@
</item>
</layout>
</widget>
<widget class="QToolBar" name="mainToolBar">
<attribute name="toolBarArea">
<enum>TopToolBarArea</enum>
</attribute>
<attribute name="toolBarBreak">
<bool>false</bool>
</attribute>
</widget>
<widget class="QStatusBar" name="statusBar"/>
</widget>
<layoutdefault spacing="6" margin="11"/>

View File

@ -6,16 +6,10 @@
<rect>
<x>0</x>
<y>0</y>
<width>337</width>
<height>316</height>
<width>393</width>
<height>325</height>
</rect>
</property>
<property name="maximumSize">
<size>
<width>350</width>
<height>330</height>
</size>
</property>
<property name="windowTitle">
<string>ColumnEdit</string>
</property>
@ -23,59 +17,25 @@
<iconset resource="RealCompare.qrc">
<normaloff>:/Resources/edit/global/ndd.ico</normaloff>:/Resources/edit/global/ndd.ico</iconset>
</property>
<layout class="QVBoxLayout" name="verticalLayout_5">
<property name="spacing">
<number>3</number>
</property>
<property name="leftMargin">
<number>3</number>
</property>
<property name="rightMargin">
<number>3</number>
</property>
<property name="bottomMargin">
<number>3</number>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_5">
<item>
<widget class="QGroupBox" name="textGroupBox">
<property name="title">
<string>Insert Text</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<layout class="QVBoxLayout" name="verticalLayout_4">
<item>
<widget class="QLineEdit" name="inputText">
<property name="maxLength">
<number>1024</number>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QPushButton" name="ok">
<property name="text">
<string>Ok</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="close">
<property name="text">
<string>Close</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
<widget class="QGroupBox" name="textGroupBox">
<property name="title">
<string>Insert Text</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<layout class="QVBoxLayout" name="verticalLayout_4">
<item>
<widget class="QLineEdit" name="inputText">
<property name="maxLength">
<number>1024</number>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="numGroupBox">
@ -89,22 +49,16 @@
<bool>false</bool>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="spacing">
<number>9</number>
</property>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<property name="leftMargin">
<number>20</number>
</property>
<item>
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>Initial value:</string>
</property>
</widget>
</item>
<item>
<item row="0" column="1">
<widget class="QLineEdit" name="initNum">
<property name="text">
<string>1</string>
@ -117,34 +71,14 @@
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<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>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<property name="leftMargin">
<number>20</number>
</property>
<item>
<item row="1" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
<string>increment:</string>
</property>
</widget>
</item>
<item>
<item row="1" column="1">
<widget class="QSpinBox" name="incNum">
<property name="minimumSize">
<size>
@ -157,34 +91,14 @@
</property>
</widget>
</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>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<property name="leftMargin">
<number>20</number>
</property>
<item>
<item row="2" column="0">
<widget class="QLabel" name="label_3">
<property name="text">
<string>Repetitions:</string>
</property>
</widget>
</item>
<item>
<item row="2" column="1">
<widget class="QSpinBox" name="repeNum">
<property name="minimumSize">
<size>
@ -197,53 +111,20 @@
</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>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<property name="leftMargin">
<number>20</number>
</property>
<item>
<item row="3" column="0">
<widget class="QCheckBox" name="addPrefix">
<property name="text">
<string>prefix string:</string>
</property>
</widget>
</item>
<item>
<item row="3" column="1">
<widget class="QLineEdit" name="prefix">
<property name="enabled">
<bool>false</bool>
</property>
</widget>
</item>
<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>
</layout>
</item>
<item>
@ -251,32 +132,19 @@
<property name="title">
<string>Format</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_6">
<item>
<widget class="QRadioButton" name="is10">
<property name="text">
<string>Decimal </string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_5">
<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 class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QRadioButton" name="is10">
<property name="text">
<string>Decimal </string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item row="0" column="1">
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QRadioButton" name="is16">
<property name="text">
@ -299,23 +167,19 @@
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_7">
<item>
<widget class="QRadioButton" name="is8">
<property name="text">
<string>Octal </string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="is2">
<property name="text">
<string>Binary</string>
</property>
</widget>
</item>
</layout>
<item row="1" column="0">
<widget class="QRadioButton" name="is8">
<property name="text">
<string>Octal </string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QRadioButton" name="is2">
<property name="text">
<string>Binary</string>
</property>
</widget>
</item>
</layout>
</widget>
@ -323,6 +187,63 @@
</layout>
</widget>
</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>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_5">
<item>
<spacer name="horizontalSpacer_6">
<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="ok">
<property name="text">
<string>Ok</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="close">
<property name="text">
<string>Close</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_7">
<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>
</widget>
<layoutdefault spacing="6" margin="11"/>

View File

@ -144,6 +144,8 @@ void EncodeConvert::slot_selectFile()
if (!rootpath.isEmpty())
{
ui.lineEdit->setText(rootpath);
ui.treeWidget->clear();
m_fileAttris.clear();

View File

@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>969</width>
<height>614</height>
<width>943</width>
<height>586</height>
</rect>
</property>
<property name="windowTitle">
@ -17,210 +17,223 @@
<iconset resource="RealCompare.qrc">
<normaloff>:/Resources/img/main.png</normaloff>:/Resources/img/main.png</iconset>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3" stretch="1,0">
<property name="spacing">
<number>2</number>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<property name="leftMargin">
<number>2</number>
<number>3</number>
</property>
<property name="topMargin">
<number>2</number>
<number>3</number>
</property>
<property name="rightMargin">
<number>2</number>
</property>
<property name="bottomMargin">
<number>2</number>
<number>3</number>
</property>
<item>
<widget class="QTreeWidget" name="treeWidget">
<column>
<property name="text">
<string>filePath</string>
</property>
</column>
<column>
<property name="text">
<string>file size</string>
</property>
</column>
<column>
<property name="text">
<string>file code</string>
</property>
</column>
<column>
<property name="text">
<string>convert code</string>
</property>
</column>
<column>
<property name="text">
<string>convert result</string>
</property>
</column>
</widget>
<layout class="QHBoxLayout" name="horizontalLayout_5">
<item>
<widget class="QLineEdit" name="lineEdit">
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="selectFileBt">
<property name="text">
<string>select dir</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_4" stretch="0,1">
<layout class="QVBoxLayout" name="verticalLayout" stretch="2,1">
<item>
<layout class="QVBoxLayout" name="verticalLayout_2" stretch="2,1">
<property name="bottomMargin">
<number>20</number>
</property>
<item>
<widget class="QGroupBox" name="groupBox_2">
<property name="title">
<string>convert options</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>convert to code</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="codeToComboBox">
<property name="minimumSize">
<size>
<width>200</width>
<height>0</height>
</size>
</property>
<item>
<property name="text">
<string>UTF8</string>
</property>
</item>
<item>
<property name="text">
<string>UTF8 BOM</string>
</property>
</item>
<item>
<property name="text">
<string>UTF16-LE</string>
</property>
</item>
<item>
<property name="text">
<string>UTF16-BE</string>
</property>
</item>
<item>
<property name="text">
<string>GBK</string>
</property>
</item>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLabel" name="label_2">
<property name="text">
<string>deal file ext</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="extComboBox">
<property name="minimumSize">
<size>
<width>150</width>
<height>0</height>
</size>
</property>
<item>
<property name="text">
<string>all support file ext</string>
</property>
</item>
</widget>
</item>
<item>
<widget class="QToolButton" name="toolButton">
<property name="toolTip">
<string>user defined</string>
</property>
<property name="text">
<string>defined</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<spacer name="horizontalSpacer">
<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="selectFileBt">
<property name="text">
<string>select dir</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="startBt">
<property name="text">
<string>start</string>
</property>
<property name="autoDefault">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="closeBt">
<property name="text">
<string>close</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>
<widget class="QTreeWidget" name="treeWidget">
<column>
<property name="text">
<string>filePath</string>
</property>
</column>
<column>
<property name="text">
<string>file size</string>
</property>
</column>
<column>
<property name="text">
<string>file code</string>
</property>
</column>
<column>
<property name="text">
<string>convert code</string>
</property>
</column>
<column>
<property name="text">
<string>convert result</string>
</property>
</column>
</widget>
</item>
<item>
<widget class="QTextBrowser" name="logTextBrowser"/>
</item>
</layout>
</item>
<item>
<widget class="QGroupBox" name="groupBox_2">
<property name="title">
<string>convert options</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<property name="leftMargin">
<number>3</number>
</property>
<property name="topMargin">
<number>3</number>
</property>
<property name="rightMargin">
<number>2</number>
</property>
<property name="bottomMargin">
<number>2</number>
</property>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>convert to code</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="codeToComboBox">
<property name="minimumSize">
<size>
<width>200</width>
<height>0</height>
</size>
</property>
<item>
<property name="text">
<string>UTF8</string>
</property>
</item>
<item>
<property name="text">
<string>UTF8 BOM</string>
</property>
</item>
<item>
<property name="text">
<string>UTF16-LE</string>
</property>
</item>
<item>
<property name="text">
<string>UTF16-BE</string>
</property>
</item>
<item>
<property name="text">
<string>GBK</string>
</property>
</item>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLabel" name="label_2">
<property name="text">
<string>deal file ext</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="extComboBox">
<property name="minimumSize">
<size>
<width>150</width>
<height>0</height>
</size>
</property>
<item>
<property name="text">
<string>all support file ext</string>
</property>
</item>
</widget>
</item>
<item>
<widget class="QToolButton" name="toolButton">
<property name="toolTip">
<string>user defined</string>
</property>
<property name="text">
<string>defined</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<spacer name="horizontalSpacer">
<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="startBt">
<property name="text">
<string>start</string>
</property>
<property name="autoDefault">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="closeBt">
<property name="text">
<string>close</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>
</widget>
<layoutdefault spacing="6" margin="11"/>

File diff suppressed because it is too large Load Diff

View File

@ -18,6 +18,7 @@ LangExtSet::LangExtSet(QWidget *parent)
ui.setupUi(this);
ui.langTableWidget->horizontalHeader()->setSectionResizeMode(1, QHeaderView::ResizeToContents);
ui.langTableWidget->horizontalHeader()->setSectionResizeMode(QHeaderView::Stretch);
initLangName();
connect(ui.langTableWidget, &QTableWidget::itemChanged, this, &LangExtSet::slot_itemChanged);
@ -225,4 +226,4 @@ void LangExtSet::closeEvent(QCloseEvent* e)
slot_save();
}
}
}
}

View File

@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>809</width>
<width>415</width>
<height>504</height>
</rect>
</property>
@ -14,42 +14,45 @@
<string>LangExtSet</string>
</property>
<widget class="QWidget" name="centralWidget">
<layout class="QVBoxLayout" name="verticalLayout" stretch="0,0,0">
<property name="spacing">
<number>3</number>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<property name="leftMargin">
<number>3</number>
</property>
<property name="rightMargin">
<property name="topMargin">
<number>3</number>
</property>
<property name="rightMargin">
<number>2</number>
</property>
<property name="bottomMargin">
<number>3</number>
<number>2</number>
</property>
<item>
<widget class="QTableWidget" name="langTableWidget">
<column>
<property name="text">
<string>Language</string>
</property>
</column>
<column>
<property name="text">
<string>File Suffix</string>
</property>
</column>
</widget>
</item>
<item>
<widget class="QPlainTextEdit" name="plainTextEdit">
<property name="maximumSize">
<size>
<width>16777215</width>
<height>100</height>
</size>
</property>
</widget>
<layout class="QVBoxLayout" name="verticalLayout" stretch="3,1">
<item>
<widget class="QTableWidget" name="langTableWidget">
<property name="selectionMode">
<enum>QAbstractItemView::SingleSelection</enum>
</property>
<attribute name="horizontalHeaderStretchLastSection">
<bool>false</bool>
</attribute>
<column>
<property name="text">
<string>Language</string>
</property>
</column>
<column>
<property name="text">
<string>File Suffix</string>
</property>
</column>
</widget>
</item>
<item>
<widget class="QPlainTextEdit" name="plainTextEdit"/>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
@ -97,14 +100,6 @@
</item>
</layout>
</widget>
<widget class="QToolBar" name="mainToolBar">
<attribute name="toolBarArea">
<enum>TopToolBarArea</enum>
</attribute>
<attribute name="toolBarBreak">
<bool>false</bool>
</attribute>
</widget>
<widget class="QStatusBar" name="statusBar"/>
</widget>
<layoutdefault spacing="6" margin="11"/>

View File

@ -38,7 +38,7 @@
<property name="title">
<string>Setting</string>
</property>
<layout class="QGridLayout" name="gridLayout_3">
<layout class="QVBoxLayout" name="verticalLayout">
<property name="leftMargin">
<number>3</number>
</property>
@ -46,41 +46,41 @@
<number>3</number>
</property>
<property name="rightMargin">
<number>3</number>
<number>2</number>
</property>
<property name="bottomMargin">
<number>3</number>
<number>2</number>
</property>
<property name="horizontalSpacing">
<number>3</number>
</property>
<property name="verticalSpacing">
<number>6</number>
</property>
<item row="0" column="0">
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<item>
<layout class="QGridLayout" name="gridLayout_3">
<item row="0" column="0" colspan="3">
<widget class="QLabel" name="label">
<property name="text">
<string>Definition Language</string>
</property>
</widget>
</item>
<item>
<item row="0" column="3">
<widget class="QComboBox" name="curDefineLangCb"/>
</item>
</layout>
</item>
<item row="2" column="0">
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<widget class="QLabel" name="label_3">
<property name="text">
<string>Mother Language</string>
<item row="1" column="3">
<widget class="QLineEdit" name="extNameLe">
<property name="maxLength">
<number>256</number>
</property>
<property name="placeholderText">
<string>js cs (split with space</string>
</property>
</widget>
</item>
<item>
<item row="1" column="0" colspan="3">
<widget class="QLabel" name="label_2">
<property name="text">
<string>Expand File Name:</string>
</property>
</widget>
</item>
<item row="2" column="3">
<widget class="QComboBox" name="motherLangCb">
<item>
<property name="text">
@ -94,32 +94,52 @@
</item>
</widget>
</item>
<item row="2" column="0" colspan="3">
<widget class="QLabel" name="label_3">
<property name="text">
<string>Mother Language</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="5" column="0">
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>17</width>
<height>382</height>
</size>
</property>
</spacer>
</item>
<item>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="1">
<item row="0" column="1" rowspan="2">
<widget class="QPushButton" name="delBt">
<property name="text">
<string>Delete</string>
</property>
</widget>
</item>
<item row="0" column="0">
<item row="0" column="0" rowspan="2">
<widget class="QPushButton" name="newBt">
<property name="text">
<string>New Create</string>
</property>
</widget>
</item>
<item row="3" column="0">
<item row="2" column="0" rowspan="2">
<widget class="QPushButton" name="saveBt">
<property name="text">
<string>Save</string>
</property>
</widget>
</item>
<item row="3" column="1">
<item row="2" column="1" rowspan="2">
<widget class="QPushButton" name="saveAsBt">
<property name="text">
<string>Close</string>
@ -128,40 +148,6 @@
</item>
</layout>
</item>
<item row="1" column="0">
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QLabel" name="label_2">
<property name="text">
<string>Expand File Name:</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="extNameLe">
<property name="maxLength">
<number>256</number>
</property>
<property name="placeholderText">
<string>js cs (split with space</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="3" column="0">
<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>
</widget>
</item>
@ -197,24 +183,6 @@
</item>
</layout>
</widget>
<widget class="QMenuBar" name="menuBar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>843</width>
<height>23</height>
</rect>
</property>
</widget>
<widget class="QToolBar" name="mainToolBar">
<attribute name="toolBarArea">
<enum>TopToolBarArea</enum>
</attribute>
<attribute name="toolBarBreak">
<bool>false</bool>
</attribute>
</widget>
<widget class="QStatusBar" name="statusBar"/>
</widget>
<layoutdefault spacing="6" margin="11"/>

View File

@ -140,6 +140,19 @@
</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>

View File

@ -99,24 +99,6 @@
</item>
</layout>
</widget>
<widget class="QMenuBar" name="menuBar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>974</width>
<height>23</height>
</rect>
</property>
</widget>
<widget class="QToolBar" name="mainToolBar">
<attribute name="toolBarArea">
<enum>TopToolBarArea</enum>
</attribute>
<attribute name="toolBarBreak">
<bool>false</bool>
</attribute>
</widget>
<widget class="QStatusBar" name="statusBar"/>
</widget>
<layoutdefault spacing="6" margin="11"/>

View File

@ -19,6 +19,18 @@
</property>
<widget class="QWidget" name="centralWidget">
<layout class="QVBoxLayout" name="verticalLayout_13">
<property name="leftMargin">
<number>3</number>
</property>
<property name="topMargin">
<number>3</number>
</property>
<property name="rightMargin">
<number>2</number>
</property>
<property name="bottomMargin">
<number>2</number>
</property>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_8">
<item>
@ -264,6 +276,18 @@
<string>Color</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_6">
<property name="leftMargin">
<number>3</number>
</property>
<property name="topMargin">
<number>3</number>
</property>
<property name="rightMargin">
<number>2</number>
</property>
<property name="bottomMargin">
<number>2</number>
</property>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_6">
<item>
@ -480,9 +504,15 @@
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>3</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>2</number>
</property>
<item>
<widget class="QPlainTextEdit" name="keywordTe">
<property name="readOnly">
@ -491,7 +521,7 @@
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<layout class="QHBoxLayout" name="horizontalLayout" stretch="1,1">
<item>
<widget class="QLabel" name="label_6">
<property name="text">
@ -519,7 +549,7 @@
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_5">
<layout class="QHBoxLayout" name="horizontalLayout_5" stretch="1,1">
<item>
<widget class="QLabel" name="label_9">
<property name="text">
@ -632,24 +662,6 @@
</item>
</layout>
</widget>
<widget class="QMenuBar" name="menuBar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1029</width>
<height>23</height>
</rect>
</property>
</widget>
<widget class="QToolBar" name="mainToolBar">
<attribute name="toolBarArea">
<enum>TopToolBarArea</enum>
</attribute>
<attribute name="toolBarBreak">
<bool>false</bool>
</attribute>
</widget>
<widget class="QStatusBar" name="statusBar"/>
</widget>
<layoutdefault spacing="6" margin="11"/>

View File

@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>459</width>
<height>137</height>
<height>125</height>
</rect>
</property>
<property name="windowTitle">
@ -42,6 +42,19 @@
</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>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>

View File

@ -43,12 +43,15 @@ ShortcutKeyMgr::ShortcutKeyMgr(QWidget *parent)
connect(ui.tableWidget, &QTableWidget::itemDoubleClicked, this, &ShortcutKeyMgr::slot_edit);
ui.tableWidget->horizontalHeader()->setSectionResizeMode(0, QHeaderView::ResizeToContents);
ui.tableWidget->horizontalHeader()->setSectionResizeMode(1, QHeaderView::ResizeToContents);
ui.tableWidget->horizontalHeader()->setSectionResizeMode(2, QHeaderView::ResizeToContents);
ui.qscintTableWidget->horizontalHeader()->setSectionResizeMode(0, QHeaderView::ResizeToContents);
ui.qscintTableWidget->horizontalHeader()->setSectionResizeMode(1, QHeaderView::ResizeToContents);
ui.qscintTableWidget->horizontalHeader()->setSectionResizeMode(2, QHeaderView::ResizeToContents);
// ui.tableWidget->horizontalHeader()->setSectionResizeMode(0, QHeaderView::ResizeToContents);
// ui.tableWidget->horizontalHeader()->setSectionResizeMode(1, QHeaderView::ResizeToContents);
// ui.tableWidget->horizontalHeader()->setSectionResizeMode(2, QHeaderView::ResizeToContents);
// ui.qscintTableWidget->horizontalHeader()->setSectionResizeMode(0, QHeaderView::ResizeToContents);
// ui.qscintTableWidget->horizontalHeader()->setSectionResizeMode(1, QHeaderView::ResizeToContents);
// ui.qscintTableWidget->horizontalHeader()->setSectionResizeMode(2, QHeaderView::ResizeToContents);
ui.tableWidget->horizontalHeader()->setSectionResizeMode(QHeaderView::Stretch);
ui.qscintTableWidget->horizontalHeader()->setSectionResizeMode(QHeaderView::Stretch);
QString tabQss = "QHeaderView::section{"

View File

@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>766</width>
<width>476</width>
<height>508</height>
</rect>
</property>
@ -57,6 +57,9 @@
<property name="editTriggers">
<set>QAbstractItemView::NoEditTriggers</set>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::SingleSelection</enum>
</property>
<attribute name="verticalHeaderShowSortIndicator" stdset="0">
<bool>false</bool>
</attribute>
@ -101,6 +104,9 @@
<property name="editTriggers">
<set>QAbstractItemView::NoEditTriggers</set>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::SingleSelection</enum>
</property>
<column>
<property name="text">
<string>Function</string>
@ -171,14 +177,6 @@
</item>
</layout>
</widget>
<widget class="QToolBar" name="mainToolBar">
<attribute name="toolBarArea">
<enum>TopToolBarArea</enum>
</attribute>
<attribute name="toolBarBreak">
<bool>false</bool>
</attribute>
</widget>
<widget class="QStatusBar" name="statusBar"/>
</widget>
<layoutdefault spacing="6" margin="11"/>