Isis Developer Reference
Tab.h
Go to the documentation of this file.
1#ifndef Tab_H
2#define Tab_H
3
10/* SPDX-License-Identifier: CC0-1.0 */
11
12// QAction is the parent of this class, and should be the ONLY include
13// in this file. Do not add any other includes to this header file!
14#include <QAction>
15
16class QWidget;
17
18namespace Isis
19{
41 class Tab : public QAction
42 {
43 Q_OBJECT
44
45 public:
46 Tab(QWidget * associatedWidget, QWidget * parent = 0);
47
48 virtual ~Tab();
49
50 void setPosition(const int & newPosition);
51 const int & getPosition() const;
52 void setRadioGroup(const int & newRadioGroup);
53 const int & getRadioGroup() const;
54 void setSelected(bool newStatus);
55 bool isSelected();
56
57 signals:
58 void clicked(const int &);
59
60
61 private:
62 Tab(const Tab & other);
63 const Tab & operator=(Tab);
64
65
66 private slots:
67 void handleTriggered();
68
69 private:
70 QWidget * associatedWidget;
71 int position;
72 int radioGroup;
73 int location;
74 bool selectedStatus;
75 };
76}
77
78#endif
A Tab is a QAction which shows or hides some other QWidget, which we call associatedWidget.
Definition Tab.h:42
bool isSelected()
A selected Tab will look visually pressed and have its associatedWidget visible.
Definition Tab.cpp:104
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:69
const int & getPosition() const
get the position of the Tab within a TabBar
Definition Tab.cpp:45
void setSelected(bool newStatus)
A selected Tab will look visually pressed and have its associatedWidget visible.
Definition Tab.cpp:82
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:57
void setPosition(const int &newPosition)
set the position of the Tab within a TabBar
Definition Tab.cpp:38
void clicked(const int &)
Tab(QWidget *associatedWidget, QWidget *parent=0)
constructs a Tab
Definition Tab.cpp:16
virtual ~Tab()
destructs a Tab
Definition Tab.cpp:31
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16