KonqPropsView Class Reference

#include <konq_propsview.h>

List of all members.


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 44 of file konq_propsview.h.


Public Member Functions

 KonqPropsView (KInstance *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 QString &criterion)
const QString & sortCriterion () const
void setDirsFirst (bool first)
bool isDirsFirst () 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 setShowingPreview (const QString &preview, bool show)
void setShowingPreview (bool show)
bool isShowingPreview (const QString &preview) const
bool isShowingPreview ()
const QStringList & previewSettings ()
void setBgColor (const QColor &color)
const QColor & bgColor (QWidget *widget) const
void setTextColor (const QColor &color)
const QColor & textColor (QWidget *widget) const
void setBgPixmapFile (const QString &file)
const QString & bgPixmapFile () const
void applyColors (QWidget *widget) const

Protected Member Functions

QPixmap loadPixmap () const
KConfigBase * currentConfig ()
KConfigBase * currentColorConfig ()
QString currentGroup () const

Constructor & Destructor Documentation

KonqPropsView::KonqPropsView ( KInstance *  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 75 of file konq_propsview.cc.

KonqPropsView::~KonqPropsView (  )  [virtual]

Destructor.

Definition at line 175 of file konq_propsview.cc.


Member Function Documentation

bool KonqPropsView::isDefaultProperties (  )  const [inline]

Is this the instance representing default properties ?

Definition at line 62 of file konq_propsview.h.

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 182 of file konq_propsview.cc.

void KonqPropsView::setSaveViewPropertiesLocally ( bool  value  ) 

Turn on/off saving properties locally Don't do this on the default properties instance.

Definition at line 265 of file konq_propsview.cc.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys