Chatterino
|
#include <Notebook.hpp>
Public Member Functions | |
SplitNotebook (Window *parent) | |
SplitContainer * | addPage (bool select=false) |
SplitContainer * | getOrAddSelectedPage () |
void | select (QWidget *page, bool focusPage=true) override |
![]() | |
Notebook (QWidget *parent) | |
~Notebook () override=default | |
NotebookTab * | addPage (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) |
![]() | |
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 |
![]() | |
virtual void | scaleChangedEvent (float scale_) override |
virtual void | resizeEvent (QResizeEvent *) override |
virtual void | mousePressEvent (QMouseEvent *event) override |
virtual void | paintEvent (QPaintEvent *) override |
NotebookButton * | getAddButton () |
NotebookButton * | addCustomButton () |
const QList< Item > | items () |
![]() | |
virtual void | childEvent (QChildEvent *) override |
virtual void | themeChangedEvent () |
virtual void | addShortcuts () |
void | setScale (float value) |
void | clearShortcuts () |
Additional Inherited Members | |
![]() | |
pajlada::Signals::Signal< float > | scaleChanged |
![]() | |
Theme * | theme |
std::vector< QShortcut * > | shortcuts_ |
pajlada::Signals::SignalHolder | signalHolder_ |
chatterino::SplitNotebook::SplitNotebook | ( | Window * | parent | ) |
SplitContainer * chatterino::SplitNotebook::addPage | ( | bool | select = false | ) |
SplitContainer * chatterino::SplitNotebook::getOrAddSelectedPage | ( | ) |
|
overridevirtual |
Reimplemented from chatterino::Notebook.
|
overrideprotectedvirtual |