00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef NOTEOVERVIEWFORM_H
00011 #define NOTEOVERVIEWFORM_H
00012
00013 #include <qvariant.h>
00014 #include <qpixmap.h>
00015 #include <qwidget.h>
00016 #include <qpopupmenu.h>
00017
00018 class QVBoxLayout;
00019 class QHBoxLayout;
00020 class QGridLayout;
00021 class DragNotesListView;
00022 struct noterec;
00023 class NoteTreeItem;
00024 class QPopupMenu;
00025 class QListViewItem;
00026 class LitUrl;
00027
00028 class NoteOverviewForm : public QWidget
00029 {
00030 Q_OBJECT
00031
00032 public:
00033 NoteOverviewForm( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
00034 ~NoteOverviewForm();
00035
00036 DragNotesListView* notesview;
00037
00038 virtual LitUrl url();
00039
00040 public slots:
00041 virtual void setData( bool withpubls );
00042 virtual void addItem( QPtrList<noterec> & n, int parentoid, NoteTreeItem * parentitem );
00043 virtual void open( bool newwin );
00044 virtual void slotSelected( QListViewItem * i );
00045 virtual void slotOpen();
00046 virtual void slotNewWindow();
00047 virtual void slotNewItem();
00048 virtual void slotPopupMenu( QListViewItem * item, const QPoint & p, int c );
00049
00050 protected:
00051 QPopupMenu pop;
00052
00053 QHBoxLayout* NoteOverviewFormLayout;
00054
00055 protected slots:
00056 virtual void languageChange();
00057
00058 private:
00059 QPixmap image0;
00060
00061 void init();
00062
00063 };
00064
00065 #endif // NOTEOVERVIEWFORM_H