Loading [MathJax]/jax/output/NativeMML/config.js
Isis 3 Programmer Reference
Tab.h
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 
16 class QWidget;
17 
18 namespace 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
QWidget
Isis::Tab::getPosition
const int & getPosition() const
get the position of the Tab within a TabBar
Definition: Tab.cpp:49
Isis::Tab::setSelected
void setSelected(bool newStatus)
A selected Tab will look visually pressed and have its associatedWidget visible.
Definition: Tab.cpp:86
Isis::Tab::setPosition
void setPosition(const int &newPosition)
set the position of the Tab within a TabBar
Definition: Tab.cpp:42
Isis::Tab::Tab
Tab(QWidget *associatedWidget, QWidget *parent=0)
constructs a Tab
Definition: Tab.cpp:18
Isis::Tab::handleTriggered
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
Isis::Tab::setRadioGroup
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
Isis::Tab::isSelected
bool isSelected()
A selected Tab will look visually pressed and have its associatedWidget visible.
Definition: Tab.cpp:108
QAction
Isis::Tab::getRadioGroup
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
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Isis::Tab
A Tab is a QAction which shows or hides some other QWidget, which we call associatedWidget.
Definition: Tab.h:42
Isis::Tab::~Tab
virtual ~Tab()
destructs a Tab
Definition: Tab.cpp:35

U.S. Department of the Interior | U.S. Geological Survey
ISIS | Privacy & Disclaimers | Astrogeology Research Program
To contact us, please post comments and questions on the USGS Astrogeology Discussion Board
To report a bug, or suggest a feature go to: ISIS Github
File Modified: 07/13/2023 15:17:21