Chatterino
Public Member Functions | Protected Member Functions | List of all members
chatterino::SplitNotebook Class Reference

#include <Notebook.hpp>

Inheritance diagram for chatterino::SplitNotebook:
[legend]
Collaboration diagram for chatterino::SplitNotebook:
[legend]

Public Member Functions

 SplitNotebook (Window *parent)
 
SplitContaineraddPage (bool select=false)
 
SplitContainergetOrAddSelectedPage ()
 
void select (QWidget *page, bool focusPage=true) override
 
- Public Member Functions inherited from chatterino::Notebook
 Notebook (QWidget *parent)
 
 ~Notebook () override=default
 
NotebookTabaddPage (QWidget *page, QString title=QString(), bool select=false)
 
void removePage (QWidget *page)
 
void removeCurrentPage ()
 
int indexOf (QWidget *page) const
 
void selectIndex (int index, bool focusPage=true)
 
void selectNextTab (bool focusPage=true)
 
void selectPreviousTab (bool focusPage=true)
 
void selectLastTab (bool focusPage=true)
 
int getPageCount () const
 
QWidget * getPageAt (int index) const
 
int getSelectedIndex () const
 
QWidget * getSelectedPage () const
 
QWidget * tabAt (QPoint point, int &index, int maxWidth=2000000000)
 
void rearrangePage (QWidget *page, int index)
 
bool getAllowUserTabManagement () const
 
void setAllowUserTabManagement (bool value)
 
bool getShowTabs () const
 
void setShowTabs (bool value)
 
bool getShowAddButton () const
 
void setShowAddButton (bool value)
 
void performLayout (bool animate=false)
 
void setTabLocation (NotebookTabLocation location)
 
bool isNotebookLayoutLocked () const
 
void setLockNotebookLayout (bool value)
 
void addNotebookActionsToMenu (QMenu *menu)
 
- Public Member Functions inherited from chatterino::BaseWidget
 BaseWidget (QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags())
 
virtual float scale () const
 
boost::optional< float > overrideScale () const
 
void setOverrideScale (boost::optional< float >)
 
QSize scaleIndependantSize () const
 
int scaleIndependantWidth () const
 
int scaleIndependantHeight () const
 
void setScaleIndependantSize (int width, int height)
 
void setScaleIndependantSize (QSize)
 
void setScaleIndependantWidth (int value)
 
void setScaleIndependantHeight (int value)
 
float qtFontScale () const
 

Protected Member Functions

void showEvent (QShowEvent *event) override
 
- Protected Member Functions inherited from chatterino::Notebook
virtual void scaleChangedEvent (float scale_) override
 
virtual void resizeEvent (QResizeEvent *) override
 
virtual void mousePressEvent (QMouseEvent *event) override
 
virtual void paintEvent (QPaintEvent *) override
 
NotebookButtongetAddButton ()
 
NotebookButtonaddCustomButton ()
 
const QList< Itemitems ()
 
- Protected Member Functions inherited from chatterino::BaseWidget
virtual void childEvent (QChildEvent *) override
 
virtual void themeChangedEvent ()
 
virtual void addShortcuts ()
 
void setScale (float value)
 
void clearShortcuts ()
 

Additional Inherited Members

- Public Attributes inherited from chatterino::BaseWidget
pajlada::Signals::Signal< float > scaleChanged
 
- Protected Attributes inherited from chatterino::BaseWidget
Themetheme
 
std::vector< QShortcut * > shortcuts_
 
pajlada::Signals::SignalHolder signalHolder_
 

Constructor & Destructor Documentation

◆ SplitNotebook()

chatterino::SplitNotebook::SplitNotebook ( Window parent)
Here is the call graph for this function:

Member Function Documentation

◆ addPage()

SplitContainer * chatterino::SplitNotebook::addPage ( bool  select = false)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getOrAddSelectedPage()

SplitContainer * chatterino::SplitNotebook::getOrAddSelectedPage ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ select()

void chatterino::SplitNotebook::select ( QWidget *  page,
bool  focusPage = true 
)
overridevirtual

Reimplemented from chatterino::Notebook.

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

◆ showEvent()

void chatterino::SplitNotebook::showEvent ( QShowEvent *  event)
overrideprotectedvirtual

Reimplemented from chatterino::BaseWidget.

Here is the call graph for this function:

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