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

#include <GeneralPageView.hpp>

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

Public Member Functions

 GeneralPageView (QWidget *parent=nullptr)
 
void addWidget (QWidget *widget)
 
void addLayout (QLayout *layout)
 
void addStretch ()
 
TitleLabeladdTitle (const QString &text)
 
SubtitleLabeladdSubtitle (const QString &text)
 
QCheckBox * addCheckbox (const QString &text, BoolSetting &setting, bool inverse=false, QString toolTipText={})
 
ComboBoxaddDropdown (const QString &text, const QStringList &items, QString toolTipText={})
 
ComboBoxaddDropdown (const QString &text, const QStringList &items, pajlada::Settings::Setting< QString > &setting, bool editable=false, QString toolTipText={})
 
ColorButtonaddColorButton (const QString &text, const QColor &color, pajlada::Settings::Setting< QString > &setting, QString toolTipText={})
 
QSpinBox * addIntInput (const QString &text, IntSetting &setting, int min, int max, int step, QString toolTipText={})
 
void addNavigationSpacing ()
 
template<typename OnClick >
QPushButton * makeButton (const QString &text, OnClick onClick)
 
template<typename OnClick >
QPushButton * addButton (const QString &text, OnClick onClick)
 
template<typename T >
ComboBoxaddDropdown (const QString &text, const QStringList &items, pajlada::Settings::Setting< T > &setting, std::function< boost::variant< int, QString >(T)> getValue, std::function< T(DropdownArgs)> setValue, bool editable=true, QString toolTipText={})
 
DescriptionLabeladdDescription (const QString &text)
 
void addSeperator ()
 
bool filterElements (const QString &query)
 

Protected Member Functions

void resizeEvent (QResizeEvent *ev) override
 

Constructor & Destructor Documentation

◆ GeneralPageView()

chatterino::GeneralPageView::GeneralPageView ( QWidget *  parent = nullptr)
Here is the call graph for this function:

Member Function Documentation

◆ addButton()

template<typename OnClick >
QPushButton* chatterino::GeneralPageView::addButton ( const QString &  text,
OnClick  onClick 
)
inline
Here is the caller graph for this function:

◆ addCheckbox()

QCheckBox * chatterino::GeneralPageView::addCheckbox ( const QString &  text,
BoolSetting setting,
bool  inverse = false,
QString  toolTipText = {} 
)
Parameters
inverseInverses true to false and vice versa
Here is the call graph for this function:
Here is the caller graph for this function:

◆ addColorButton()

ColorButton * chatterino::GeneralPageView::addColorButton ( const QString &  text,
const QColor &  color,
pajlada::Settings::Setting< QString > &  setting,
QString  toolTipText = {} 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ addDescription()

DescriptionLabel * chatterino::GeneralPageView::addDescription ( const QString &  text)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ addDropdown() [1/3]

ComboBox * chatterino::GeneralPageView::addDropdown ( const QString &  text,
const QStringList &  items,
QString  toolTipText = {} 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ addDropdown() [2/3]

ComboBox * chatterino::GeneralPageView::addDropdown ( const QString &  text,
const QStringList &  items,
pajlada::Settings::Setting< QString > &  setting,
bool  editable = false,
QString  toolTipText = {} 
)
Here is the call graph for this function:

◆ addDropdown() [3/3]

template<typename T >
ComboBox* chatterino::GeneralPageView::addDropdown ( const QString &  text,
const QStringList &  items,
pajlada::Settings::Setting< T > &  setting,
std::function< boost::variant< int, QString >(T)>  getValue,
std::function< T(DropdownArgs)>  setValue,
bool  editable = true,
QString  toolTipText = {} 
)
inline
Here is the call graph for this function:

◆ addIntInput()

QSpinBox * chatterino::GeneralPageView::addIntInput ( const QString &  text,
IntSetting setting,
int  min,
int  max,
int  step,
QString  toolTipText = {} 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ addLayout()

void chatterino::GeneralPageView::addLayout ( QLayout *  layout)
Here is the caller graph for this function:

◆ addNavigationSpacing()

void chatterino::GeneralPageView::addNavigationSpacing ( )
Here is the caller graph for this function:

◆ addSeperator()

void chatterino::GeneralPageView::addSeperator ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ addStretch()

void chatterino::GeneralPageView::addStretch ( )
Here is the caller graph for this function:

◆ addSubtitle()

SubtitleLabel * chatterino::GeneralPageView::addSubtitle ( const QString &  text)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ addTitle()

TitleLabel * chatterino::GeneralPageView::addTitle ( const QString &  text)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ addWidget()

void chatterino::GeneralPageView::addWidget ( QWidget *  widget)
Here is the caller graph for this function:

◆ filterElements()

bool chatterino::GeneralPageView::filterElements ( const QString &  query)
Here is the caller graph for this function:

◆ makeButton()

template<typename OnClick >
QPushButton* chatterino::GeneralPageView::makeButton ( const QString &  text,
OnClick  onClick 
)
inline
Here is the caller graph for this function:

◆ resizeEvent()

void chatterino::GeneralPageView::resizeEvent ( QResizeEvent *  ev)
inlineoverrideprotected

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