remove init wizard

This commit is contained in:
Roy Qu 2021-12-17 10:10:04 +08:00
parent 959cdab6cb
commit 8a4842efb4
9 changed files with 10 additions and 220 deletions

View File

@ -126,8 +126,6 @@ SOURCES += \
widgets/filepropertiesdialog.cpp \
widgets/functiontooltipwidget.cpp \
widgets/headercompletionpopup.cpp \
widgets/initwizard/initchooselanguagewidget.cpp \
widgets/initwizard/initwizarddialog.cpp \
widgets/issuestable.cpp \
widgets/labelwithmenu.cpp \
widgets/macroinfomodel.cpp \
@ -254,8 +252,6 @@ HEADERS += \
widgets/filepropertiesdialog.h \
widgets/functiontooltipwidget.h \
widgets/headercompletionpopup.h \
widgets/initwizard/initchooselanguagewidget.h \
widgets/initwizard/initwizarddialog.h \
widgets/issuestable.h \
widgets/labelwithmenu.h \
widgets/macroinfomodel.h \
@ -309,8 +305,6 @@ FORMS += \
settingsdialog/settingsdialog.ui \
widgets/custommakefileinfodialog.ui \
widgets/filepropertiesdialog.ui \
widgets/initwizard/initchooselanguagewidget.ui \
widgets/initwizard/initwizarddialog.ui \
widgets/newprojectdialog.ui \
widgets/ojproblempropertywidget.ui \
widgets/searchdialog.ui \

View File

@ -37,6 +37,7 @@
#include <QDebug>
#include <QMessageBox>
#include <QModelIndex>
#include <QDesktopWidget>
SettingsDialog::SettingsDialog(QWidget *parent) :
QDialog(parent),
@ -51,7 +52,10 @@ SettingsDialog::SettingsDialog(QWidget *parent) :
ui->btnApply->setEnabled(false);
mAppShouldQuit = false;
QSize size;
size.setWidth(width()*qApp->desktop()->width()/1920);
size.setHeight(height()*qApp->desktop()->height()/1080);
setBaseSize(size);
}
SettingsDialog::~SettingsDialog()

View File

@ -1,3 +1,4 @@
#include <QDesktopWidget>
#include "cpudialog.h"
#include "ui_cpudialog.h"
#include "../HighlighterManager.h"
@ -39,12 +40,10 @@ CPUDialog::CPUDialog(QWidget *parent) :
ui->rdIntel->setChecked(pSettings->debugger().useIntelStyle());
ui->chkBlendMode->setChecked(pSettings->debugger().blendMode());
// RadioATT.Checked := devData.UseATTSyntax;
// RadioIntel.Checked := not devData.UseATTSyntax;
// fRegisters := TList.Create;
// fAssembler := TStringList.Create;
//updateInfo();
QSize size;
size.setWidth(width()*qApp->desktop()->width()/1920);
size.setHeight(height()*qApp->desktop()->height()/1080);
setBaseSize(size);
}
CPUDialog::~CPUDialog()

View File

@ -1,14 +0,0 @@
#include "initchooselanguagewidget.h"
#include "ui_initchooselanguagewidget.h"
InitChooseLanguageWidget::InitChooseLanguageWidget(QWidget *parent) :
QDialog(parent),
ui(new Ui::InitChooseLanguageWidget)
{
ui->setupUi(this);
}
InitChooseLanguageWidget::~InitChooseLanguageWidget()
{
delete ui;
}

View File

@ -1,22 +0,0 @@
#ifndef INITCHOOSELANGUAGEWIDGET_H
#define INITCHOOSELANGUAGEWIDGET_H
#include <QDialog>
namespace Ui {
class InitChooseLanguageWidget;
}
class InitChooseLanguageWidget : public QDialog
{
Q_OBJECT
public:
explicit InitChooseLanguageWidget(QWidget *parent = nullptr);
~InitChooseLanguageWidget();
private:
Ui::InitChooseLanguageWidget *ui;
};
#endif // INITCHOOSELANGUAGEWIDGET_H

View File

@ -1,18 +0,0 @@
<ui version="4.0">
<class>InitChooseLanguageWidget</class>
<widget name="InitChooseLanguageWidget" class="QDialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle">
<string>Dialog</string>
</property>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -1,14 +0,0 @@
#include "initwizarddialog.h"
#include "ui_initwizarddialog.h"
InitWizardDialog::InitWizardDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::InitWizardDialog)
{
ui->setupUi(this);
}
InitWizardDialog::~InitWizardDialog()
{
delete ui;
}

View File

@ -1,22 +0,0 @@
#ifndef INITWIZARDDIALOG_H
#define INITWIZARDDIALOG_H
#include <QDialog>
namespace Ui {
class InitWizardDialog;
}
class InitWizardDialog : public QDialog
{
Q_OBJECT
public:
explicit InitWizardDialog(QWidget *parent = nullptr);
~InitWizardDialog();
private:
Ui::InitWizardDialog *ui;
};
#endif // INITWIZARDDIALOG_H

View File

@ -1,117 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>InitWizardDialog</class>
<widget class="QDialog" name="InitWizardDialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>605</width>
<height>416</height>
</rect>
</property>
<property name="windowTitle">
<string>Dialog</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="spacing">
<number>9</number>
</property>
<property name="leftMargin">
<number>9</number>
</property>
<property name="topMargin">
<number>9</number>
</property>
<property name="rightMargin">
<number>9</number>
</property>
<property name="bottomMargin">
<number>9</number>
</property>
<item>
<widget class="QSplitter" name="splitter">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<widget class="QListView" name="listView">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>1</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
<widget class="QWidget" name="widget" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>3</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</widget>
</item>
<item>
<widget class="QWidget" name="widget_2" native="true">
<layout class="QHBoxLayout" name="horizontalLayout">
<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>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>221</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="pushButton">
<property name="text">
<string>Previous</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton_2">
<property name="text">
<string>Next</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton_3">
<property name="text">
<string>Finish</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>