Warning, file /plasma/latte-dock/app/settings/actionsdialog/actionsdialog.cpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*
0002     SPDX-FileCopyrightText: 2021 Michail Vourlakos <mvourlakos@gmail.com>
0003     SPDX-License-Identifier: GPL-2.0-or-later
0004 */
0005 
0006 #include "actionsdialog.h"
0007 
0008 // local
0009 #include "ui_actionsdialog.h"
0010 #include "actionshandler.h"
0011 #include "../settingsdialog/tabpreferenceshandler.h"
0012 
0013 // Qt
0014 #include <QDebug>
0015 
0016 namespace Latte {
0017 namespace Settings {
0018 namespace Dialog {
0019 
0020 ActionsDialog::ActionsDialog(QDialog *parent, Handler::TabPreferences *handler)
0021     : GenericDialog(parent),
0022       m_ui(new Ui::ActionsDialog), /*this is necessary, in order to create the ui*/
0023       m_preferencesHandler(handler)
0024 {
0025     setAttribute(Qt::WA_DeleteOnClose, true);
0026     init();
0027 }
0028 
0029 ActionsDialog::~ActionsDialog()
0030 {
0031 }
0032 
0033 Ui::ActionsDialog *ActionsDialog::ui() const
0034 {
0035     return m_ui;
0036 }
0037 
0038 Handler::TabPreferences *ActionsDialog::preferencesHandler() const
0039 {
0040     return m_preferencesHandler;
0041 }
0042 
0043 void ActionsDialog::init()
0044 {
0045     m_ui->setupUi(this);
0046     m_actionsHandler = new Handler::ActionsHandler(this);
0047 }
0048 
0049 void ActionsDialog::accept()
0050 {
0051     qDebug() << Q_FUNC_INFO;
0052     //close();
0053 }
0054 
0055 void ActionsDialog::onCancel()
0056 {
0057     qDebug() << Q_FUNC_INFO;
0058     close();
0059 }
0060 
0061 void ActionsDialog::onReset()
0062 {
0063     qDebug() << Q_FUNC_INFO;
0064     close();
0065 }
0066 
0067 }
0068 }
0069 }