KDevelop API Documentation

knotes_part.h

Go to the documentation of this file.
00001 /* This file is part of the KDE project
00002    Copyright (C) 2002 Daniel Molkentin <molkentin@kde.org>
00003 
00004    This program is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU 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 program 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    General Public License for more details.
00013 
00014    You should have received a copy of the GNU General Public License
00015    along with this program; see the file COPYING.  If not, write to
00016    the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00017    Boston, MA 02111-1307, USA.
00018 */
00019 
00020 #ifndef KNOTE_PART_H
00021 #define KNOTE_PART_H
00022 
00023 #include <qmap.h>
00024 #include <kparts/part.h>
00025 
00026 
00027 typedef QMap<int, QString> NotesMap;
00028 
00029 class KIconView;
00030 class QIconViewItem;
00031 class QPoint;
00032 
00033 class KNotesPart : public KParts::ReadOnlyPart
00034 {
00035   Q_OBJECT
00036 
00037 public:
00038 
00039   KNotesPart(QObject *parent=0, const char *name=0);
00040 
00041   bool openFile();
00042 
00043 public slots:
00044 
00045   void slotNewNote();
00046 
00047 protected slots:
00048   void slotNoteRenamed(QIconViewItem *item, const QString& text);
00049   void slotPopupRMB(QIconViewItem *item, const QPoint& pos);
00050   void slotRemoveCurrentNote();
00051   void slotRenameCurrentNote();
00052   void slotOpenNote(QIconViewItem* item);
00053 
00054 protected:
00055 
00056   void initKNotes();
00057   NotesMap fetchNotes();
00058 
00059 private:
00060 
00061   KIconView  *m_iconView;
00062   QPopupMenu *m_popupMenu;
00063 
00064 };
00065 
00066 
00067 #endif // KNOTE_PART_H
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Feb 22 09:22:41 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003