|
lmms
Cross-platform music production software
|
#include <TabWidget.h>
Classes | |
| struct | widgetDesc |
Public Member Functions | |
| TabWidget (const QString &caption, QWidget *parent, bool usePixmap=false, bool resizable=false) | |
| ~TabWidget () override=default | |
| void | addTab (QWidget *w, const QString &name, const char *pixmap=nullptr, int idx=-1) |
| void | setActiveTab (int idx) |
| int | findTabAtPos (const QPoint &pos) |
| int | activeTab () const |
| QColor | tabText () const |
| void | setTabText (const QColor &c) |
| QColor | tabTitleText () const |
| void | setTabTitleText (const QColor &c) |
| QColor | tabSelected () const |
| void | setTabSelected (const QColor &c) |
| QColor | tabTextSelected () const |
| void | setTabTextSelected (const QColor &c) |
| QColor | tabBackground () const |
| void | setTabBackground (const QColor &c) |
| QColor | tabBorder () const |
| void | setTabBorder (const QColor &c) |
Protected Member Functions | |
| bool | event (QEvent *event) override |
| void | mousePressEvent (QMouseEvent *me) override |
| void | paintEvent (QPaintEvent *pe) override |
| void | resizeEvent (QResizeEvent *re) override |
| void | wheelEvent (QWheelEvent *we) override |
| QSize | minimumSizeHint () const override |
| QSize | sizeHint () const override |
Properties | |
| QColor | tabText |
| QColor | tabTitleText |
| QColor | tabSelected |
| QColor | tabTextSelected |
| QColor | tabBackground |
| QColor | tabBorder |
Private Types | |
| using | widgetStack = QMap<int, widgetDesc> |
Private Attributes | |
| widgetStack | m_widgets |
| bool | m_resizable |
| int | m_activeTab |
| QString | m_caption |
| quint8 | m_tabbarHeight |
| quint8 | m_tabheight |
| bool | m_usePixmap |
| QColor | m_tabText |
| QColor | m_tabTitleText |
| QColor | m_tabSelected |
| QColor | m_tabTextSelected |
| QColor | m_tabBackground |
| QColor | m_tabBorder |
|
private |
| lmms::gui::TabWidget::TabWidget | ( | const QString & | caption, |
| QWidget * | parent, | ||
| bool | usePixmap = false, | ||
| bool | resizable = false ) |
| caption | Text describing the tab group as a whole |
| parent | The parent widget |
| usePixmap | Whether to enable use of pixmap icons in tabs |
| resizable | If true, the widget resizes to fit the size of all tabs. If false, all child widget will be cut down to the TabWidget's size. |
|
overridedefault |
|
inline |
| void lmms::gui::TabWidget::addTab | ( | QWidget * | w, |
| const QString & | name, | ||
| const char * | pixmap = nullptr, | ||
| int | idx = -1 ) |
|
overrideprotected |
| int lmms::gui::TabWidget::findTabAtPos | ( | const QPoint & | pos | ) |
|
overrideprotected |
|
overrideprotected |
|
overrideprotected |
|
overrideprotected |
| void lmms::gui::TabWidget::setActiveTab | ( | int | idx | ) |
| void lmms::gui::TabWidget::setTabBackground | ( | const QColor & | c | ) |
| void lmms::gui::TabWidget::setTabBorder | ( | const QColor & | c | ) |
| void lmms::gui::TabWidget::setTabSelected | ( | const QColor & | c | ) |
| void lmms::gui::TabWidget::setTabText | ( | const QColor & | c | ) |
| void lmms::gui::TabWidget::setTabTextSelected | ( | const QColor & | c | ) |
| void lmms::gui::TabWidget::setTabTitleText | ( | const QColor & | c | ) |
|
overrideprotected |
| QColor lmms::gui::TabWidget::tabBackground | ( | ) | const |
| QColor lmms::gui::TabWidget::tabBorder | ( | ) | const |
| QColor lmms::gui::TabWidget::tabSelected | ( | ) | const |
| QColor lmms::gui::TabWidget::tabText | ( | ) | const |
| QColor lmms::gui::TabWidget::tabTextSelected | ( | ) | const |
| QColor lmms::gui::TabWidget::tabTitleText | ( | ) | const |
|
overrideprotected |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |