USGS

Isis 3.0 Developer's Reference (API)

Home

Tab.h

Go to the documentation of this file.
00001 #ifndef Tab_H
00002 #define Tab_H
00003 
00026 // QAction is the parent of this class, and should be the ONLY include
00027 // in this file.  Do not add any other includes to this header file!
00028 #include <QAction>
00029 
00030 class QWidget;
00031 
00032 namespace Isis
00033 {
00055   class Tab : public QAction
00056   {
00057       Q_OBJECT
00058 
00059     public:
00060       Tab(QWidget * associatedWidget, QWidget * parent = 0);
00061 
00062       virtual ~Tab();
00063 
00064       void setPosition(const int & newPosition);
00065       const int & getPosition() const;
00066       void setRadioGroup(const int & newRadioGroup);
00067       const int & getRadioGroup() const;
00068       void setSelected(bool newStatus);
00069       bool isSelected();
00070 
00071     signals:
00072       void clicked(const int &);
00073 
00074       
00075     private:
00076       Tab(const Tab & other);
00077       const Tab & operator=(Tab);
00078       
00079       
00080     private slots:
00081       void handleTriggered();
00082 
00083     private:
00084       QWidget * associatedWidget;
00085       int position;
00086       int radioGroup;
00087       int location;
00088       bool selectedStatus;
00089   };
00090 }
00091 
00092 #endif