File indexing completed on 2024-04-28 05:52:07
0001 /* 0002 SPDX-FileCopyrightText: 2007-2009 Stefan Böhmann <kde@hilefoks.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 #ifndef SETTINGS_H 0007 #define SETTINGS_H 0008 0009 #include "ui_settings.h" 0010 0011 #include <QDialog> 0012 0013 class TopLevel; 0014 class TeaListModel; 0015 class Tea; 0016 class SettingsUI; 0017 0018 0019 /** 0020 * @short the settings dialog 0021 * 0022 * @author Stefan Böhmann <kde@hilefoks.org> 0023 */ 0024 class SettingsDialog : public QDialog 0025 { 0026 public: 0027 SettingsDialog(TopLevel *toplevel, const QList<Tea> &teas); 0028 ~SettingsDialog() override; 0029 0030 private: 0031 void updateSelection(const QItemSelection &selected, const QItemSelection &deselected); 0032 0033 void accept() override; 0034 void checkPopupButtonState(bool b); 0035 void showHelp(); 0036 0037 void newButtonClicked(); 0038 void removeButtonClicked(); 0039 void upButtonClicked(); 0040 void downButtonClicked(); 0041 0042 void nameValueChanged(const QString &text); 0043 void timeValueChanged(); 0044 0045 void moveSelectedItem(bool moveup); 0046 0047 SettingsUI *const mUi; 0048 TopLevel *const m_toplevel; 0049 TeaListModel *m_model = nullptr; 0050 }; 0051 0052 0053 #endif 0054 0055 // kate: word-wrap off; encoding utf-8; indent-width 4; tab-width 4; line-numbers on; mixed-indent off; remove-trailing-space-save on; replace-tabs-save on; replace-tabs on; space-indent on; 0056 // vim:set spell et sw=4 ts=4 nowrap cino=l1,cs,U1: