knotes_part.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
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
This file is part of the documentation for kontact Library Version 3.2.2.