File indexing completed on 2024-05-12 05:28:39
0001 /* 0002 * SPDX-FileCopyrightText: 2014 Hugo Pereira Da Costa <hugo.pereira@free.fr> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "ui_breezestyleconfig.h" 0010 0011 namespace Breeze 0012 { 0013 class StyleConfig : public QWidget, Ui::BreezeStyleConfig 0014 { 0015 Q_OBJECT 0016 0017 public: 0018 //* constructor 0019 explicit StyleConfig(QWidget *); 0020 0021 //* destructor 0022 virtual ~StyleConfig() 0023 { 0024 } 0025 0026 Q_SIGNALS: 0027 0028 //* emitted whenever one option is changed. 0029 void changed(bool); 0030 0031 public Q_SLOTS: 0032 0033 //* load setup from config data 0034 void load(); 0035 0036 //* save current state 0037 void save(); 0038 0039 //* restore all default values 0040 void defaults(); 0041 0042 //* reset to saved configuration 0043 void reset(); 0044 0045 protected Q_SLOTS: 0046 0047 //* update modified state when option is checked/unchecked 0048 void updateChanged(); 0049 }; 0050 0051 }