• 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
23class TDEConfig;
24#include <tqcolor.h>
25#include <tqstring.h>
26#include <tqfont.h>
27#include <tqmap.h>
28
29#include <libkonq_export.h>
30
44class LIBKONQ_EXPORT KonqFMSettings
45{
46protected:
51 KonqFMSettings( TDEConfig * config );
52
54 virtual ~KonqFMSettings();
55
56public:
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 bool doubleClickMoveToParent() const { return m_doubleClickMoveToParent; }
85 const TQString & homeURL() const { return m_homeURL; }
86
87 bool showFileTips() const {return m_showFileTips; }
88 bool showPreviewsInFileTips() const;
89 int numFileTips() const {return m_numFileTips; }
90 bool renameIconDirectly() const;
91
92 // Font settings
93 const TQFont& standardFont() const { return m_standardFont; }
94
95 // Color settings
96 const TQColor& normalTextColor() const { return m_normalTextColor; }
97 const TQColor& highlightedTextColor() const { return m_highlightedTextColor; }
98 const TQColor& itemTextBackground() const { return m_itemTextBackground; }
99
100 int textPreviewIconTransparency() const { return m_iconTransparency; }
101
102 int caseSensitiveCompare( const TQString& a, const TQString& b ) const;
103
104private:
105
106 static KonqFMSettings * s_pSettings;
107
108 bool m_underlineLink;
109 bool m_fileSizeInBytes;
110 bool m_alwaysNewWin;
111 bool m_doubleClickMoveToParent;
112
113 TQMap<TQString, TQString> m_embedMap;
114
115 TQFont m_standardFont;
116
117 TQColor m_normalTextColor;
118 TQColor m_highlightedTextColor;
119 TQColor m_itemTextBackground;
120
121 bool m_bWordWrapText;
122 int m_iconTextHeight;
123
124 TQString m_homeURL;
125 bool m_showFileTips;
126 int m_numFileTips;
127
128 // used for the textpreview
129 int m_iconTransparency;
130
132 void init( TDEConfig * config );
133
134 struct KonqFMSettingsPrivate * d;
135
136 // There is no default constructor. Use the provided ones.
137 KonqFMSettings();
138 // No copy constructor either. What for ?
139 KonqFMSettings( const KonqFMSettings &);
140};
141
142#endif
KonqFMSettings
The class KonqFMSettings holds the general settings for the icon/tree views in konqueror/kdesktop.
Definition: konq_settings.h:45

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.9.4
This website is maintained by Timothy Pearson.