OpenStudioCore:openstudio_lib
 All Classes Namespaces Functions Variables Enumerations Enumerator
Public Types | Signals | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
openstudio::MainTabView Class Reference

#include <MainTabView.hpp>

+ Inheritance diagram for openstudio::MainTabView:

Public Types

enum  TabType { MAIN_TAB, SUB_TAB, GRIDVIEW_SUB_TAB }
 

Signals

void tabSelected (int id)
 
void toggleUnitsClicked (bool displayIP)
 

Public Member Functions

bool addSubTab (const QString &subTabLabel, int id)
 ! Use this method only if your tab will have sub tabs More...
 
 MainTabView (const QString &tabLabel, TabType tabType,*parent=nullptr)
 
bool selectSubTabByIndex (int index)
 
void setTabType (TabType tabTyp)
 
virtual ~MainTabView ()
 

Public Attributes

QPointer< OSViewSwitcher > m_editView
 
bool addTabWidget * widget
 ! Use this method only if your tab will NOT have sub tabs More...
 
void setSubTab * widget
 

Protected Member Functions

void paintEvent (QPaintEvent *event) override
 
void resizeEvent (QResizeEvent *event) override
 
void setCurrentIndex (int index)
 

Protected Attributes

void setCurrentWidget * widget
 

Member Enumeration Documentation

Enumerator
MAIN_TAB 
SUB_TAB 
GRIDVIEW_SUB_TAB 

Constructor & Destructor Documentation

openstudio::MainTabView::MainTabView ( const QString &  tabLabel,
TabType  tabType,
parent = nullptr 
)
virtual openstudio::MainTabView::~MainTabView ( )
virtual

Member Function Documentation

bool openstudio::MainTabView::addSubTab ( const QString &  subTabLabel,
int  id 
)

! Use this method only if your tab will have sub tabs

void openstudio::MainTabView::paintEvent ( QPaintEvent *  event)
overrideprotected
void openstudio::MainTabView::resizeEvent ( QResizeEvent *  event)
overrideprotected
bool openstudio::MainTabView::selectSubTabByIndex ( int  index)
void openstudio::MainTabView::setCurrentIndex ( int  index)
protected
void openstudio::MainTabView::setTabType ( TabType  tabTyp)
void openstudio::MainTabView::tabSelected ( int  id)
signal
void openstudio::MainTabView::toggleUnitsClicked ( bool  displayIP)
signal

Member Data Documentation

QPointer<OSViewSwitcher> openstudio::MainTabView::m_editView
bool addTabWidget * openstudio::MainTabView::widget

! Use this method only if your tab will NOT have sub tabs

void setSubTab * openstudio::MainTabView::widget
void setCurrentWidget * openstudio::MainTabView::widget
protected