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

#include <BaseWidget.hpp>

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

Public Member Functions

 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

pajlada::Signals::Signal< float > scaleChanged
 

Protected Member Functions

virtual void childEvent (QChildEvent *) override
 
virtual void showEvent (QShowEvent *) override
 
virtual void scaleChangedEvent (float newScale)
 
virtual void themeChangedEvent ()
 
virtual void addShortcuts ()
 
void setScale (float value)
 
void clearShortcuts ()
 

Protected Attributes

Themetheme
 
std::vector< QShortcut * > shortcuts_
 
pajlada::Signals::SignalHolder signalHolder_
 

Friends

class BaseWindow
 

Constructor & Destructor Documentation

◆ BaseWidget()

chatterino::BaseWidget::BaseWidget ( QWidget *  parent = nullptr,
Qt::WindowFlags  f = Qt::WindowFlags() 
)
explicit
Here is the call graph for this function:

Member Function Documentation

◆ addShortcuts()

virtual void chatterino::BaseWidget::addShortcuts ( )
inlineprotectedvirtual

Reimplemented in chatterino::SplitInput.

Here is the call graph for this function:

◆ childEvent()

void chatterino::BaseWidget::childEvent ( QChildEvent *  event)
overrideprotectedvirtual

◆ clearShortcuts()

void chatterino::BaseWidget::clearShortcuts ( )
protected

◆ overrideScale()

boost::optional< float > chatterino::BaseWidget::overrideScale ( ) const
Here is the caller graph for this function:

◆ qtFontScale()

float chatterino::BaseWidget::qtFontScale ( ) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ scale()

float chatterino::BaseWidget::scale ( ) const
virtual

Reimplemented in chatterino::BaseWindow.

Here is the caller graph for this function:

◆ scaleChangedEvent()

void chatterino::BaseWidget::scaleChangedEvent ( float  newScale)
protectedvirtual

Reimplemented in chatterino::ChannelView, chatterino::SplitInput, chatterino::BaseWindow, chatterino::Notebook, chatterino::SettingsDialog, chatterino::SplitHeader, chatterino::TooltipWidget, chatterino::UserInfoPopup, and chatterino::Label.

Here is the caller graph for this function:

◆ scaleIndependantHeight()

int chatterino::BaseWidget::scaleIndependantHeight ( ) const

◆ scaleIndependantSize()

QSize chatterino::BaseWidget::scaleIndependantSize ( ) const
Here is the caller graph for this function:

◆ scaleIndependantWidth()

int chatterino::BaseWidget::scaleIndependantWidth ( ) const

◆ setOverrideScale()

void chatterino::BaseWidget::setOverrideScale ( boost::optional< float >  value)
Here is the call graph for this function:

◆ setScale()

void chatterino::BaseWidget::setScale ( float  value)
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setScaleIndependantHeight()

void chatterino::BaseWidget::setScaleIndependantHeight ( int  value)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setScaleIndependantSize() [1/2]

void chatterino::BaseWidget::setScaleIndependantSize ( int  width,
int  height 
)
Here is the caller graph for this function:

◆ setScaleIndependantSize() [2/2]

void chatterino::BaseWidget::setScaleIndependantSize ( QSize  size)
Here is the call graph for this function:

◆ setScaleIndependantWidth()

void chatterino::BaseWidget::setScaleIndependantWidth ( int  value)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ showEvent()

void chatterino::BaseWidget::showEvent ( QShowEvent *  )
overrideprotectedvirtual

Reimplemented in chatterino::SplitNotebook, chatterino::BaseWindow, chatterino::SettingsDialog, chatterino::SearchPopup, chatterino::NotebookButton, and chatterino::InputCompletionPopup.

Here is the call graph for this function:

◆ themeChangedEvent()

void chatterino::BaseWidget::themeChangedEvent ( )
protectedvirtual

Friends And Related Function Documentation

◆ BaseWindow

friend class BaseWindow
friend

Member Data Documentation

◆ scaleChanged

pajlada::Signals::Signal<float> chatterino::BaseWidget::scaleChanged

◆ shortcuts_

std::vector<QShortcut *> chatterino::BaseWidget::shortcuts_
protected

◆ signalHolder_

pajlada::Signals::SignalHolder chatterino::BaseWidget::signalHolder_
protected

◆ theme

Theme* chatterino::BaseWidget::theme
protected

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