/* * Copyright 2020 Michail Vourlakos * * This file is part of Latte-Dock * * Latte-Dock is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * Latte-Dock is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * */ #include "detailshandler.h" // local #include "../data/layoutdata.h" #include "../dialogs/detailsdialog.h" #include "../controllers/layoutscontroller.h" namespace Latte { namespace Settings { namespace Handler { DetailsHandler::DetailsHandler(Dialog::DetailsDialog *parentDialog) : Generic(parentDialog), m_parentDialog(parentDialog), m_ui(m_parentDialog->ui()) { init(); //! create it after initializing m_infoHandler = new DetailsInfoHandler(parentDialog, this); } DetailsHandler::~DetailsHandler() { } void DetailsHandler::init() { o_data = m_parentDialog->layoutsController()->selectedLayoutCurrentData(); c_data = o_data; } Data::Layout DetailsHandler::currentData() const { return c_data; } bool DetailsHandler::dataAreChanged() const { return o_data != c_data; } bool DetailsHandler::inDefaultValues() const { //nothing special return true; } void DetailsHandler::reset() { } void DetailsHandler::resetDefaults() { //do nothing } void DetailsHandler::save() { } } } }