2022-01-19 20:46:42 +00:00
|
|
|
#ifndef PAGEGENERAL_H
|
|
|
|
#define PAGEGENERAL_H
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
#include <QScopedPointer>
|
2022-01-21 19:02:50 +00:00
|
|
|
#include <QVariant>
|
2022-02-17 17:26:15 +00:00
|
|
|
#include <QSettings>
|
2022-02-19 18:31:49 +00:00
|
|
|
#include <QFileDialog>
|
2022-01-19 20:46:42 +00:00
|
|
|
|
|
|
|
namespace Ui
|
|
|
|
{
|
|
|
|
class PageGeneral;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @todo write docs
|
|
|
|
*/
|
|
|
|
class PageGeneral : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
PageGeneral(QWidget* parent = nullptr);
|
|
|
|
~PageGeneral();
|
|
|
|
|
2022-01-21 19:02:50 +00:00
|
|
|
signals:
|
|
|
|
void variableModified(const QString& key, const QVariant& value);
|
|
|
|
|
2022-02-19 18:31:49 +00:00
|
|
|
private slots:
|
|
|
|
void onBrowseButtonClicked();
|
|
|
|
void onDialogAccepted();
|
|
|
|
void onDialogDestroyed();
|
|
|
|
|
2022-01-19 20:46:42 +00:00
|
|
|
private:
|
|
|
|
QScopedPointer<Ui::PageGeneral> m_ui;
|
2022-02-19 18:31:49 +00:00
|
|
|
QFileDialog* dialog;
|
2022-01-19 20:46:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // PAGEGENERAL_H
|