Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

notetreeitem.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *                                                                         *
00003  *   notetreeitem.h                                                                *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   Read the file COPYING for details.                                    *
00011  *                                                                         *
00012  *   copyright: (C) 2003 by Jan Mueller                                    *
00013  *   email: janmueller7@hotmail.com                                        *
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 

Generated on Sat Mar 27 19:20:41 2004 for Literature by doxygen 1.3.6-20040222