• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • libkonq
 

libkonq

Public Member Functions | Protected Member Functions | List of all members
KonqPropsView Class Reference

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

Constructor & Destructor Documentation

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 75 of file konq_propsview.cpp.

KonqPropsView::~KonqPropsView ( )
virtual

Destructor.

Definition at line 176 of file konq_propsview.cpp.

Member Function Documentation

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 183 of file konq_propsview.cpp.

bool KonqPropsView::isDefaultProperties ( ) const
inline

Is this the instance representing default properties ?

Definition at line 62 of file konq_propsview.h.

void KonqPropsView::setSaveViewPropertiesLocally ( bool  value)

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

Definition at line 267 of file konq_propsview.cpp.


The documentation for this class was generated from the following files:
  • konq_propsview.h
  • konq_propsview.cpp

libkonq

Skip menu "libkonq"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

libkonq

Skip menu "libkonq"
  • kate
  • libkonq
  • twin
  •   lib
Generated for libkonq by doxygen 1.8.1.2
This website is maintained by Timothy Pearson.