PeriDyno 1.0.0
Loading...
Searching...
No Matches
tt::TabToolbar Class Reference

#include <TabToolbar.h>

Inheritance diagram for tt::TabToolbar:
Collaboration diagram for tt::TabToolbar:

Signals

void Minimized ()
 
void Maximized ()
 
void SpecialTabClicked ()
 
void StyleChanged ()
 

Public Member Functions

 TabToolbar (QWidget *parent=nullptr, unsigned _groupMaxHeight=75, unsigned _groupRowCount=3)
 
virtual ~TabToolbar ()
 
void SetSpecialTabEnabled (bool enabled)
 
PageAddPage (const QString &pageName)
 
PageAddPage (const QIcon &icon, const QString &pageName)
 
QAction * HideAction ()
 
void AddCornerAction (QAction *action)
 
void SetStyle (const QString &styleName)
 
QString GetStyle () const
 
unsigned RowCount () const
 
unsigned GroupMaxHeight () const
 
int CurrentTab () const
 
void SetCurrentTab (int index)
 

Protected Member Functions

bool event (QEvent *event) override
 

Private Slots

void FocusChanged (QWidget *old, QWidget *now)
 
void TabClicked (int index)
 
void CurrentTabChanged (int index)
 
void HideAt (int index=-1)
 
void HideTab (int index)
 
void ShowTab (int index)
 

Private Member Functions

void AdjustVerticalSize (unsigned vSize)
 

Private Attributes

const unsigned groupRowCount
 
const unsigned groupMaxHeight
 
bool hasSpecialTab = false
 
int currentIndex = 0
 
unsigned maxHeight = QWIDGETSIZE_MAX
 
QFrame * cornerActions = nullptr
 
QAction * hideAction = nullptr
 
QToolButton * hideButton = nullptr
 
QAction * tabBarHandle = nullptr
 
QTabWidget * tabBar = nullptr
 
bool ignoreStyleEvent = false
 
bool isMinimized = false
 
bool isShown = true
 
QTimer tempShowTimer
 
std::unique_ptr< StyleParamsstyle
 

Friends

class Page
 

Detailed Description

Definition at line 37 of file TabToolbar.h.

Constructor & Destructor Documentation

◆ TabToolbar()

TabToolbar::TabToolbar ( QWidget * parent = nullptr,
unsigned _groupMaxHeight = 75,
unsigned _groupRowCount = 3 )
explicit

Definition at line 36 of file TabToolbar.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~TabToolbar()

TabToolbar::~TabToolbar ( )
virtual

Definition at line 100 of file TabToolbar.cpp.

Member Function Documentation

◆ AddCornerAction()

void TabToolbar::AddCornerAction ( QAction * action)

Definition at line 161 of file TabToolbar.cpp.

◆ AddPage() [1/2]

tt::Page * tt::TabToolbar::AddPage ( const QIcon & icon,
const QString & pageName )

Definition at line 295 of file TabToolbar.cpp.

Here is the call graph for this function:

◆ AddPage() [2/2]

Page * TabToolbar::AddPage ( const QString & pageName)

Definition at line 285 of file TabToolbar.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AdjustVerticalSize()

void TabToolbar::AdjustVerticalSize ( unsigned vSize)
private

Definition at line 267 of file TabToolbar.cpp.

Here is the caller graph for this function:

◆ CurrentTab()

int TabToolbar::CurrentTab ( ) const

Definition at line 216 of file TabToolbar.cpp.

◆ CurrentTabChanged

void TabToolbar::CurrentTabChanged ( int index)
privateslot

Definition at line 202 of file TabToolbar.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ event()

bool TabToolbar::event ( QEvent * event)
overrideprotected

Definition at line 104 of file TabToolbar.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FocusChanged

void TabToolbar::FocusChanged ( QWidget * old,
QWidget * now )
privateslot

Definition at line 115 of file TabToolbar.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetStyle()

QString TabToolbar::GetStyle ( ) const

Definition at line 154 of file TabToolbar.cpp.

◆ GroupMaxHeight()

unsigned TabToolbar::GroupMaxHeight ( ) const

Definition at line 140 of file TabToolbar.cpp.

Here is the call graph for this function:

◆ HideAction()

QAction * TabToolbar::HideAction ( )

Definition at line 182 of file TabToolbar.cpp.

◆ HideAt

void TabToolbar::HideAt ( int index = -1)
privateslot

Definition at line 226 of file TabToolbar.cpp.

Here is the caller graph for this function:

◆ HideTab

void TabToolbar::HideTab ( int index)
privateslot

Definition at line 251 of file TabToolbar.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Maximized

void tt::TabToolbar::Maximized ( )
signal
Here is the caller graph for this function:

◆ Minimized

void tt::TabToolbar::Minimized ( )
signal
Here is the caller graph for this function:

◆ RowCount()

unsigned TabToolbar::RowCount ( ) const

Definition at line 135 of file TabToolbar.cpp.

◆ SetCurrentTab()

void TabToolbar::SetCurrentTab ( int index)

Definition at line 221 of file TabToolbar.cpp.

◆ SetSpecialTabEnabled()

void TabToolbar::SetSpecialTabEnabled ( bool enabled)

Definition at line 172 of file TabToolbar.cpp.

◆ SetStyle()

void TabToolbar::SetStyle ( const QString & styleName)

Definition at line 145 of file TabToolbar.cpp.

Here is the call graph for this function:

◆ ShowTab

void TabToolbar::ShowTab ( int index)
privateslot

Definition at line 277 of file TabToolbar.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SpecialTabClicked

void tt::TabToolbar::SpecialTabClicked ( )
signal
Here is the caller graph for this function:

◆ StyleChanged

void tt::TabToolbar::StyleChanged ( )
signal
Here is the call graph for this function:
Here is the caller graph for this function:

◆ TabClicked

void TabToolbar::TabClicked ( int index)
privateslot

Definition at line 187 of file TabToolbar.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ Page

friend class Page
friend

Definition at line 92 of file TabToolbar.h.

Member Data Documentation

◆ cornerActions

QFrame* tt::TabToolbar::cornerActions = nullptr
private

Definition at line 81 of file TabToolbar.h.

◆ currentIndex

int tt::TabToolbar::currentIndex = 0
private

Definition at line 79 of file TabToolbar.h.

◆ groupMaxHeight

const unsigned tt::TabToolbar::groupMaxHeight
private

Definition at line 77 of file TabToolbar.h.

◆ groupRowCount

const unsigned tt::TabToolbar::groupRowCount
private

Definition at line 76 of file TabToolbar.h.

◆ hasSpecialTab

bool tt::TabToolbar::hasSpecialTab = false
private

Definition at line 78 of file TabToolbar.h.

◆ hideAction

QAction* tt::TabToolbar::hideAction = nullptr
private

Definition at line 82 of file TabToolbar.h.

◆ hideButton

QToolButton* tt::TabToolbar::hideButton = nullptr
private

Definition at line 83 of file TabToolbar.h.

◆ ignoreStyleEvent

bool tt::TabToolbar::ignoreStyleEvent = false
private

Definition at line 86 of file TabToolbar.h.

◆ isMinimized

bool tt::TabToolbar::isMinimized = false
private

Definition at line 87 of file TabToolbar.h.

◆ isShown

bool tt::TabToolbar::isShown = true
private

Definition at line 88 of file TabToolbar.h.

◆ maxHeight

unsigned tt::TabToolbar::maxHeight = QWIDGETSIZE_MAX
private

Definition at line 80 of file TabToolbar.h.

◆ style

std::unique_ptr<StyleParams> tt::TabToolbar::style
private

Definition at line 90 of file TabToolbar.h.

◆ tabBar

QTabWidget* tt::TabToolbar::tabBar = nullptr
private

Definition at line 85 of file TabToolbar.h.

◆ tabBarHandle

QAction* tt::TabToolbar::tabBarHandle = nullptr
private

Definition at line 84 of file TabToolbar.h.

◆ tempShowTimer

QTimer tt::TabToolbar::tempShowTimer
private

Definition at line 89 of file TabToolbar.h.


The documentation for this class was generated from the following files: