~pkgcrosswire/bibletime/main

« back to all changes in this revision

Viewing changes to src/frontend/settingsdialogs/btlanguagesettings.h

  • Committer: Jonathan Marsden
  • Date: 2011-12-23 20:32:12 UTC
  • Revision ID: jmarsden@fastmail.fm-20111223203212-1g3e35rlhbys07iu
New upstream version 2.9.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
 
15
15
#include <QMap>
16
16
#include <QWidget>
17
 
#include "backend/config/cbtconfig.h"
18
 
 
19
 
 
20
 
//class CFontChooser;
21
 
//class QCheckBox;
 
17
 
 
18
 
 
19
class CConfigurationDialog;
22
20
class QComboBox;
23
 
 
24
 
/**
25
 
    @author The BibleTime team <info@bibletime.info>
26
 
*/
27
 
class BtLanguageSettingsPage : public BtConfigPage {
 
21
class QLabel;
 
22
 
 
23
class BtLanguageSettingsPage: public BtConfigDialog::Page {
 
24
 
28
25
        Q_OBJECT
29
 
    public:
30
 
        BtLanguageSettingsPage(QWidget *parent = 0);
31
 
        ~BtLanguageSettingsPage();
 
26
 
 
27
    public: /* Methods: */
 
28
 
 
29
        BtLanguageSettingsPage(CConfigurationDialog *parent = 0);
 
30
 
32
31
        void save();
33
32
 
34
 
        /** Reimplemented from BtConfigPage. */
35
 
        virtual const QIcon &icon() const;
36
 
 
37
 
        /** Reimplemented from BtConfigPage. */
38
 
        virtual QString header() const;
39
 
 
40
33
        static void resetLanguage();
41
34
 
42
 
    protected slots:
43
 
 
44
 
        // This slot is called when the "Use own font for language" button was clicked.
45
 
        //void useOwnFontClicked(bool);
46
 
 
47
 
        // Called when a new font in the fonts page was selected.
48
 
        //void newDisplayWindowFontSelected(const QFont &);
49
 
 
50
35
    private: /* Methods: */
51
36
 
52
37
        static QVector<QString> bookNameAbbreviationsTryVector();
53
38
        void initSwordLocaleCombo();
54
 
 
55
 
        // Called when the combobox contents is changed
56
 
        //void newDisplayWindowFontAreaSelected(const QString&);
57
 
 
58
 
    private:
 
39
        void retranslateUi();
 
40
 
 
41
    private: /* Fields: */
 
42
 
 
43
        QLabel *m_languageNamesLabel;
59
44
        QComboBox* m_swordLocaleCombo;
60
 
        //QComboBox* m_usageCombo;
61
 
        //QCheckBox* m_useOwnFontCheck;
62
 
        //CFontChooser* m_fontChooser;
63
45
 
64
 
        //QMap<QString, CBTConfig::FontSettingsPair> m_fontMap;
65
46
};
66
47
 
67
48
#endif