• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • libkonq
 

libkonq

  • libkonq
konq_settings.h
1 /* This file is part of the KDE project
2  Copyright (C) 1999 David Faure <faure@kde.org>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License as published by the Free Software Foundation; either
7  version 2 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 
20 #ifndef __konq_settings_h__
21 #define __konq_settings_h__
22 
23 class TDEConfig;
24 #include <tqcolor.h>
25 #include <tqstring.h>
26 #include <tqfont.h>
27 #include <tqmap.h>
28 
29 #include <libkonq_export.h>
30 
44 class LIBKONQ_EXPORT KonqFMSettings
45 {
46 protected:
51  KonqFMSettings( TDEConfig * config );
52 
54  virtual ~KonqFMSettings();
55 
56 public:
57 
61  static KonqFMSettings * settings();
62 
70  static void reparseConfiguration();
71 
72  // Use settings (and mimetype definition files)
73  // to find whether to embed a certain service type or not
74  // Only makes sense in konqueror.
75  bool shouldEmbed( const TQString & serviceType ) const;
76 
77  // Behaviour settings
78  bool wordWrapText() const { return m_bWordWrapText; }
79  int iconTextHeight() const { return m_iconTextHeight; }
80  int iconTextWidth() const;
81  bool underlineLink() const { return m_underlineLink; }
82  bool fileSizeInBytes() const { return m_fileSizeInBytes; }
83  bool alwaysNewWin() const { return m_alwaysNewWin; }
84  const TQString & homeURL() const { return m_homeURL; }
85 
86  bool showFileTips() const {return m_showFileTips; }
87  bool showPreviewsInFileTips() const;
88  int numFileTips() const {return m_numFileTips; }
89  bool renameIconDirectly() const;
90 
91  // Font settings
92  const TQFont& standardFont() const { return m_standardFont; }
93 
94  // Color settings
95  const TQColor& normalTextColor() const { return m_normalTextColor; }
96  const TQColor& highlightedTextColor() const { return m_highlightedTextColor; }
97  const TQColor& itemTextBackground() const { return m_itemTextBackground; }
98 
99  int textPreviewIconTransparency() const { return m_iconTransparency; }
100 
101  int caseSensitiveCompare( const TQString& a, const TQString& b ) const;
102 
103 private:
104 
105  static KonqFMSettings * s_pSettings;
106 
107  bool m_underlineLink;
108  bool m_fileSizeInBytes;
109  bool m_alwaysNewWin;
110  bool m_bTreeFollow;
111 
112  TQMap<TQString, TQString> m_embedMap;
113 
114  TQFont m_standardFont;
115 
116  TQColor m_normalTextColor;
117  TQColor m_highlightedTextColor;
118  TQColor m_itemTextBackground;
119 
120  bool m_bWordWrapText;
121  int m_iconTextHeight;
122 
123  TQString m_homeURL;
124  bool m_showFileTips;
125  int m_numFileTips;
126 
127  // used for the textpreview
128  int m_iconTransparency;
129 
131  void init( TDEConfig * config );
132 
133  struct KonqFMSettingsPrivate * d;
134 
135  // There is no default constructor. Use the provided ones.
136  KonqFMSettings();
137  // No copy constructor either. What for ?
138  KonqFMSettings( const KonqFMSettings &);
139 };
140 
141 #endif

libkonq

Skip menu "libkonq"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

libkonq

Skip menu "libkonq"
  • kate
  • libkonq
  • twin
  •   lib
Generated for libkonq by doxygen 1.8.1.2
This website is maintained by Timothy Pearson.