You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
80 lines
1.2 KiB
C
80 lines
1.2 KiB
C
4 years ago
|
/*
|
||
|
SPDX-FileCopyrightText: 2021 Michail Vourlakos <mvourlakos@gmail.com>
|
||
|
SPDX-License-Identifier: GPL-2.0-or-later
|
||
|
*/
|
||
|
|
||
|
#ifndef SCREENSDIALOG_H
|
||
|
#define SCREENSDIALOG_H
|
||
|
|
||
|
// local
|
||
|
#include "../generic/genericdialog.h"
|
||
|
#include "../settingsdialog/settingsdialog.h"
|
||
|
|
||
|
// Qt
|
||
|
#include <QDialog>
|
||
|
#include <QObject>
|
||
|
#include <QPushButton>
|
||
|
#include <QWindow>
|
||
|
|
||
|
namespace Ui {
|
||
|
class ScreensDialog;
|
||
|
}
|
||
|
|
||
|
namespace Latte {
|
||
|
namespace Settings {
|
||
|
//namespace Handler {
|
||
|
//class ScreensHandler;
|
||
|
//}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
namespace Latte {
|
||
|
namespace Settings {
|
||
|
namespace Dialog {
|
||
|
|
||
|
class ScreensDialog : public GenericDialog
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
ScreensDialog(SettingsDialog *parent);
|
||
|
~ScreensDialog();
|
||
|
|
||
|
Ui::ScreensDialog *ui() const;
|
||
|
Latte::Corona *corona() const;
|
||
|
|
||
|
QPushButton *removeNowButton() const;
|
||
|
|
||
|
protected:
|
||
|
void accept() override;
|
||
|
|
||
|
private slots:
|
||
|
void onCancel();
|
||
|
void onDataChanged();
|
||
|
void onReset();
|
||
|
|
||
|
void initButtons();
|
||
|
void initRemoveNowButton();
|
||
|
void initSignals();
|
||
|
|
||
|
private:
|
||
|
void init();
|
||
|
|
||
|
private:
|
||
|
QPushButton *m_removeNowButton{nullptr};
|
||
|
|
||
|
Latte::Corona *m_corona{nullptr};
|
||
|
|
||
|
Ui::ScreensDialog *m_ui;
|
||
|
Controller::Layouts *m_layoutsController{nullptr};
|
||
|
|
||
|
//Handler::ScreensHandler *m_handler;
|
||
|
};
|
||
|
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
#endif
|