2022-07-14 07:08:30 +03:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2022, Filiph Sandström <filiph.sandstrom@filfatstudios.com>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <QDialog>
|
2022-07-14 07:36:11 +03:00
|
|
|
#include <QFormLayout>
|
|
|
|
#include <QLineEdit>
|
2022-07-14 07:08:30 +03:00
|
|
|
#include <QMainWindow>
|
2022-07-14 07:36:11 +03:00
|
|
|
#include <QPushButton>
|
2022-07-14 07:08:30 +03:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
class SettingsDialog : public QDialog {
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit SettingsDialog(QMainWindow* window);
|
|
|
|
|
2022-07-14 07:36:11 +03:00
|
|
|
void save();
|
|
|
|
|
|
|
|
virtual void closeEvent(QCloseEvent*) override;
|
|
|
|
|
2022-07-14 07:08:30 +03:00
|
|
|
private:
|
2022-07-14 07:36:11 +03:00
|
|
|
QFormLayout* m_layout;
|
|
|
|
QPushButton* m_ok_button { nullptr };
|
2023-01-21 02:30:05 +03:00
|
|
|
QLineEdit* m_new_tab_page { nullptr };
|
2022-07-14 07:08:30 +03:00
|
|
|
QMainWindow* m_window { nullptr };
|
|
|
|
};
|