mirror of https://github.com/AxioDL/metaforce.git
Merge branch 'master' of ssh://git.axiodl.com:6431/AxioDL/hecl-gui
This commit is contained in:
commit
28221d6d33
|
@ -18,7 +18,7 @@ class ArgumentEditor : public QDialog {
|
||||||
QStringListModel m_model;
|
QStringListModel m_model;
|
||||||
public:
|
public:
|
||||||
explicit ArgumentEditor(QWidget* parent = nullptr);
|
explicit ArgumentEditor(QWidget* parent = nullptr);
|
||||||
virtual ~ArgumentEditor();
|
~ArgumentEditor() override;
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void on_addButton_clicked();
|
void on_addButton_clicked();
|
||||||
|
|
|
@ -43,9 +43,11 @@ class MainWindow : public QMainWindow {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit MainWindow(QWidget* parent = nullptr);
|
explicit MainWindow(QWidget* parent = nullptr);
|
||||||
~MainWindow();
|
~MainWindow() override;
|
||||||
|
|
||||||
void setTextTermFormatting(const QString& text);
|
void setTextTermFormatting(const QString& text);
|
||||||
void insertContinueNote(const QString& text);
|
void insertContinueNote(const QString& text);
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void onExtract();
|
void onExtract();
|
||||||
void onExtractFinished(int exitCode, QProcess::ExitStatus);
|
void onExtractFinished(int exitCode, QProcess::ExitStatus);
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>684</width>
|
<width>684</width>
|
||||||
<height>695</height>
|
<height>792</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
|
@ -205,7 +205,7 @@
|
||||||
<item row="1" column="0" colspan="6">
|
<item row="1" column="0" colspan="6">
|
||||||
<widget class="QTabWidget" name="heclTabs">
|
<widget class="QTabWidget" name="heclTabs">
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>1</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="dataTab">
|
<widget class="QWidget" name="dataTab">
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
|
@ -213,7 +213,7 @@
|
||||||
</attribute>
|
</attribute>
|
||||||
<layout class="QGridLayout" name="gridLayout_4">
|
<layout class="QGridLayout" name="gridLayout_4">
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QTextEdit" name="processOutput">
|
<widget class="QPlainTextEdit" name="processOutput">
|
||||||
<property name="palette">
|
<property name="palette">
|
||||||
<palette>
|
<palette>
|
||||||
<active>
|
<active>
|
||||||
|
@ -326,13 +326,13 @@
|
||||||
<string>System Check</string>
|
<string>System Check</string>
|
||||||
</attribute>
|
</attribute>
|
||||||
<layout class="QGridLayout" name="gridLayout_2">
|
<layout class="QGridLayout" name="gridLayout_2">
|
||||||
<item row="4" column="1">
|
<item row="8" column="1">
|
||||||
<widget class="QProgressBar" name="downloadProgressBar">
|
<widget class="QLabel" name="devTrackWarning">
|
||||||
<property name="enabled">
|
<property name="text">
|
||||||
<bool>false</bool>
|
<string><html><head/><body><p><span style=" color:#ff0000;">Development Track selected!<br/>Development builds are considered unstable and may cause crashes. </span></p></body></html></string>
|
||||||
</property>
|
</property>
|
||||||
<property name="value">
|
<property name="wordWrap">
|
||||||
<number>0</number>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
@ -399,6 +399,88 @@
|
||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="0" column="1">
|
||||||
|
<widget class="SysReqTableView" name="sysReqTable">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>500</width>
|
||||||
|
<height>300</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="palette">
|
||||||
|
<palette>
|
||||||
|
<active>
|
||||||
|
<colorrole role="Base">
|
||||||
|
<brush brushstyle="SolidPattern">
|
||||||
|
<color alpha="0">
|
||||||
|
<red>0</red>
|
||||||
|
<green>0</green>
|
||||||
|
<blue>0</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
</active>
|
||||||
|
<inactive>
|
||||||
|
<colorrole role="Base">
|
||||||
|
<brush brushstyle="SolidPattern">
|
||||||
|
<color alpha="0">
|
||||||
|
<red>0</red>
|
||||||
|
<green>0</green>
|
||||||
|
<blue>0</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
</inactive>
|
||||||
|
<disabled>
|
||||||
|
<colorrole role="Base">
|
||||||
|
<brush brushstyle="SolidPattern">
|
||||||
|
<color alpha="255">
|
||||||
|
<red>68</red>
|
||||||
|
<green>68</green>
|
||||||
|
<blue>68</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
</disabled>
|
||||||
|
</palette>
|
||||||
|
</property>
|
||||||
|
<property name="selectionMode">
|
||||||
|
<enum>QAbstractItemView::NoSelection</enum>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="4" column="1">
|
||||||
|
<widget class="QProgressBar" name="downloadProgressBar">
|
||||||
|
<property name="enabled">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="value">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="2">
|
||||||
|
<spacer name="horizontalSpacer_4">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeType">
|
||||||
|
<enum>QSizePolicy::Expanding</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>40</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
<item row="2" column="1">
|
<item row="2" column="1">
|
||||||
<layout class="QFormLayout" name="formLayout">
|
<layout class="QFormLayout" name="formLayout">
|
||||||
<property name="horizontalSpacing">
|
<property name="horizontalSpacing">
|
||||||
|
@ -461,91 +543,6 @@
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="7" column="1">
|
|
||||||
<spacer name="verticalSpacer">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Vertical</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>0</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="2">
|
|
||||||
<spacer name="horizontalSpacer_4">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeType">
|
|
||||||
<enum>QSizePolicy::Expanding</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>40</width>
|
|
||||||
<height>20</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="1">
|
|
||||||
<widget class="SysReqTableView" name="sysReqTable">
|
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>500</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="palette">
|
|
||||||
<palette>
|
|
||||||
<active>
|
|
||||||
<colorrole role="Base">
|
|
||||||
<brush brushstyle="SolidPattern">
|
|
||||||
<color alpha="0">
|
|
||||||
<red>0</red>
|
|
||||||
<green>0</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
</active>
|
|
||||||
<inactive>
|
|
||||||
<colorrole role="Base">
|
|
||||||
<brush brushstyle="SolidPattern">
|
|
||||||
<color alpha="0">
|
|
||||||
<red>0</red>
|
|
||||||
<green>0</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
</inactive>
|
|
||||||
<disabled>
|
|
||||||
<colorrole role="Base">
|
|
||||||
<brush brushstyle="SolidPattern">
|
|
||||||
<color alpha="255">
|
|
||||||
<red>68</red>
|
|
||||||
<green>68</green>
|
|
||||||
<blue>68</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
</disabled>
|
|
||||||
</palette>
|
|
||||||
</property>
|
|
||||||
<property name="selectionMode">
|
|
||||||
<enum>QAbstractItemView::NoSelection</enum>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="1">
|
<item row="3" column="1">
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
||||||
<item>
|
<item>
|
||||||
|
@ -628,15 +625,18 @@
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="8" column="1">
|
<item row="7" column="1">
|
||||||
<widget class="QLabel" name="devTrackWarning">
|
<spacer name="verticalSpacer">
|
||||||
<property name="text">
|
<property name="orientation">
|
||||||
<string><html><head/><body><p><span style=" color:#ff0000;">Development Track selected!<br/>Development builds are considered unstable and may cause crashes. </span></p></body></html></string>
|
<enum>Qt::Vertical</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="wordWrap">
|
<property name="sizeHint" stdset="0">
|
||||||
<bool>true</bool>
|
<size>
|
||||||
|
<width>0</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
|
|
|
@ -27,10 +27,10 @@ class SysReqTableModel : public QAbstractTableModel {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
SysReqTableModel(QObject* parent = Q_NULLPTR);
|
SysReqTableModel(QObject* parent = Q_NULLPTR);
|
||||||
int rowCount(const QModelIndex& parent = QModelIndex()) const;
|
int rowCount(const QModelIndex& parent = QModelIndex()) const override;
|
||||||
int columnCount(const QModelIndex& parent = QModelIndex()) const;
|
int columnCount(const QModelIndex& parent = QModelIndex()) const override;
|
||||||
QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const;
|
QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override;
|
||||||
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
|
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override;
|
||||||
bool isBlenderVersionOk() const { return m_blendMajor > 2 || (m_blendMajor == 2 && m_blendMinor >= 80); }
|
bool isBlenderVersionOk() const { return m_blendMajor > 2 || (m_blendMajor == 2 && m_blendMinor >= 80); }
|
||||||
void updateFreeDiskSpace(const QString& path);
|
void updateFreeDiskSpace(const QString& path);
|
||||||
};
|
};
|
||||||
|
@ -43,7 +43,7 @@ class SysReqTableView : public QTableView {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
SysReqTableView(QWidget* parent = Q_NULLPTR);
|
SysReqTableView(QWidget* parent = Q_NULLPTR);
|
||||||
void paintEvent(QPaintEvent* e) Q_DECL_OVERRIDE;
|
void paintEvent(QPaintEvent* e) override;
|
||||||
const SysReqTableModel& getModel() const { return m_model; }
|
const SysReqTableModel& getModel() const { return m_model; }
|
||||||
const VectorISATableView& getVectorISATable() const { return m_vectorISATable; }
|
const VectorISATableView& getVectorISATable() const { return m_vectorISATable; }
|
||||||
bool willRun(const URDEVersion& v) const {
|
bool willRun(const URDEVersion& v) const {
|
||||||
|
|
|
@ -10,5 +10,5 @@ protected:
|
||||||
|
|
||||||
public:
|
public:
|
||||||
VectorISATableModel(QObject* parent = Q_NULLPTR) : QAbstractTableModel(parent) {}
|
VectorISATableModel(QObject* parent = Q_NULLPTR) : QAbstractTableModel(parent) {}
|
||||||
int rowCount(const QModelIndex& parent = QModelIndex()) const { return 1; }
|
int rowCount(const QModelIndex& parent = QModelIndex()) const override { return 1; }
|
||||||
};
|
};
|
||||||
|
|
|
@ -7,9 +7,9 @@ class VectorISATableModelIntel : public VectorISATableModel {
|
||||||
public:
|
public:
|
||||||
VectorISATableModelIntel(QObject* parent = Q_NULLPTR) : VectorISATableModel(parent) {}
|
VectorISATableModelIntel(QObject* parent = Q_NULLPTR) : VectorISATableModel(parent) {}
|
||||||
|
|
||||||
int columnCount(const QModelIndex& parent = QModelIndex()) const { return 7; }
|
int columnCount(const QModelIndex& parent = QModelIndex()) const override { return 7; }
|
||||||
|
|
||||||
QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const {
|
QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override {
|
||||||
if (role != Qt::DisplayRole && role != Qt::UserRole)
|
if (role != Qt::DisplayRole && role != Qt::UserRole)
|
||||||
return {};
|
return {};
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ class VectorISATableView : public QTableView {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
VectorISATableView(QWidget* parent = Q_NULLPTR);
|
VectorISATableView(QWidget* parent = Q_NULLPTR);
|
||||||
void paintEvent(QPaintEvent* e) Q_DECL_OVERRIDE;
|
void paintEvent(QPaintEvent* e) override;
|
||||||
VectorISA getISA() const { return m_model.getISA(m_maxISA); }
|
VectorISA getISA() const { return m_model.getISA(m_maxISA); }
|
||||||
bool willRun(VectorISA visa) const { return m_model.willRun(visa); }
|
bool willRun(VectorISA visa) const { return m_model.willRun(visa); }
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue