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)
virtual void applyChanges ()
void postApplyChanges ()

Static Public Methods

bool supports (KFileItemList _items)

Detailed Description

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

Definition at line 407 of file kpropertiesdialog.h.


Constructor & Destructor Documentation

KFilePropsPlugin::KFilePropsPlugin KPropertiesDialog   _props
 

Constructor.

Definition at line 629 of file kpropertiesdialog.cpp.

References QToolTip::add(), QGridLayout::addLayout(), QGridLayout::addMultiCellWidget(), KDialogBase::addPage(), QGridLayout::addWidget(), KIcon::Application, QObject::connect(), QPtrList< KFileItem >::count(), QPtrListIterator< KFileItem >::current(), KPropertiesDialog::currentDir(), KMimeType::defaultMimeType(), KPropertiesDialog::defaultName(), KIcon::Device, KURL::directory(), KURL::fileName(), KIcon::FileSystem, QString::find(), KMimeType::findByFileContent(), KMimeType::findByURL(), KIO::findPathMountPoint(), QString::fromLatin1(), KDesktopFile::hasDeviceType(), QPixmap::height(), KMimeType::iconForURL(), KPropsDlgPlugin::isDesktopFile(), KFileItem::isDir(), QString::isEmpty(), KFileItem::isLink(), KURL::isLocalFile(), QString::isNull(), KPropertiesDialog::item(), KPropertiesDialog::items(), KPropertiesDialog::kurl(), KFileItem::linkDest(), KGlobal::locale(), KFileItem::mimeComment(), KFileItem::mimetype(), KFileItem::mode(), KURL::path(), QIconSet::pixmap(), KURL::prettyURL(), KPropsDlgPlugin::properties, KURL::protocol(), KDiskFreeSp::readDF(), KDesktopFile::readName(), QGridLayout::setColStretch(), KIconButton::setIcon(), QPushButton::setIconSet(), KIconButton::setIconType(), QLabel::setPixmap(), KIconButton::setStrictIconSize(), QPushButton::setText(), QLabel::setText(), QDateTime::setTime_t(), KFileItem::size(), KDialog::spacingHint(), QString::startsWith(), KFileItem::time(), KGlobalSettings::trashPath(), KFileItem::url(), and QPixmap::width().


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 1168 of file kpropertiesdialog.cpp.

References KPropertiesDialog::abortApplying(), QObject::connect(), KIO::copy(), KIO::encodeFileName(), QString::endsWith(), 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 1159 of file kpropertiesdialog.cpp.

Referenced by KPropertiesDialog::canDisplay().

void KFilePropsPlugin::postApplyChanges  
 

Called after all plugins applied their changes.

Definition at line 1335 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 kio Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Apr 22 14:24:17 2004 by doxygen 1.2.18 written by Dimitri van Heesch, © 1997-2003