kontact Library API Documentation

knotes_part.h

00001 /* 00002 This file is part of the KDE project 00003 Copyright (C) 2002 Daniel Molkentin <molkentin@kde.org> 00004 00005 This program is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU General Public 00007 License as published by the Free Software Foundation; either 00008 version 2 of the License, or (at your option) any later version. 00009 00010 This program is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License 00016 along with this program; see the file COPYING. If not, write to 00017 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00018 Boston, MA 02111-1307, USA. 00019 */ 00020 00021 #ifndef KNOTE_PART_H 00022 #define KNOTE_PART_H 00023 00024 #include <qmap.h> 00025 #include <qpixmap.h> 00026 #include <kparts/part.h> 00027 #include <libkcal/calendarlocal.h> 00028 00029 typedef QMap<QString, QString> NotesMap; 00030 00031 class KAction; 00032 class KListView; 00033 00034 class QListViewItem; 00035 class QPoint; 00036 class QTextEdit; 00037 00038 class KNotesPart : public KParts::ReadOnlyPart 00039 { 00040 Q_OBJECT 00041 00042 public: 00043 KNotesPart( QObject *parent = 0, const char *name = 0 ); 00044 ~KNotesPart(); 00045 00046 bool openFile(); 00047 00048 public slots: 00049 void newNote(); 00050 00051 signals: 00052 void noteSelected( const QString &name ); 00053 void noteSelected( const QPixmap &pixmap ); 00054 00055 protected slots: 00056 void noteRenamed( QListViewItem *item, int col, const QString& text ); 00057 void popupRMB( QListViewItem *item, const QPoint& pos, int ); 00058 void removeNote(); 00059 void removeSelectedNotes(); 00060 void renameNote(); 00061 void showNote(); 00062 void showNote( QListViewItem* item ); 00063 void noteChanged(); 00064 void saveNote(); 00065 void reloadNotes(); 00066 00067 private: 00068 KCal::CalendarLocal *mICal; 00069 KCal::Journal::List mNotes; 00070 00071 KAction *mActionEdit; 00072 KAction *mActionDelete; 00073 00074 KListView *mNotesView; 00075 QTextEdit *mNotesEdit; 00076 QPixmap mAppIcon; 00077 QPopupMenu *mPopupMenu; 00078 00079 bool mNoteChanged; 00080 QString mCurrentNote; 00081 }; 00082 00083 #endif
KDE Logo
This file is part of the documentation for kontact Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Jul 28 23:58:15 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003