|
game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
|
#include <draggable_toolbar.h>
Public Member Functions | |
| DraggableToolbar (QWidget *parent=nullptr, ThemeManager *themeManager=nullptr) | |
| DraggableToolbarSection * | addSection (const QString &id, const QString &displayName=QString()) |
| void | addSpacer () |
| void | applyTheme () |
| bool | hasSpacerBefore (const QString §ionId) const |
| void | insertSpacerBefore (const QString §ionId) |
| bool | isLocked () const |
| void | lockedChanged (bool locked) |
| void | removeSpacerBefore (const QString §ionId) |
| DraggableToolbarSection * | section (const QString &id) const |
| QStringList | sectionOrder () const |
| void | sectionOrderChanged (const QStringList &newOrder) |
| void | sectionResized (const QString §ionId, int newWidth) |
| void | setLocked (bool locked) |
| void | setSectionOrder (const QStringList &order) |
Protected Member Functions | |
| void | contextMenuEvent (QContextMenuEvent *event) override |
| void | dragEnterEvent (QDragEnterEvent *event) override |
| void | dragMoveEvent (QDragMoveEvent *event) override |
| void | dropEvent (QDropEvent *event) override |
| void | paintEvent (QPaintEvent *event) override |
Friends | |
| class | DraggableToolbarSection |
Definition at line 32 of file draggable_toolbar.h.
|
explicit |
Definition at line 28 of file draggable_toolbar.cpp.
References ThemeColors::border, and ThemeColors::panelBackground.
| DraggableToolbarSection * DraggableToolbar::addSection | ( | const QString & | id, |
| const QString & | displayName = QString() ) |
Definition at line 44 of file draggable_toolbar.cpp.
References DraggableToolbarSection, and section().
| void DraggableToolbar::addSpacer | ( | ) |
Definition at line 136 of file draggable_toolbar.cpp.
| void DraggableToolbar::applyTheme | ( | ) |
Definition at line 482 of file draggable_toolbar.cpp.
References ThemeColors::border, ThemeColors::panelBackground, and section().
|
overrideprotected |
Definition at line 235 of file draggable_toolbar.cpp.
References ThemeColors::accent, ThemeColors::border, ThemeColors::cardBackground, hasSpacerBefore(), insertSpacerBefore(), removeSpacerBefore(), sectionOrder(), sectionOrderChanged(), setLocked(), ThemeColors::textMuted, ThemeColors::textOnAccent, and ThemeColors::textPrimary.
|
overrideprotected |
Definition at line 368 of file draggable_toolbar.cpp.
|
overrideprotected |
Definition at line 378 of file draggable_toolbar.cpp.
|
overrideprotected |
Definition at line 388 of file draggable_toolbar.cpp.
References section(), sectionOrder(), and sectionOrderChanged().
| bool DraggableToolbar::hasSpacerBefore | ( | const QString & | sectionId | ) | const |
Definition at line 171 of file draggable_toolbar.cpp.
Referenced by contextMenuEvent().
| void DraggableToolbar::insertSpacerBefore | ( | const QString & | sectionId | ) |
Definition at line 147 of file draggable_toolbar.cpp.
References sectionOrder(), and sectionOrderChanged().
Referenced by contextMenuEvent().
|
inline |
Definition at line 66 of file draggable_toolbar.h.
| void DraggableToolbar::lockedChanged | ( | bool | locked | ) |
Referenced by setLocked(), and ToolbarManager::setupToolbar().
|
overrideprotected |
Definition at line 408 of file draggable_toolbar.cpp.
References ThemeColors::accent.
| void DraggableToolbar::removeSpacerBefore | ( | const QString & | sectionId | ) |
Definition at line 158 of file draggable_toolbar.cpp.
References sectionOrder(), and sectionOrderChanged().
Referenced by contextMenuEvent().
| DraggableToolbarSection * DraggableToolbar::section | ( | const QString & | id | ) | const |
Definition at line 54 of file draggable_toolbar.cpp.
References DraggableToolbarSection.
Referenced by addSection(), applyTheme(), DraggableToolbarSection, dropEvent(), and setSectionOrder().
| QStringList DraggableToolbar::sectionOrder | ( | ) | const |
Definition at line 60 of file draggable_toolbar.cpp.
Referenced by contextMenuEvent(), dropEvent(), insertSpacerBefore(), and removeSpacerBefore().
| void DraggableToolbar::sectionOrderChanged | ( | const QStringList & | newOrder | ) |
Referenced by contextMenuEvent(), dropEvent(), insertSpacerBefore(), removeSpacerBefore(), and ToolbarManager::setupToolbar().
| void DraggableToolbar::sectionResized | ( | const QString & | sectionId, |
| int | newWidth ) |
| void DraggableToolbar::setLocked | ( | bool | locked | ) |
Definition at line 176 of file draggable_toolbar.cpp.
References lockedChanged().
Referenced by contextMenuEvent().
| void DraggableToolbar::setSectionOrder | ( | const QStringList & | order | ) |
Definition at line 75 of file draggable_toolbar.cpp.
References section().
|
friend |
Definition at line 88 of file draggable_toolbar.h.
References DraggableToolbarSection, and section().
Referenced by addSection(), DraggableToolbarSection, and section().