2022-05-10 10:06:48 +00:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
#ifndef MAINWINDOW_H
|
|
|
|
#define MAINWINDOW_H
|
|
|
|
|
|
|
|
#include <QMainWindow>
|
2015-08-27 15:23:55 +00:00
|
|
|
#include <QSharedPointer>
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
class QAction;
|
|
|
|
class QSettings;
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
class LocationDialog;
|
|
|
|
class SettingsTree;
|
|
|
|
|
|
|
|
class MainWindow : public QMainWindow
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2015-08-27 15:23:55 +00:00
|
|
|
typedef QSharedPointer<QSettings> SettingsPtr;
|
|
|
|
|
2019-09-06 18:27:33 +00:00
|
|
|
MainWindow(QWidget *parent = nullptr);
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
void openSettings();
|
|
|
|
void openIniFile();
|
|
|
|
void openPropertyList();
|
|
|
|
void openRegistryPath();
|
|
|
|
void about();
|
|
|
|
|
|
|
|
private:
|
|
|
|
void createActions();
|
2015-08-27 15:23:55 +00:00
|
|
|
void setSettingsObject(const SettingsPtr &settings);
|
2011-04-27 10:05:43 +00:00
|
|
|
|
2019-09-06 18:27:33 +00:00
|
|
|
SettingsTree *settingsTree = nullptr;
|
|
|
|
LocationDialog *locationDialog = nullptr;
|
|
|
|
QAction *refreshAct = nullptr;
|
|
|
|
QAction *autoRefreshAct = nullptr;
|
|
|
|
QAction *fallbacksAct = nullptr;
|
2011-04-27 10:05:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|