USGS

Isis 3.0 Application Source Code Reference

Home

TreeView.h

Go to the documentation of this file.
00001 #ifndef TreeView_H
00002 #define TreeView_H
00003 
00004 #include <QWidget>
00005 
00006 
00007 template< typename t > class QList;
00008 
00009 
00010 namespace Isis
00011 {
00012   namespace CnetViz
00013   {
00014     class AbstractTreeItem;
00015     class TreeViewContent;
00016     class TreeViewHeader;
00017     class AbstractTreeModel;
00018 
00019     /**
00020      * @author ????-??-?? Unknown
00021      *
00022      * @internal
00023      */
00024     class TreeView : public QWidget
00025     {
00026         Q_OBJECT
00027 
00028       signals:
00029         void activated();
00030         void selectionChanged();
00031 
00032 
00033       public:
00034         TreeView(QWidget * parent = 0);
00035         virtual ~TreeView();
00036         QSize sizeHint();
00037         QFont getContentFont() const;
00038         void setModel(AbstractTreeModel * someModel);
00039         AbstractTreeModel * getModel() const;
00040         bool isActive() const;
00041         QString getTitle() const;
00042         void setTitle(QString someTitle);
00043 
00044 
00045       public slots:
00046         void deactivate();
00047         void activate();
00048         void handleModelSelectionChanged();
00049 
00050 
00051       private: // disable copying and assigning of this class
00052         TreeView(const TreeView &);
00053         TreeView & operator=(const TreeView & other);
00054 
00055 
00056       private: // methods
00057         void nullify();
00058 
00059 
00060       private: // data
00061         TreeViewHeader * header;
00062         TreeViewContent * content;
00063         bool active;
00064     };
00065   }
00066 }
00067 
00068 #endif