An official website of the United States government
Here’s how you know
Official websites use .gov
A
.gov website belongs to an official government
organization in the United States.
Secure .gov websites use HTTPS
A
lock
( ) or https:// means you’ve safely connected to
the .gov website. Share sensitive information only on official,
secure websites.
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 |
Note that The TabBar takes ownership of Tabs once they are added!
newTab | New Tab to be added |
References Isis::Tab::setPosition(), and Isis::Tab::setSelected().
int Isis::TabBar::curSelectedTab | ( | ) | const |
References radioStyle().
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 curSelectedTab(), and 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().