20 #ifndef __konq_viewprops_h__
21 #define __konq_viewprops_h__
24 #include <tqstringlist.h>
27 #include <libkonq_export.h>
64 return m_defaultProps == 0L;
74 bool enterDir(
const KURL & dir );
80 void setSaveViewPropertiesLocally(
bool value );
84 void setIconSize(
int size );
85 int iconSize()
const {
return m_iIconSize; }
87 void setItemTextPos(
int pos );
88 int itemTextPos()
const {
return m_iItemTextPos; }
90 void setSortCriterion(
const TQString &criterion );
91 const TQString& sortCriterion()
const;
93 void setDirsFirst (
bool first );
94 bool isDirsFirst()
const;
96 void setDescending (
bool descending);
97 bool isDescending()
const;
99 void setShowingDotFiles(
bool show );
100 bool isShowingDotFiles()
const {
return m_bShowDot; }
102 void setCaseInsensitiveSort(
bool show );
103 bool isCaseInsensitiveSort()
const;
105 void setShowingDirectoryOverlays(
bool show );
106 bool isShowingDirectoryOverlays()
const {
return m_bShowDirectoryOverlays; }
108 void setShowingFreeSpaceOverlays(
bool show );
109 bool isShowingFreeSpaceOverlays()
const {
return m_bShowFreeSpaceOverlays; }
111 void setShowingPreview(
const TQString &preview,
bool show );
112 void setShowingPreview(
bool show );
113 bool isShowingPreview(
const TQString &preview )
const {
return ! m_dontPreview.contains(preview); }
114 bool isShowingPreview();
115 const TQStringList &previewSettings();
117 void setBgColor(
const TQColor & color );
118 const TQColor& bgColor(TQWidget * widget)
const;
119 void setTextColor(
const TQColor & color );
120 const TQColor& textColor(TQWidget * widget)
const;
121 void setBgPixmapFile(
const TQString & file );
122 const TQString& bgPixmapFile()
const {
return m_bgPixmapFile; }
125 void applyColors( TQWidget * widget )
const;
129 TQPixmap loadPixmap()
const;
132 TDEConfigBase * currentConfig();
135 TDEConfigBase * currentColorConfig();
137 TQString currentGroup()
const {
138 return isDefaultProperties() ?
139 TQString::fromLatin1(
"Settings") : TQString::fromLatin1(
"URL properties");
148 bool m_bShowDirectoryOverlays;
149 bool m_bShowFreeSpaceOverlays;
150 TQStringList m_dontPreview;
153 TQString m_bgPixmapFile;
156 TQString dotDirectory;
158 bool m_bSaveViewPropertiesLocally;
168 TDEConfigBase * m_currentConfig;