F:/KPlato/koffice/libs/kofficecore/KoDetailsPane.h

Aller à la documentation de ce fichier.
00001 /* This file is part of the KDE project
00002    Copyright (C) 2005-2006 Peter Simonsson <psn@linux.se>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License as published by the Free Software Foundation; either
00007    version 2 of the License, or (at your option) any later version.
00008 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this library; see the file COPYING.LIB.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017    Boston, MA 02110-1301, USA.
00018 */
00019 #ifndef KODETAILSPANE_H
00020 #define KODETAILSPANE_H
00021 
00022 #include "ui_koDetailsPaneBase.h"
00023 
00024 class QEvent;
00025 class KInstance;
00026 class KUrl;
00027 class QStandardItemModel;
00028 
00029 class KoDetailsPanePrivate;
00030 
00031 class KoDetailsPane : public QWidget, public Ui_KoDetailsPaneBase
00032 {
00033   Q_OBJECT
00034   public:
00035     KoDetailsPane(QWidget* parent, KInstance* _instance, const QString& header);
00036     virtual ~KoDetailsPane();
00037 
00038     KInstance* instance();
00039 
00040     virtual bool eventFilter(QObject* watched, QEvent* e);
00041 
00043     QStandardItemModel* model() const;
00044 
00045   signals:
00047     void openUrl(const KUrl&);
00048 
00050     void splitterResized(KoDetailsPane* sender, const QList<int>& sizes);
00051 
00052   public slots:
00054     void resizeSplitter(KoDetailsPane* sender, const QList<int>& sizes);
00055 
00056   protected slots:
00058     virtual void selectionChanged(const QModelIndex& index) = 0;
00059     virtual void openFile();
00060     virtual void openFile(const QModelIndex& index) = 0;
00061 
00062     void changePalette();
00063 
00064   private:
00065     KoDetailsPanePrivate* d;
00066 };
00067 
00068 #endif //KODETAILSPANE_H

Généré le Wed Nov 22 23:41:02 2006 pour KPlato par  doxygen 1.5.1-p1