A TabBar is a QToolBar which is specifically designed to store and manage Tabs, which are specialized QToolButtons that can hide and show other QWidgets (see Tab).
More...
#include <TabBar.h>
A TabBar is a QToolBar which is specifically designed to store and manage Tabs, which are specialized QToolButtons that can hide and show other QWidgets (see Tab).
- Author
- 2010-05-07 Eric Hyer
- See also
- Tab
◆ TabBar()
◆ ~TabBar()
Isis::TabBar::~TabBar |
( |
| ) |
|
|
virtual |
◆ addTab()
void Isis::TabBar::addTab |
( |
Tab * |
newTab | ) |
|
|
virtual |
◆ curSelectedTab()
int Isis::TabBar::curSelectedTab |
( |
| ) |
const |
◆ isSelected()
bool Isis::TabBar::isSelected |
( |
const int & |
index | ) |
|
- Parameters
-
index | Index of the Tab. The first Tab added to the bar has an index of 0. The last Tab added has an index of size() - 1. |
- Returns
- True if the Tab at the given index is selected, false otherwise
References size().
◆ noneSelected()
bool Isis::TabBar::noneSelected |
( |
| ) |
|
- Returns
- True if no Tabs are currently selected, false otherwise
◆ radioStyle()
bool Isis::TabBar::radioStyle |
( |
| ) |
|
◆ setEnabled()
void Isis::TabBar::setEnabled |
( |
bool |
newEnabledStatus | ) |
|
Custom setEnabled method that also calls setEnabled for each of our Tabs.
- Parameters
-
newEnabledStatus | The new enabled status that will be applied to the TabBar and all of its Tabs |
References size().
◆ setRadioStyle()
void Isis::TabBar::setRadioStyle |
( |
const bool & |
radioStyle | ) |
|
If set to true then the effect is that Tabs in the same radio group can only be selected one at a time.
When a Tab is selected all other Tabs in the same radio group would automatically be deselected. If set to false then all Tabs in the TabBar will behave independent from eachother regardless of how their radio groups are set.
- Parameters
-
radioStyle | True if radio style should be used, false otherwise |
References radioStyle().
◆ setSelected()
void Isis::TabBar::setSelected |
( |
const int & |
index, |
|
|
const bool & |
status |
|
) |
| |
Sets whether the Tab at the specified index is selected or not.
- Parameters
-
index | Index of the Tab. The first Tab added to the bar has an index of 0. The last Tab added has an index of size() - 1 |
status | True if the Tab should be selected, false otherwise |
References size().
◆ size()
int Isis::TabBar::size |
( |
| ) |
const |
The documentation for this class was generated from the following files:
- /usgs/pkgs/isis3.9.0_docs/ISIS3/isis/src/qisis/objs/TabBar/TabBar.h
- /usgs/pkgs/isis3.9.0_docs/ISIS3/isis/src/qisis/objs/TabBar/TabBar.cpp