libkonq Library API Documentation

KonqPropsView Class Reference

The class KonqPropsView holds the properties for a Konqueror View. More...

#include <konq_propsview.h>

List of all members.

Public Member Functions

 KonqPropsView (KInstance *instance, KonqPropsView *defaultProps)
 Constructs a KonqPropsView instance from an instance config file.

virtual ~KonqPropsView ()
 Destructor.

bool isDefaultProperties () const
 Is this the instance representing default properties ?

bool enterDir (const KURL &dir)
 Called when entering a directory Checks for a .directory, read it.

void setSaveViewPropertiesLocally (bool value)
 Turn on/off saving properties locally Don't do this on the default properties instance.

void setIconSize (int size)
int iconSize () const
void setItemTextPos (int pos)
int itemTextPos () 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


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


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

KonqPropsView::~KonqPropsView  )  [virtual]
 

Destructor.

Definition at line 158 of file konq_propsview.cc.


Member Function Documentation

bool KonqPropsView::isDefaultProperties  )  const [inline]
 

Is this the instance representing default properties ?

Definition at line 61 of file konq_propsview.h.

Referenced by enterDir(), and setSaveViewPropertiesLocally().

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

References bgPixmapFile(), iconSize(), isCaseInsensitiveSort(), isDefaultProperties(), isShowingDotFiles(), itemTextPos(), m_bgColor, m_dontPreview, and m_textColor.

void KonqPropsView::setSaveViewPropertiesLocally bool  value  ) 
 

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

Definition at line 242 of file konq_propsview.cc.

References isDefaultProperties().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Thu Jan 29 23:03:29 2004 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001