2022-04-08 17:22:24 +08:00
|
|
|
#ifndef NEWPROJECTUNITDIALOG_H
|
|
|
|
#define NEWPROJECTUNITDIALOG_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class NewProjectUnitDialog;
|
|
|
|
}
|
|
|
|
|
|
|
|
class NewProjectUnitDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit NewProjectUnitDialog(QWidget *parent = nullptr);
|
|
|
|
~NewProjectUnitDialog();
|
|
|
|
|
|
|
|
QString folder() const;
|
|
|
|
void setFolder(const QString& folderName);
|
|
|
|
|
|
|
|
QString filename() const;
|
|
|
|
void setFilename(const QString& filename);
|
|
|
|
|
2022-04-08 18:12:40 +08:00
|
|
|
const QString &suffix() const;
|
|
|
|
void setSuffix(const QString &newSuffix);
|
2022-04-08 17:22:24 +08:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
void onUpdateIcons();
|
|
|
|
void on_btnBrowse_clicked();
|
|
|
|
|
|
|
|
void on_btnOk_clicked();
|
|
|
|
|
|
|
|
void on_btnCancel_clicked();
|
|
|
|
|
|
|
|
void on_txtFilename_textChanged(const QString &arg1);
|
|
|
|
void on_txtFolder_textChanged(const QString &arg1);
|
|
|
|
|
|
|
|
private:
|
|
|
|
void updateBtnOkStatus();
|
|
|
|
private:
|
|
|
|
Ui::NewProjectUnitDialog *ui;
|
|
|
|
private:
|
2022-04-08 18:12:40 +08:00
|
|
|
QString mSuffix;
|
2022-04-08 17:22:24 +08:00
|
|
|
|
|
|
|
// QWidget interface
|
|
|
|
protected:
|
|
|
|
void closeEvent(QCloseEvent *event) override;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // NEWPROJECTUNITDIALOG_H
|