8 #include <QStylePainter> 20 this->associatedWidget = associatedWidget;
24 selectedStatus =
false;
30 ASSERT_PTR(associatedWidget);
37 associatedWidget = NULL;
44 position = newPosition;
63 radioGroup = newRadioGroup;
88 if (associatedWidget == NULL)
90 QString msg =
"Tab::setSelected called but can't show or hide the " 91 "associatedWidget because it is NULL!";
95 setChecked(newStatus);
96 newStatus ? associatedWidget->show() : associatedWidget->hide();
97 selectedStatus = newStatus;
110 return selectedStatus;
122 emit clicked(position);
const int & getPosition() const
get the position of the Tab within a TabBar
void handleTriggered()
This SLOT is executed when the Tab is clicked, and emits its own clicked SIGNAL (which contains its i...
bool isSelected()
A selected Tab will look visually pressed and have its associatedWidget visible.
const int & getRadioGroup() const
Tabs which share a radio group have the property that only only one Tab in the group can be selected ...
This error is for when a programmer made an API call that was illegal.
void setSelected(bool newStatus)
A selected Tab will look visually pressed and have its associatedWidget visible.
#define _FILEINFO_
Macro for the filename and line number.
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 ...
void setPosition(const int &newPosition)
set the position of the Tab within a TabBar
Namespace for ISIS/Bullet specific routines.
virtual ~Tab()
destructs a Tab
Tab(QWidget *associatedWidget, QWidget *parent=0)
constructs a Tab