Some checks are pending
Build eismuliplexer for linux / Build (push) Waiting to run
53 lines
No EOL
1.2 KiB
C++
53 lines
No EOL
1.2 KiB
C++
/*
|
|
* Copyright Carl Philipp Klemm 2026
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
*/
|
|
|
|
#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 getQwen3ModelPath() const;
|
|
QString getTextEncoderModelPath() const;
|
|
QString getDiTModelPath() const;
|
|
QString getVAEModelPath() const;
|
|
bool getLowVramMode() const;
|
|
bool getFlashAttention() const;
|
|
|
|
// Setters for settings
|
|
void setJsonTemplate(const QString &templateStr);
|
|
void setQwen3ModelPath(const QString &path);
|
|
void setTextEncoderModelPath(const QString &path);
|
|
void setDiTModelPath(const QString &path);
|
|
void setVAEModelPath(const QString &path);
|
|
void setLowVramMode(bool enabled);
|
|
void setFlashAttention(bool enabled);
|
|
|
|
private slots:
|
|
void onQwen3BrowseButtonClicked();
|
|
void onTextEncoderBrowseButtonClicked();
|
|
void onDiTBrowseButtonClicked();
|
|
void onVAEBrowseButtonClicked();
|
|
|
|
private:
|
|
Ui::AdvancedSettingsDialog *ui;
|
|
};
|
|
|
|
#endif // ADVANCEDSETTINGSDIALOG_H
|