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
TabBar.h
Go to the documentation of this file.
1#ifndef TabBar_H
2#define TabBar_H
3
9
10/* SPDX-License-Identifier: CC0-1.0 */
11
12// QToolBar 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 <QToolBar>
15
16class QWidget;
17
18namespace Isis
19{
20 class Tab;
21
38 class TabBar : public QToolBar
39 {
40 Q_OBJECT
41
42 public:
43 TabBar();
44 virtual ~TabBar();
45
46 virtual void addTab(Tab * newTab);
47 int curSelectedTab() const;
48 void setRadioStyle(const bool & radioStyle);
49 bool radioStyle();
50 int size() const;
51
52 void setSelected(const int & index, const bool & status);
53 bool isSelected(const int & index);
54 bool noneSelected();
55 void setEnabled(bool);
56
57
58 private slots:
59 void tabClicked(const int & index);
60
61
62 private:
63 // functions
64 bool noOthersInGrpSelected(const int & index) const;
65 void deselectOthersInGrp(const int & index);
66
67
68 private:
69 // data
70 QVector< Tab * > * tabs;
71 bool radioStyleTabs;
72 };
73}
74
75#endif
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 tim...
Definition TabBar.cpp:66
int size() const
Definition TabBar.cpp:84
void setSelected(const int &index, const bool &status)
Sets whether the Tab at the specified index is selected or not.
Definition TabBar.cpp:98
virtual ~TabBar()
destruct a TabBar
Definition TabBar.cpp:28
bool noneSelected()
Definition TabBar.cpp:123
bool radioStyle()
Definition TabBar.cpp:75
virtual void addTab(Tab *newTab)
Adds a Tab to the TabBar.
Definition TabBar.cpp:44
TabBar()
construct a TabBar
Definition TabBar.cpp:18
void setEnabled(bool)
Custom setEnabled method that also calls setEnabled for each of our Tabs.
Definition TabBar.cpp:139
int curSelectedTab() const
bool isSelected(const int &index)
Definition TabBar.cpp:111
A Tab is a QAction which shows or hides some other QWidget, which we call associatedWidget.
Definition Tab.h:42
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16