27 #include <kiconview.h>
29 #include <kiconloader.h>
31 #include <libkcal/journal.h>
32 #include <kparts/part.h>
34 #include "knotes/KNotesIface.h"
38 class KNotesIconViewItem;
41 class KNotesResourceManager;
47 class KNotesPart : public KParts::ReadOnlyPart, virtual public KNotesIface
53 KNotesPart( TQObject *parent = 0, const char *name = 0 );
59 TQString newNote( const TQString& name = TQString(),
60 const TQString& text = TQString() );
61 TQString newNoteFromClipboard( const TQString& name = TQString() );
64 void killNote( const TQString& id );
65 void killNote( const TQString& id, bool force );
67 TQString name( const TQString& id ) const;
68 TQString text( const TQString& id ) const;
70 void setName( const TQString& id, const TQString& newName );
71 void setText( const TQString& id, const TQString& newText );
73 TQMap<TQString, TQString> notes() const;
79 void editNote( TQIconViewItem *item );
82 void renamedNote( TQIconViewItem *item );
84 void slotOnItem( TQIconViewItem *item );
85 void slotOnViewport();
86 void slotOnCurrentChanged( TQIconViewItem *item );
88 void popupRMB( TQIconViewItem *item, const TQPoint& pos );
89 void killSelectedNotes();
91 void printSelectedNotes();
94 KIconView *mNotesView;
96 KNoteEditDlg *mNoteEditDlg;
98 KNotesResourceManager *mManager;
99 TQDict<KNotesIconViewItem> mNoteList;
|