Warning, file /sdk/cervisia/settingsdialog.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*
0002  *  Copyright (C) 1999-2002 Bernd Gehrmann
0003  *                          bernd@mail.berlios.de
0004  *  Copyright (c) 2002-2007 Christian Loose <christian.loose@kdemail.net>
0005  *
0006  * This program is free software; you can redistribute it and/or modify
0007  * it under the terms of the GNU General Public License as published by
0008  * the Free Software Foundation; either version 2 of the License, or
0009  * (at your option) any later version.
0010  *
0011  * This program is distributed in the hope that it will be useful,
0012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0014  * GNU General Public License for more details.
0015  *
0016  * You should have received a copy of the GNU General Public License
0017  * along with this program; if not, write to the Free Software
0018  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
0019  */
0020 
0021 #ifndef SETTINGSDIALOG_H
0022 #define SETTINGSDIALOG_H
0023 
0024 #include <kpagedialog.h>
0025 #include <qpushbutton.h>
0026 
0027 class QCheckBox;
0028 class QSpinBox;
0029 class QLineEdit;
0030 class KConfig;
0031 class KColorButton;
0032 class KUrlRequester;
0033 
0034 namespace Ui
0035 {
0036 class AdvancedPage;
0037 }
0038 
0039 class FontButton : public QPushButton
0040 {
0041     Q_OBJECT
0042 
0043 public:
0044     explicit FontButton(const QString &text, QWidget *parent = nullptr);
0045 
0046 private slots:
0047     void chooseFont();
0048 };
0049 
0050 class SettingsDialog : public KPageDialog
0051 {
0052     Q_OBJECT
0053 
0054 public:
0055     explicit SettingsDialog(KConfig *conf, QWidget *parent = nullptr);
0056     ~SettingsDialog() override;
0057 
0058 protected slots:
0059     void done(int res) override;
0060 
0061 private slots:
0062     void slotHelp();
0063 
0064 private:
0065     void readSettings();
0066     void writeSettings();
0067 
0068     void addGeneralPage();
0069     void addDiffPage();
0070     void addStatusPage();
0071     void addAdvancedPage();
0072     void addLookAndFeelPage();
0073 
0074     KConfig *config;
0075     QSpinBox *contextedit;
0076     QSpinBox *tabwidthedit;
0077     KUrlRequester *cvspathedit;
0078     QLineEdit *usernameedit;
0079     QLineEdit *diffoptedit;
0080     KUrlRequester *extdiffedit;
0081     QCheckBox *remotestatusbox;
0082     QCheckBox *localstatusbox;
0083     FontButton *m_protocolFontBox;
0084     FontButton *m_annotateFontBox;
0085     FontButton *m_diffFontBox;
0086     FontButton *m_changelogFontBox;
0087 
0088     KColorButton *m_conflictButton;
0089     KColorButton *m_localChangeButton;
0090     KColorButton *m_remoteChangeButton;
0091     KColorButton *m_notInCvsButton;
0092     KColorButton *m_diffChangeButton;
0093     KColorButton *m_diffInsertButton;
0094     KColorButton *m_diffDeleteButton;
0095 
0096     QCheckBox *m_splitterBox;
0097     Ui::AdvancedPage *m_advancedPage;
0098 
0099     KConfig *serviceConfig;
0100 };
0101 
0102 #endif
0103 
0104 // Local Variables:
0105 // c-basic-offset: 4
0106 // End: