Version 2.6
[qgit4/redivivus.git] / src / settingsimpl.h
blobd05fd9aaf588671c5a0c6bbb0865d0ebbe88dabc
1 /*
2 Author: Marco Costalba (C) 2005-2007
4 Copyright: See COPYING file that comes with this distribution
6 */
7 #ifndef SETTINGSIMPL_H
8 #define SETTINGSIMPL_H
10 #include "ui_settings.h"
12 class QVariant;
13 class Git;
15 class SettingsImpl: public QDialog, public Ui_settingsBase {
16 Q_OBJECT
17 public:
18 SettingsImpl(QWidget* parent, Git* git, int defTab = 0);
20 signals:
21 void typeWriterFontChanged();
22 void flagChanged(uint);
24 protected slots:
25 void checkBoxNumbers_toggled(bool b);
26 void checkBoxSign_toggled(bool b);
27 void checkBoxRangeSelectDialog_toggled(bool b);
28 void checkBoxReopenLastRepo_toggled(bool b);
29 void checkBoxRelativeDate_toggled(bool b);
30 void checkBoxLogDiffTab_toggled(bool b);
31 void checkBoxSmartLabels_toggled(bool b);
32 void checkBoxMsgOnNewSHA_toggled(bool b);
33 void checkBoxDiffCache_toggled(bool b);
34 void checkBoxCommitSign_toggled(bool b);
35 void checkBoxCommitVerify_toggled(bool b);
36 void checkBoxCommitUseDefMsg_toggled(bool b);
37 void lineEditExternalDiffViewer_textChanged(const QString& s);
38 void lineEditApplyPatchExtraOptions_textChanged(const QString& s);
39 void lineEditFormatPatchExtraOptions_textChanged(const QString& s);
40 void lineEditExcludeFile_textChanged(const QString& s);
41 void lineEditExcludePerDir_textChanged(const QString& s);
42 void lineEditTemplate_textChanged(const QString& s);
43 void lineEditCommitExtraOptions_textChanged(const QString& s);
44 void comboBoxCodecs_activated(int i);
45 void comboBoxUserSrc_activated(int i);
46 void comboBoxGitConfigSource_activated(int i);
47 void treeWidgetGitConfig_itemChanged(QTreeWidgetItem*, int);
48 void pushButtonExtDiff_clicked();
49 void pushButtonFont_clicked();
51 private:
52 void writeSetting(const QString& key, const QVariant& value);
53 void addConfigOption(QTreeWidgetItem* parent, QStringList paths, const QString& value);
54 void setupCodecList(QStringList& list);
55 void setupCodecsCombo();
56 void readGitConfig(const QString& source);
57 void userInfo();
58 void changeFlag(uint f, bool b);
60 Git* git;
61 QStringList _uInfo;
62 bool populatingGitConfig;
65 #endif