20 #ifndef __konq_viewprops_h__
21 #define __konq_viewprops_h__
24 #include <tqstringlist.h>
27 #include <libkonq_export.h>
29 #include "konq_sort_constants.h"
66 return m_defaultProps == 0L;
76 bool enterDir(
const KURL & dir );
82 void setSaveViewPropertiesLocally(
bool value );
86 void setIconSize(
int size );
87 int iconSize()
const {
return m_iIconSize; }
89 void setItemTextPos(
int pos );
90 int itemTextPos()
const {
return m_iItemTextPos; }
92 void setSortCriterion(
const TQString &criterion );
93 const TQString& sortCriterion()
const;
95 void setSortOrder( TextSortOrder order);
96 TextSortOrder getSortOrder()
const;
98 void setDirsFirst (
bool first );
99 bool isDirsFirst()
const;
101 void setHiddenFirst (
bool first );
102 bool isHiddenFirst()
const;
104 void setDescending (
bool descending);
105 bool isDescending()
const;
107 void setShowingDotFiles(
bool show );
108 bool isShowingDotFiles()
const {
return m_bShowDot; }
110 void setCaseInsensitiveSort(
bool show );
111 bool isCaseInsensitiveSort()
const;
113 void setShowingDirectoryOverlays(
bool show );
114 bool isShowingDirectoryOverlays()
const {
return m_bShowDirectoryOverlays; }
116 void setShowingFreeSpaceOverlays(
bool show );
117 bool isShowingFreeSpaceOverlays()
const {
return m_bShowFreeSpaceOverlays; }
119 void setShowingPreview(
const TQString &preview,
bool show );
120 void setShowingPreview(
bool show );
121 bool isShowingPreview(
const TQString &preview )
const {
return ! m_dontPreview.contains(preview); }
122 bool isShowingPreview();
123 const TQStringList &previewSettings();
125 void setBgColor(
const TQColor & color );
126 const TQColor& bgColor(TQWidget * widget)
const;
127 void setTextColor(
const TQColor & color );
128 const TQColor& textColor(TQWidget * widget)
const;
129 void setBgPixmapFile(
const TQString & file );
130 const TQString& bgPixmapFile()
const {
return m_bgPixmapFile; }
133 void applyColors( TQWidget * widget )
const;
137 TQPixmap loadPixmap()
const;
140 TDEConfigBase * currentConfig();
143 TDEConfigBase * currentColorConfig();
145 TQString currentGroup()
const {
146 return isDefaultProperties() ?
147 TQString::fromLatin1(
"Settings") : TQString::fromLatin1(
"URL properties");
156 bool m_bShowDirectoryOverlays;
157 bool m_bShowFreeSpaceOverlays;
158 TQStringList m_dontPreview;
161 TQString m_bgPixmapFile;
164 TQString dotDirectory;
166 bool m_bSaveViewPropertiesLocally;
176 TDEConfigBase * m_currentConfig;
The class KonqPropsView holds the properties for a Konqueror View.
bool isDefaultProperties() const
Is this the instance representing default properties ?