refactor AdvancedSettingsDialog into own file and class
This commit is contained in:
parent
82182425e6
commit
31315f433b
10 changed files with 1278 additions and 132 deletions
46
AdvancedSettingsDialog.h
Normal file
46
AdvancedSettingsDialog.h
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
#ifndef ADVANCEDSETTINGSDIALOG_H
|
||||
#define ADVANCEDSETTINGSDIALOG_H
|
||||
|
||||
#include <QDialog>
|
||||
#include <QString>
|
||||
|
||||
namespace Ui {
|
||||
class AdvancedSettingsDialog;
|
||||
}
|
||||
|
||||
class AdvancedSettingsDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit AdvancedSettingsDialog(QWidget *parent = nullptr);
|
||||
~AdvancedSettingsDialog();
|
||||
|
||||
// Getters for settings
|
||||
QString getJsonTemplate() const;
|
||||
QString getAceStepPath() const;
|
||||
QString getQwen3ModelPath() const;
|
||||
QString getTextEncoderModelPath() const;
|
||||
QString getDiTModelPath() const;
|
||||
QString getVAEModelPath() const;
|
||||
|
||||
// Setters for settings
|
||||
void setJsonTemplate(const QString &templateStr);
|
||||
void setAceStepPath(const QString &path);
|
||||
void setQwen3ModelPath(const QString &path);
|
||||
void setTextEncoderModelPath(const QString &path);
|
||||
void setDiTModelPath(const QString &path);
|
||||
void setVAEModelPath(const QString &path);
|
||||
|
||||
private slots:
|
||||
void on_aceStepBrowseButton_clicked();
|
||||
void on_qwen3BrowseButton_clicked();
|
||||
void on_textEncoderBrowseButton_clicked();
|
||||
void on_ditBrowseButton_clicked();
|
||||
void on_vaeBrowseButton_clicked();
|
||||
|
||||
private:
|
||||
Ui::AdvancedSettingsDialog *ui;
|
||||
};
|
||||
|
||||
#endif // ADVANCEDSETTINGSDIALOG_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue