# kio Library API Documentation

Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Source Files

# kmetaprops.h

    00001 /* This file is part of the KDE libraries
    00002     Copyright (C) 2001,2002 Rolf Magnus <ramagnus@kde.org>
    00003
    00004     library is free software; you can redistribute it and/or
    00005     modify it under the terms of the GNU Library General Public
    00006     License version 2 as published by the Free Software Foundation.
    00007
    00008     This library is distributed in the hope that it will be useful,
    00009     but WITHOUT ANY WARRANTY; without even the implied warranty of
    00010     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00011     Library General Public License for more details.
    00012
    00013     You should have received a copy of the GNU Library General Public License
    00014     along with this library; see the file COPYING.LIB.  If not, write to
    00015     the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    00016     Boston, MA 02111-1307, USA.
    00017
    00018     $Id: kmetaprops.h,v 1.9 2002/10/26 19:22:48 pfeiffer Exp $
    00019  */
    00020
    00021 #ifndef __KMETAPROPS_H__
    00022 #define __KMETAPROPS_H__
    00023 #include <kpropertiesdialog.h>
    00024
    00025
    00026 class KFileMetaInfoItem;
    00027
    00032 class KFileMetaPropsPlugin : public KPropsDlgPlugin
    00033 {
    00034   Q_OBJECT
    00035 public:
    00039   KFileMetaPropsPlugin( KPropertiesDialog *_props );
    00040   virtual ~KFileMetaPropsPlugin();
    00041
    00042   virtual void applyChanges();
    00043
    00047   static bool supports( KFileItemList _items );
    00048
    00049 private:
    00050     void createLayout();
    00051
    00052     QWidget* makeBoolWidget(const KFileMetaInfoItem& item, QWidget* parent);
    00053     QWidget* makeIntWidget(const KFileMetaInfoItem& item, QWidget* parent,
    00054                                                     QString& valClass);
    00055     QWidget* makeStringWidget(const KFileMetaInfoItem& item, QWidget* parent,
    00056                                                        QString& valClass);
    00057     QWidget* makeDateTimeWidget(const KFileMetaInfoItem& item, QWidget* parent,
    00058                                                      QString& valClass);
    00059
    00060 private slots:
    00061     // Code disabled until the "Add" button is implemented
    00062 //    void slotAdd();
    00063
    00064 private:
    00065
    00066   class KFileMetaPropsPluginPrivate;
    00067   KFileMetaPropsPluginPrivate *d;
    00068 };
    00069
    00070 #endif

This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Jan 28 13:13:39 2004 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001