00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef ODINDIALOG_TREE_H
00019 #define ODINDIALOG_TREE_H
00020
00021
00022 #include <odinqt/odinqt.h>
00023
00024 #include <odinseq/seqtree.h>
00025
00026
00027
00028 class TreeDialog : public GuiDialog, public SeqTreeCallbackAbstract {
00029
00030 public:
00031 TreeDialog(QWidget *parent, const char* caption, const svector& column_labels);
00032 ~TreeDialog();
00033
00034 private:
00035
00036 void display_node(const SeqClass* thisnode, const SeqClass* parentnode, int treelevel, const svector& columntext);
00037
00038 GuiGridLayout* grid;
00039
00040 GuiListView* root;
00041
00042 STD_map<const SeqClass*, GuiListItem*> nodemap;
00043 STD_map<GuiListItem*, GuiListItem*> lastitemmap;
00044
00045 };
00046
00047 #endif