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

#include <NotebookTab.hpp>

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

Public Member Functions

 NotebookTab (Notebook *notebook)
 
void updateSize ()
 
void setCustomTitle (const QString &title)
 
void resetCustomTitle ()
 
bool hasCustomTitle () const
 
const QString & getCustomTitle () const
 
void setDefaultTitle (const QString &title)
 
const QString & getDefaultTitle () const
 
const QString & getTitle () const
 
bool isSelected () const
 
void setSelected (bool value)
 
void setInLastRow (bool value)
 
void setTabLocation (NotebookTabLocation location)
 
void setLive (bool isLive)
 
void setHighlightState (HighlightState style)
 
void setHighlightsEnabled (const bool &newVal)
 
bool hasHighlightsEnabled () const
 
void moveAnimated (QPoint pos, bool animated=true)
 
QRect getDesiredRect () const
 
void hideTabXChanged ()
 
void growWidth (int width)
 
int normalTabWidth ()
 
- Public Member Functions inherited from chatterino::Button
 Button (BaseWidget *parent=nullptr)
 
void setMouseEffectColor (boost::optional< QColor > color)
 
void setPixmap (const QPixmap &pixmap_)
 
const QPixmap & getPixmap () const
 
void setDim (Dim value)
 
Dim getDim () const
 
qreal getCurrentDimAmount () const
 
void setEnable (bool value)
 
bool getEnable () const
 
void setEnableMargin (bool value)
 
bool getEnableMargin () const
 
void setBorderColor (const QColor &color)
 
const QColor & getBorderColor () const
 
void setMenu (std::unique_ptr< 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
 

Public Attributes

QWidget * page
 
- Public Attributes inherited from chatterino::BaseWidget
pajlada::Signals::Signal< float > scaleChanged
 

Protected Member Functions

virtual void themeChangedEvent () override
 
virtual void paintEvent (QPaintEvent *) override
 
virtual void mousePressEvent (QMouseEvent *event) override
 
virtual void mouseReleaseEvent (QMouseEvent *event) override
 
virtual void mouseDoubleClickEvent (QMouseEvent *event) override
 
virtual void enterEvent (QEvent *) override
 
virtual void leaveEvent (QEvent *) override
 
virtual void dragEnterEvent (QDragEnterEvent *event) override
 
virtual void mouseMoveEvent (QMouseEvent *event) override
 
virtual void wheelEvent (QWheelEvent *event) override
 
- Protected Member Functions inherited from chatterino::Button
void fancyPaint (QPainter &painter)
 
- Protected Member Functions inherited from chatterino::BaseWidget
virtual void childEvent (QChildEvent *) override
 
virtual void showEvent (QShowEvent *) override
 
virtual void scaleChangedEvent (float newScale)
 
virtual void addShortcuts ()
 
void setScale (float value)
 
void clearShortcuts ()
 

Additional Inherited Members

- Public Types inherited from chatterino::Button
enum  Dim { Dim::None, Dim::Some, Dim::Lots }
 
- Signals inherited from chatterino::Button
void leftClicked ()
 
void clicked (Qt::MouseButton button)
 
void leftMousePress ()
 
- Protected Attributes inherited from chatterino::Button
bool enabled_ {true}
 
bool selected_ {false}
 
bool mouseOver_ {false}
 
bool mouseDown_ {false}
 
bool menuVisible_ {false}
 
- Protected Attributes inherited from chatterino::BaseWidget
Themetheme
 
std::vector< QShortcut * > shortcuts_
 
pajlada::Signals::SignalHolder signalHolder_
 

Constructor & Destructor Documentation

◆ NotebookTab()

chatterino::NotebookTab::NotebookTab ( Notebook notebook)
explicit
Here is the call graph for this function:

Member Function Documentation

◆ dragEnterEvent()

void chatterino::NotebookTab::dragEnterEvent ( QDragEnterEvent *  event)
overrideprotectedvirtual
Here is the call graph for this function:

◆ enterEvent()

void chatterino::NotebookTab::enterEvent ( QEvent *  event)
overrideprotectedvirtual

Reimplemented from chatterino::Button.

Here is the call graph for this function:

◆ getCustomTitle()

const QString & chatterino::NotebookTab::getCustomTitle ( ) const
Here is the caller graph for this function:

◆ getDefaultTitle()

const QString & chatterino::NotebookTab::getDefaultTitle ( ) const
Here is the caller graph for this function:

◆ getDesiredRect()

QRect chatterino::NotebookTab::getDesiredRect ( ) const
Here is the caller graph for this function:

◆ getTitle()

const QString & chatterino::NotebookTab::getTitle ( ) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ growWidth()

void chatterino::NotebookTab::growWidth ( int  width)
Here is the call graph for this function:

◆ hasCustomTitle()

bool chatterino::NotebookTab::hasCustomTitle ( ) const
Here is the caller graph for this function:

◆ hasHighlightsEnabled()

bool chatterino::NotebookTab::hasHighlightsEnabled ( ) const
Here is the caller graph for this function:

◆ hideTabXChanged()

void chatterino::NotebookTab::hideTabXChanged ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isSelected()

bool chatterino::NotebookTab::isSelected ( ) const
Here is the caller graph for this function:

◆ leaveEvent()

void chatterino::NotebookTab::leaveEvent ( QEvent *  event)
overrideprotectedvirtual

Reimplemented from chatterino::Button.

Here is the call graph for this function:

◆ mouseDoubleClickEvent()

void chatterino::NotebookTab::mouseDoubleClickEvent ( QMouseEvent *  event)
overrideprotectedvirtual
Here is the call graph for this function:

◆ mouseMoveEvent()

void chatterino::NotebookTab::mouseMoveEvent ( QMouseEvent *  event)
overrideprotectedvirtual

Reimplemented from chatterino::Button.

Here is the call graph for this function:

◆ mousePressEvent()

void chatterino::NotebookTab::mousePressEvent ( QMouseEvent *  event)
overrideprotectedvirtual

Reimplemented from chatterino::Button.

Here is the call graph for this function:

◆ mouseReleaseEvent()

void chatterino::NotebookTab::mouseReleaseEvent ( QMouseEvent *  event)
overrideprotectedvirtual

Reimplemented from chatterino::Button.

Here is the call graph for this function:

◆ moveAnimated()

void chatterino::NotebookTab::moveAnimated ( QPoint  pos,
bool  animated = true 
)

◆ normalTabWidth()

int chatterino::NotebookTab::normalTabWidth ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ paintEvent()

void chatterino::NotebookTab::paintEvent ( QPaintEvent *  )
overrideprotectedvirtual

Reimplemented from chatterino::Button.

Here is the call graph for this function:

◆ resetCustomTitle()

void chatterino::NotebookTab::resetCustomTitle ( )
Here is the call graph for this function:

◆ setCustomTitle()

void chatterino::NotebookTab::setCustomTitle ( const QString &  title)
Here is the caller graph for this function:

◆ setDefaultTitle()

void chatterino::NotebookTab::setDefaultTitle ( const QString &  title)
Here is the caller graph for this function:

◆ setHighlightsEnabled()

void chatterino::NotebookTab::setHighlightsEnabled ( const bool &  newVal)
Here is the caller graph for this function:

◆ setHighlightState()

void chatterino::NotebookTab::setHighlightState ( HighlightState  style)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setInLastRow()

void chatterino::NotebookTab::setInLastRow ( bool  value)

◆ setLive()

void chatterino::NotebookTab::setLive ( bool  isLive)
Here is the caller graph for this function:

◆ setSelected()

void chatterino::NotebookTab::setSelected ( bool  value)
Here is the caller graph for this function:

◆ setTabLocation()

void chatterino::NotebookTab::setTabLocation ( NotebookTabLocation  location)

◆ themeChangedEvent()

void chatterino::NotebookTab::themeChangedEvent ( )
overrideprotectedvirtual

Reimplemented from chatterino::BaseWidget.

Here is the call graph for this function:

◆ updateSize()

void chatterino::NotebookTab::updateSize ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ wheelEvent()

void chatterino::NotebookTab::wheelEvent ( QWheelEvent *  event)
overrideprotectedvirtual
Here is the call graph for this function:

Member Data Documentation

◆ page

QWidget* chatterino::NotebookTab::page

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