USGS

Isis 3.0 Application Source Code Reference

Home

TableColumn.h

Go to the documentation of this file.
00001 #ifndef TableColumn_H
00002 #define TableColumn_H
00003 
00004 #include <QObject>
00005 
00006 class QString;
00007 
00008 
00009 namespace Isis
00010 {
00011   namespace CnetViz
00012   {
00013 
00014     /**
00015      * @author ????-??-?? Unknown
00016      *
00017      * @internal
00018      */
00019     class TableColumn : public QObject
00020     {
00021         Q_OBJECT
00022 
00023       public:
00024         explicit TableColumn(QString, bool, bool);
00025         TableColumn(const TableColumn &);
00026         virtual ~TableColumn();
00027         QString getTitle() const;
00028         void setTitle(QString text);
00029         TableColumn & operator=(TableColumn);
00030         bool isVisible() const;
00031         void setVisible(bool);
00032         int getWidth() const;
00033         void setWidth(int);
00034         bool isReadOnly() const;
00035         void setReadOnly(bool);
00036         bool hasNetworkStructureEffect() const;
00037         bool sortAscending() const;
00038         void setSortAscending(bool ascending);
00039 
00040 
00041       public:
00042         static const int EDGE_WIDTH = 4;
00043 
00044 
00045       signals:
00046         void selected(TableColumn *);
00047         void sortOutDated();
00048         void widthChanged();
00049         void visibilityChanged();
00050 
00051 
00052       private: // methods
00053         void nullify();
00054 
00055 
00056       private: // data
00057         QString * title;
00058         bool visible;
00059         bool readOnly;
00060         int width;
00061         bool affectsNetworkStructure;
00062         bool ascendingSortOrder;
00063     };
00064   }
00065 }
00066 
00067 #endif