Isis 3 Programmer Reference
Tab.h
Go to the documentation of this file.
1 #ifndef Tab_H
2 #define Tab_H
3 
26 // QAction is the parent of this class, and should be the ONLY include
27 // in this file. Do not add any other includes to this header file!
28 #include <QAction>
29 
30 class QWidget;
31 
32 namespace Isis
33 {
55  class Tab : public QAction
56  {
57  Q_OBJECT
58 
59  public:
60  Tab(QWidget * associatedWidget, QWidget * parent = 0);
61 
62  virtual ~Tab();
63 
64  void setPosition(const int & newPosition);
65  const int & getPosition() const;
66  void setRadioGroup(const int & newRadioGroup);
67  const int & getRadioGroup() const;
68  void setSelected(bool newStatus);
69  bool isSelected();
70 
71  signals:
72  void clicked(const int &);
73 
74 
75  private:
76  Tab(const Tab & other);
77  const Tab & operator=(Tab);
78 
79 
80  private slots:
81  void handleTriggered();
82 
83  private:
84  QWidget * associatedWidget;
85  int position;
86  int radioGroup;
87  int location;
88  bool selectedStatus;
89  };
90 }
91 
92 #endif
const int & getPosition() const
get the position of the Tab within a TabBar
Definition: Tab.cpp:49
void handleTriggered()
This SLOT is executed when the Tab is clicked, and emits its own clicked SIGNAL (which contains its i...
Definition: Tab.cpp:120
bool isSelected()
A selected Tab will look visually pressed and have its associatedWidget visible.
Definition: Tab.cpp:108
const int & getRadioGroup() const
Tabs which share a radio group have the property that only only one Tab in the group can be selected ...
Definition: Tab.cpp:73
void setSelected(bool newStatus)
A selected Tab will look visually pressed and have its associatedWidget visible.
Definition: Tab.cpp:86
A Tab is a QAction which shows or hides some other QWidget, which we call associatedWidget.
Definition: Tab.h:55
void setRadioGroup(const int &newRadioGroup)
Tabs which share a radio group have the property that only only one Tab in the group can be selected ...
Definition: Tab.cpp:61
void setPosition(const int &newPosition)
set the position of the Tab within a TabBar
Definition: Tab.cpp:42
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
virtual ~Tab()
destructs a Tab
Definition: Tab.cpp:35
Tab(QWidget *associatedWidget, QWidget *parent=0)
constructs a Tab
Definition: Tab.cpp:18