kio Library API Documentation

KApplicationPropsPlugin Class Reference

Used to edit the files containing [Desktop Entry] Type=Application. More...

#include <kpropertiesdialog.h>

Inheritance diagram for KApplicationPropsPlugin:

KPropsDlgPlugin QObject List of all members.

Public Slots

void slotDelExtension ()
void slotAddExtension ()

Public Member Functions

 KApplicationPropsPlugin (KPropertiesDialog *_props)
 Constructor.

virtual void applyChanges ()
 Applies all changes to the file.


Static Public Member Functions

bool supports (KFileItemList _items)

Detailed Description

Used to edit the files containing [Desktop Entry] Type=Application.

Such files are used to represent a program in kpanel and kfm.

Definition at line 608 of file kpropertiesdialog.h.


Constructor & Destructor Documentation

KApplicationPropsPlugin::KApplicationPropsPlugin KPropertiesDialog _props  ) 
 

Constructor.

Definition at line 2010 of file kpropertiesdialog.cpp.

References QGridLayout::addMultiCellWidget(), KDialogBase::addPage(), QGridLayout::addWidget(), KMimeType::allMimeTypes(), QValueList::begin(), KPropsDlgPlugin::changed(), QFile::close(), QObject::connect(), KPropertiesDialog::dialog(), QValueList::end(), QString::fromLatin1(), QPixmap::height(), QListBox::insertItem(), QString::isEmpty(), KPropertiesDialog::kurl(), QFile::open(), KURL::path(), QIconSet::pixmap(), KPropsDlgPlugin::properties, KConfigBase::readEntry(), KConfigBase::readListEntry(), QGridLayout::setColStretch(), KConfigBase::setDesktopGroup(), QPushButton::setIconSet(), QGridLayout::setRowStretch(), QListBox::setSelectionMode(), QLineEdit::setText(), QStringList::sort(), KDialog::spacingHint(), and QPixmap::width().


Member Function Documentation

void KApplicationPropsPlugin::applyChanges  )  [virtual]
 

Applies all changes to the file.

This function is called when the user presses 'Ok'. The last plugin inserted is called first.

Reimplemented from KPropsDlgPlugin.

Definition at line 2191 of file kpropertiesdialog.cpp.

References QFile::close(), QListBox::count(), KURL::fileName(), QString::fromLatin1(), QString::isEmpty(), KPropertiesDialog::kurl(), QString::length(), QFile::open(), KURL::path(), KPropsDlgPlugin::properties, QString::right(), KConfigBase::setDesktopGroup(), KMessageBox::sorry(), KSimpleConfig::sync(), QListBox::text(), QLineEdit::text(), QString::truncate(), and KConfigBase::writeEntry().


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.4.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sun Feb 27 22:15:34 2005 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001