![]() |
Isis Developer Reference
|
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>
Public Member Functions | |
TabBar () | |
construct a TabBar | |
virtual | ~TabBar () |
destruct a TabBar | |
virtual void | addTab (Tab *newTab) |
Adds a Tab to the TabBar. | |
int | curSelectedTab () const |
void | 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. | |
bool | radioStyle () |
int | size () const |
void | setSelected (const int &index, const bool &status) |
Sets whether the Tab at the specified index is selected or not. | |
bool | isSelected (const int &index) |
bool | noneSelected () |
void | setEnabled (bool) |
Custom setEnabled method that also calls setEnabled for each of our Tabs. | |
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).
Isis::TabBar::TabBar | ( | ) |
construct a TabBar
|
virtual |
destruct a TabBar
|
virtual |
int Isis::TabBar::curSelectedTab | ( | ) | const |
bool Isis::TabBar::isSelected | ( | const int & | index | ) |
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. |
References isSelected(), and size().
Referenced by isSelected(), and noneSelected().
bool Isis::TabBar::noneSelected | ( | ) |
References isSelected().
bool Isis::TabBar::radioStyle | ( | ) |
Referenced by setRadioStyle().
void Isis::TabBar::setEnabled | ( | bool | newEnabledStatus | ) |
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.
radioStyle | True if radio style should be used, false otherwise |
References radioStyle().
void Isis::TabBar::setSelected | ( | const int & | index, |
const bool & | status ) |
int Isis::TabBar::size | ( | ) | const |
Referenced by isSelected(), setEnabled(), and setSelected().
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: 02/21/2025 22:08:22 |