00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef NoteTreeDlg_h
00018 #define NoteTreeDlg_h
00019
00020 #include <qlistview.h>
00021 #include "liturl.h"
00022
00023
00024
00025 class NoteTreeItem:public QListViewItem {
00026
00027 private:
00028 NoteTreeItem(const NoteTreeItem&);
00029 NoteTreeItem& operator=(const NoteTreeItem&);
00030 LitUrl _url;
00031 bool publnote;
00032 int parent;
00033 int sibling;
00034
00035 public:
00036 NoteTreeItem (NoteTreeItem *p, LitUrl u, const char *theText, QPixmap pm=QPixmap(), int parent=0, int sibling=0):
00037 QListViewItem(p, theText), _url(u), publnote(publnote), parent(parent), sibling(sibling) { setPixmap(0, pm); };
00038
00039 NoteTreeItem (QListView *p, LitUrl u, const char *theText, QPixmap pm=QPixmap(), int parent=0, int sibling=0):
00040 QListViewItem(p, theText), _url(u), publnote(publnote), parent(parent), sibling(sibling) { setPixmap(0, pm); };
00041
00042
00043 LitUrl url() { return _url; }
00044 int getParent() { return parent; }
00045 int getSibling() { return sibling; }
00046
00047 };
00048
00049 #endif
00050
00051
00052