konq_settings.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __konq_settings_h__
00021 #define __konq_settings_h__
00022
00023 class KConfig;
00024 #include <qcolor.h>
00025 #include <qstring.h>
00026 #include <qfont.h>
00027 #include <qmap.h>
00028
00042 class KonqFMSettings
00043 {
00044 protected:
00049 KonqFMSettings( KConfig * config );
00050
00052 virtual ~KonqFMSettings();
00053
00054 public:
00055
00059 static KonqFMSettings * settings();
00060
00068 static void reparseConfiguration();
00069
00070
00071
00072
00073 bool shouldEmbed( const QString & serviceType ) const;
00074
00075
00076 bool wordWrapText() const { return m_bWordWrapText; }
00077 bool underlineLink() const { return m_underlineLink; }
00078 bool fileSizeInBytes() const { return m_fileSizeInBytes; }
00079 bool alwaysNewWin() const { return m_alwaysNewWin; }
00080 const QString & homeURL() const { return m_homeURL; }
00081
00082 bool showFileTips() const {return m_showFileTips; }
00083 bool showPreviewsInFileTips() const;
00084 int numFileTips() const {return m_numFileTips; }
00085 bool renameIconDirectly() const;
00086
00087
00088 const QFont& standardFont() const { return m_standardFont; }
00089
00090
00091 const QColor& normalTextColor() const { return m_normalTextColor; }
00092 const QColor& highlightedTextColor() const { return m_highlightedTextColor; }
00093 const QColor& itemTextBackground() const { return m_itemTextBackground; }
00094
00095 int textPreviewIconTransparency() const { return m_iconTransparency; }
00096
00097 int caseSensitiveCompare( const QString& a, const QString& b ) const;
00098
00099 private:
00100
00101 static KonqFMSettings * s_pSettings;
00102
00103 bool m_underlineLink;
00104 bool m_fileSizeInBytes;
00105 bool m_alwaysNewWin;
00106 bool m_bTreeFollow;
00107
00108 QMap<QString, QString> m_embedMap;
00109
00110 QFont m_standardFont;
00111
00112 QColor m_normalTextColor;
00113 QColor m_highlightedTextColor;
00114 QColor m_itemTextBackground;
00115
00116 bool m_bWordWrapText;
00117
00118 QString m_homeURL;
00119 bool m_showFileTips;
00120 int m_numFileTips;
00121
00122
00123 int m_iconTransparency;
00124
00126 void init( KConfig * config );
00127
00128 struct KonqFMSettingsPrivate * d;
00129
00130
00131 KonqFMSettings();
00132
00133 KonqFMSettings( const KonqFMSettings &);
00134 };
00135
00136 #endif
This file is part of the documentation for libkonq Library Version 3.2.2.