27 #include <kiconview.h>
28 #include <tdeglobal.h>
29 #include <kiconloader.h>
31 #include <libkcal/journal.h>
32 #include <tdeparts/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;
75 TQDateTime getLastModified( const TQString& id ) const;
81 void editNote( TQIconViewItem *item );
84 void renamedNote( TQIconViewItem *item );
86 void slotOnItem( TQIconViewItem *item );
87 void slotOnViewport();
88 void slotOnCurrentChanged( TQIconViewItem *item );
90 void popupRMB( TQIconViewItem *item, const TQPoint& pos );
91 void killSelectedNotes();
93 void printSelectedNotes();
96 TDEIconView *mNotesView;
98 KNoteEditDlg *mNoteEditDlg;
100 KNotesResourceManager *mManager;
101 TQDict<KNotesIconViewItem> mNoteList;
|