#include <konq_propsview.h>
Public Member Functions | |
KonqPropsView (TDEInstance *instance, KonqPropsView *defaultProps) | |
virtual | ~KonqPropsView () |
bool | isDefaultProperties () const |
bool | enterDir (const KURL &dir) |
void | setSaveViewPropertiesLocally (bool value) |
void | setIconSize (int size) |
int | iconSize () const |
void | setItemTextPos (int pos) |
int | itemTextPos () const |
void | setSortCriterion (const TQString &criterion) |
const TQString & | sortCriterion () const |
void | setSortOrder (TextSortOrder order) |
TextSortOrder | getSortOrder () const |
void | setDirsFirst (bool first) |
bool | isDirsFirst () const |
void | setHiddenFirst (bool first) |
bool | isHiddenFirst () const |
void | setDescending (bool descending) |
bool | isDescending () const |
void | setShowingDotFiles (bool show) |
bool | isShowingDotFiles () const |
void | setCaseInsensitiveSort (bool show) |
bool | isCaseInsensitiveSort () const |
void | setShowingDirectoryOverlays (bool show) |
bool | isShowingDirectoryOverlays () const |
void | setShowingFreeSpaceOverlays (bool show) |
bool | isShowingFreeSpaceOverlays () const |
void | setShowingPreview (const TQString &preview, bool show) |
void | setShowingPreview (bool show) |
bool | isShowingPreview (const TQString &preview) const |
bool | isShowingPreview () |
const TQStringList & | previewSettings () |
void | setBgColor (const TQColor &color) |
const TQColor & | bgColor (TQWidget *widget) const |
void | setTextColor (const TQColor &color) |
const TQColor & | textColor (TQWidget *widget) const |
void | setBgPixmapFile (const TQString &file) |
const TQString & | bgPixmapFile () const |
void | applyColors (TQWidget *widget) const |
Protected Member Functions | |
TQPixmap | loadPixmap () const |
TDEConfigBase * | currentConfig () |
TDEConfigBase * | currentColorConfig () |
TQString | currentGroup () const |
Detailed Description
The class KonqPropsView holds the properties for a Konqueror View.
Separating them from the view class allows to store the default values (the one read from <kinstance>rc) in one instance of this class and to have another instance of this class in each view, storing the current values of the view.
The local values can be read from a desktop entry, if any (.directory, bookmark, ...). [ .directory is implemented, bookmark isn't ].
Definition at line 46 of file konq_propsview.h.
Constructor & Destructor Documentation
◆ KonqPropsView()
KonqPropsView::KonqPropsView | ( | TDEInstance * | instance, |
KonqPropsView * | defaultProps | ||
) |
Constructs a KonqPropsView instance from an instance config file.
defaultProps is a "parent" object. If non null, then this instance is the one used by a view, and its value can differ from the default ones. The instance parameter should be the same for both...
Definition at line 79 of file konq_propsview.cpp.
◆ ~KonqPropsView()
|
virtual |
Destructor.
Definition at line 192 of file konq_propsview.cpp.
Member Function Documentation
◆ applyColors()
void KonqPropsView::applyColors | ( | TQWidget * | widget | ) | const |
Definition at line 605 of file konq_propsview.cpp.
◆ bgColor()
const TQColor & KonqPropsView::bgColor | ( | TQWidget * | widget | ) | const |
Definition at line 541 of file konq_propsview.cpp.
◆ bgPixmapFile()
|
inline |
Definition at line 130 of file konq_propsview.h.
◆ currentColorConfig()
|
protected |
Definition at line 182 of file konq_propsview.cpp.
◆ currentConfig()
|
protected |
Definition at line 167 of file konq_propsview.cpp.
◆ currentGroup()
|
inlineprotected |
Definition at line 145 of file konq_propsview.h.
◆ enterDir()
bool KonqPropsView::enterDir | ( | const KURL & | dir | ) |
Called when entering a directory Checks for a .directory, read it.
Don't do this on the default properties instance Returns TRUE if the settings for the new directories are different from the settings in the old directory.
Definition at line 199 of file konq_propsview.cpp.
◆ getSortOrder()
TextSortOrder KonqPropsView::getSortOrder | ( | ) | const |
Definition at line 147 of file konq_propsview.cpp.
◆ iconSize()
|
inline |
Definition at line 87 of file konq_propsview.h.
◆ isCaseInsensitiveSort()
bool KonqPropsView::isCaseInsensitiveSort | ( | ) | const |
Definition at line 142 of file konq_propsview.cpp.
◆ isDefaultProperties()
|
inline |
Is this the instance representing default properties ?
Definition at line 64 of file konq_propsview.h.
◆ isDescending()
bool KonqPropsView::isDescending | ( | ) | const |
Definition at line 162 of file konq_propsview.cpp.
◆ isDirsFirst()
bool KonqPropsView::isDirsFirst | ( | ) | const |
Definition at line 152 of file konq_propsview.cpp.
◆ isHiddenFirst()
bool KonqPropsView::isHiddenFirst | ( | ) | const |
Definition at line 157 of file konq_propsview.cpp.
◆ isShowingDirectoryOverlays()
|
inline |
Definition at line 114 of file konq_propsview.h.
◆ isShowingDotFiles()
|
inline |
Definition at line 108 of file konq_propsview.h.
◆ isShowingFreeSpaceOverlays()
|
inline |
Definition at line 117 of file konq_propsview.h.
◆ isShowingPreview() [1/2]
bool KonqPropsView::isShowingPreview | ( | ) |
Definition at line 517 of file konq_propsview.cpp.
◆ isShowingPreview() [2/2]
|
inline |
Definition at line 121 of file konq_propsview.h.
◆ itemTextPos()
|
inline |
Definition at line 90 of file konq_propsview.h.
◆ loadPixmap()
|
protected |
Definition at line 596 of file konq_propsview.cpp.
◆ previewSettings()
const TQStringList & KonqPropsView::previewSettings | ( | ) |
Definition at line 626 of file konq_propsview.cpp.
◆ setBgColor()
void KonqPropsView::setBgColor | ( | const TQColor & | color | ) |
Definition at line 522 of file konq_propsview.cpp.
◆ setBgPixmapFile()
void KonqPropsView::setBgPixmapFile | ( | const TQString & | file | ) |
Definition at line 576 of file konq_propsview.cpp.
◆ setCaseInsensitiveSort()
void KonqPropsView::setCaseInsensitiveSort | ( | bool | show | ) |
Definition at line 409 of file konq_propsview.cpp.
◆ setDescending()
void KonqPropsView::setDescending | ( | bool | descending | ) |
Definition at line 378 of file konq_propsview.cpp.
◆ setDirsFirst()
void KonqPropsView::setDirsFirst | ( | bool | first | ) |
Definition at line 352 of file konq_propsview.cpp.
◆ setHiddenFirst()
void KonqPropsView::setHiddenFirst | ( | bool | first | ) |
Definition at line 365 of file konq_propsview.cpp.
◆ setIconSize()
void KonqPropsView::setIconSize | ( | int | size | ) |
Definition at line 299 of file konq_propsview.cpp.
◆ setItemTextPos()
void KonqPropsView::setItemTextPos | ( | int | pos | ) |
Definition at line 312 of file konq_propsview.cpp.
◆ setSaveViewPropertiesLocally()
void KonqPropsView::setSaveViewPropertiesLocally | ( | bool | value | ) |
Turn on/off saving properties locally Don't do this on the default properties instance.
Definition at line 287 of file konq_propsview.cpp.
◆ setShowingDirectoryOverlays()
void KonqPropsView::setShowingDirectoryOverlays | ( | bool | show | ) |
Definition at line 427 of file konq_propsview.cpp.
◆ setShowingDotFiles()
void KonqPropsView::setShowingDotFiles | ( | bool | show | ) |
Definition at line 391 of file konq_propsview.cpp.
◆ setShowingFreeSpaceOverlays()
void KonqPropsView::setShowingFreeSpaceOverlays | ( | bool | show | ) |
Definition at line 445 of file konq_propsview.cpp.
◆ setShowingPreview() [1/2]
void KonqPropsView::setShowingPreview | ( | bool | show | ) |
Definition at line 496 of file konq_propsview.cpp.
◆ setShowingPreview() [2/2]
void KonqPropsView::setShowingPreview | ( | const TQString & | preview, |
bool | show | ||
) |
Definition at line 463 of file konq_propsview.cpp.
◆ setSortCriterion()
void KonqPropsView::setSortCriterion | ( | const TQString & | criterion | ) |
Definition at line 325 of file konq_propsview.cpp.
◆ setSortOrder()
void KonqPropsView::setSortOrder | ( | TextSortOrder | order | ) |
Definition at line 338 of file konq_propsview.cpp.
◆ setTextColor()
void KonqPropsView::setTextColor | ( | const TQColor & | color | ) |
Definition at line 549 of file konq_propsview.cpp.
◆ sortCriterion()
const TQString & KonqPropsView::sortCriterion | ( | ) | const |
Definition at line 648 of file konq_propsview.cpp.
◆ textColor()
const TQColor & KonqPropsView::textColor | ( | TQWidget * | widget | ) | const |
Definition at line 568 of file konq_propsview.cpp.
The documentation for this class was generated from the following files: