File indexing completed on 2024-04-14 03:58:53

0001 /*
0002  * Copyright 1999 by Martin R. Jones <mjones@kde.org>
0003  *
0004  * This program is free software; you can redistribute it and/or modify
0005  * it under the terms of the GNU General Public License as published by
0006  * the Free Software Foundation; either version 2 of the License, or
0007  * (at your option) any later version.
0008  *
0009  * This program is distributed in the hope that it will be useful,
0010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0012  * GNU General Public License for more details.
0013  *
0014  * You should have received a copy of the GNU General Public License
0015  * along with this program; if not, write to the Free Software
0016  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
0017  */
0018 #ifndef AMORDIALOG_H
0019 #define AMORDIALOG_H
0020 
0021 #include <QDialog>
0022 #include "amorconfig.h"
0023 
0024 class QListWidget;
0025 class QTextBrowser;
0026 
0027 
0028 class AmorDialog : public QDialog
0029 {
0030     Q_OBJECT
0031 
0032     public:
0033         explicit AmorDialog(QWidget *parent = nullptr);
0034 
0035     Q_SIGNALS:
0036         void changed();
0037         void offsetChanged(int);
0038 
0039     protected Q_SLOTS:
0040         void slotHighlighted(int);
0041         void slotOnTop(bool);
0042         void slotRandomTips(bool);
0043         void slotRandomTheme(bool);
0044         void slotApplicationTips(bool);
0045         void slotOffset(int);
0046         void slotOk();
0047         void slotApply();
0048         void slotCancel();
0049 
0050     protected:
0051         void readThemes();
0052         void addTheme(const QString& folder, const QString& file);
0053 
0054     protected:
0055         QListWidget *mThemeListView;
0056         QTextBrowser *mAboutEdit;
0057         QStringList mThemes;
0058         QStringList mThemeAbout;
0059         AmorConfig mConfig;
0060 };
0061 
0062 
0063 #endif
0064 
0065 // 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;
0066 // vim:set spell et sw=4 ts=4 nowrap cino=l1,cs,U1: