kio Library API Documentation

KFilePropsPlugin Class Reference

'General' plugin This plugin displays the name of the file, its size and access times. More...

#include <kpropertiesdialog.h>

Inheritance diagram for KFilePropsPlugin:

KPropsDlgPlugin QObject List of all members.

Public Methods

 KFilePropsPlugin (KPropertiesDialog *_props)
 Constructor.

virtual void applyChanges ()
 Applies all changes made.

void postApplyChanges ()
 Called after all plugins applied their changes.


Static Public Methods

bool supports (KFileItemList _items)
 Tests whether the files specified by _items need a 'General' plugin.


Detailed Description

'General' plugin This plugin displays the name of the file, its size and access times.

Definition at line 392 of file kpropertiesdialog.h.


Constructor & Destructor Documentation

KFilePropsPlugin::KFilePropsPlugin KPropertiesDialog   _props
 

Constructor.

Definition at line 607 of file kpropertiesdialog.cpp.

References QGridLayout::addColSpacing(), QGridLayout::addLayout(), QGridLayout::addMultiCellWidget(), KDialogBase::addPage(), QGridLayout::addWidget(), KPropsDlgPlugin::changed(), QObject::connect(), QPtrList< KFileItem >::count(), QPtrListIterator< KFileItem >::current(), KPropertiesDialog::currentDir(), KIO::decodeFileName(), KMimeType::defaultMimeType(), KPropertiesDialog::defaultName(), KIcon::Device, KPropertiesDialog::dialog(), KURL::directory(), KURL::fileName(), KMimeType::findByFileContent(), KMimeType::findByURL(), KIO::findPathMountPoint(), QString::fromLatin1(), KMimeType::iconForURL(), KPropsDlgPlugin::isDesktopFile(), KFileItem::isDir(), QString::isEmpty(), KFileItem::isLink(), KURL::isLocalFile(), QString::isNull(), KPropertiesDialog::item(), KPropertiesDialog::items(), KPropertiesDialog::kurl(), KFileItem::linkDest(), KGlobal::locale(), KDialog::marginHint(), KFileItem::mimeComment(), KFileItem::mode(), KURL::path(), KURL::prettyURL(), KPropsDlgPlugin::properties, KURL::protocol(), KDiskFreeSp::readDF(), QGridLayout::setColStretch(), KIconButton::setIcon(), KIconButton::setIconType(), QLabel::setPixmap(), KIconButton::setStrictIconSize(), QPushButton::setText(), QLabel::setText(), QDateTime::setTime_t(), KFileItem::size(), KDialog::spacingHint(), KFileItem::time(), KGlobalSettings::trashPath(), and KFileItem::url().


Member Function Documentation

void KFilePropsPlugin::applyChanges   [virtual]
 

Applies all changes made.

This plugin must be always the first plugin in the dialog, since this function may rename the file which may confuse other applyChanges functions.

Reimplemented from KPropsDlgPlugin.

Definition at line 1049 of file kpropertiesdialog.cpp.

References KPropertiesDialog::abortApplying(), QObject::connect(), KIO::copy(), KIO::encodeFileName(), QString::isEmpty(), KPropertiesDialog::kurl(), QString::length(), KIO::move(), KURL::path(), KPropsDlgPlugin::properties, KPropertiesDialog::rename(), KMessageBox::sorry(), QString::truncate(), and KURL::url().

bool KFilePropsPlugin::supports KFileItemList    _items [static]
 

Tests whether the files specified by _items need a 'General' plugin.

Definition at line 1040 of file kpropertiesdialog.cpp.

Referenced by KPropertiesDialog::canDisplay().

void KFilePropsPlugin::postApplyChanges  
 

Called after all plugins applied their changes.

Definition at line 1197 of file kpropertiesdialog.cpp.

References QPtrListIterator< KFileItem >::current(), KPropertiesDialog::items(), and KPropsDlgPlugin::properties.

Referenced by KPropertiesDialog::slotOk().


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.0.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Oct 8 12:21:36 2003 by doxygen 1.2.18 written by Dimitri van Heesch, © 1997-2001