This commit is contained in:
寂静的羽夏 2022-08-23 16:15:50 +08:00
parent af5164ab4d
commit b5b0a78b2e
4 changed files with 8 additions and 182 deletions

Binary file not shown.

View File

@ -42,7 +42,7 @@
<message>
<location filename="settingdialog.cpp" line="42"/>
<source>dynamic_symbol_table color</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<source>dynamic_symbol_table</source>

View File

@ -1,181 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>SettingDialog</class>
<widget class="QDialog" name="SettingDialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>474</width>
<height>499</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="windowTitle">
<string>SettingDialog</string>
</property>
<widget class="QWidget" name="layoutWidget">
<property name="geometry">
<rect>
<x>10</x>
<y>0</y>
<width>461</width>
<height>491</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="sizeConstraint">
<enum>QLayout::SetDefaultConstraint</enum>
</property>
<property name="leftMargin">
<number>10</number>
</property>
<property name="topMargin">
<number>10</number>
</property>
<property name="rightMargin">
<number>10</number>
</property>
<property name="bottomMargin">
<number>10</number>
</property>
<item>
<widget class="QLabel" name="lblfg">
<property name="text">
<string>elf_header color</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="btn_elf_header">
<property name="text">
<string>ChooseColor</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="lblfg_2">
<property name="text">
<string>program_table color</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="btn_program_table">
<property name="text">
<string>ChooseColor</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="lblfg_3">
<property name="text">
<string>section_header_table color</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="btn_section_header">
<property name="text">
<string>ChooseColor</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="lblfg_4">
<property name="text">
<string>symbol_table color</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="btn_symbol">
<property name="text">
<string>ChooseColor</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="lblfg_5">
<property name="text">
<string>dynamic_symbol_table</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="btn_dysymbol">
<property name="text">
<string>ChooseColor</string>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Minimum</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>SettingDialog</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel">
<x>266</x>
<y>451</y>
</hint>
<hint type="destinationlabel">
<x>286</x>
<y>274</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>SettingDialog</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>198</x>
<y>451</y>
</hint>
<hint type="destinationlabel">
<x>157</x>
<y>274</y>
</hint>
</hints>
</connection>
</connections>
</ui>

View File

@ -40,6 +40,13 @@ QString WingElfPlugin::pluginComment() { return tr("A Marker plugin for Elf"); }
bool WingElfPlugin::init(QList<WingPluginInfo> loadedplugin) {
Q_UNUSED(loadedplugin);
if (SDKVERSION < 8) {
QMessageBox::critical(nullptr, "Error",
"UnSupported Plugin System Version!",
QMessageBox::Ok);
return false;
}
auto s = GETPLUGINQM("WingElfParser.qm");
if (!translator.load(s) || !QApplication::installTranslator(&translator)) {
QMessageBox::critical(nullptr, "Error", "Error Loading Translation File!",