File indexing completed on 2024-03-24 03:53:52
0001 /* 0002 blocking options for parley 0003 SPDX-FileCopyrightText: 2005 Peter Hedlund <peter.hedlund@kdemail.net> 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef BLOCKOPTIONS_H 0008 #define BLOCKOPTIONS_H 0009 0010 #include <QList> 0011 0012 #include "practice/sessionmanagerbase.h" 0013 #include "ui_blockoptions.h" 0014 0015 class KComboBox; 0016 0017 class BlockOptions : public QWidget, public Ui::BlockOptionsBase 0018 { 0019 Q_OBJECT 0020 public: 0021 explicit BlockOptions(QWidget *parent = nullptr); 0022 void updateWidgets(); 0023 bool hasChanged(); 0024 bool isDefault(); 0025 void updateSettings(); 0026 0027 Q_SIGNALS: 0028 void widgetModified(); 0029 0030 protected Q_SLOTS: 0031 void slotBlockToggled(bool); 0032 void slotExpireToggled(bool); 0033 void slotComboBoxActivated(int); 0034 0035 private: 0036 void fillWidgets(); 0037 void fillComboBox(KComboBox *); 0038 void updateComboBox(int, KComboBox *); 0039 void checkValidity(); 0040 0041 QList<KComboBox *> m_blockComboList; 0042 QList<KComboBox *> m_expireComboList; 0043 }; 0044 0045 #endif