Classes | |
class | GlobalAreaWidget |
class | GlobalAreaTabStyle |
class | CloseButton |
class | GlobalArea |
class GlobalAreaWidget |
Public Member Functions | |
GlobalAreaWidget (const QString &title) | |
Public Member Functions inherited from SidebarWidget | |
SidebarWidget (const QString &title) | |
~SidebarWidget () | |
const QString & | title () const |
void | enableRefreshTimer (int interval) |
void | setRefreshQuiesce (bool enable) |
bool | isQuiesced () const |
virtual void | notifyRefresh () |
virtual void | notifyQuiesce (bool) |
virtual void | notifyFontChanged () |
virtual void | notifyOffsetChanged (uint64_t) |
virtual void | notifyThemeChanged () |
virtual void | notifyViewChanged (ViewFrame *) |
virtual void | notifyViewLocationChanged (View *, const ViewLocation &) |
virtual void | focus () |
virtual void | closing () |
virtual void | setPrimaryOrientation (Qt::Orientation) |
virtual QWidget * | headerWidget () |
Additional Inherited Members | |
Protected Attributes inherited from SidebarWidget | |
QString | m_title |
UIActionHandler | m_actionHandler |
ContextMenuManager * | m_contextMenuManager = nullptr |
Menu * | m_menu = nullptr |
bool | m_quiesceState = true |
QTimer * | m_updateTimer = nullptr |
GlobalAreaWidget::GlobalAreaWidget | ( | const QString & | title | ) |
class GlobalAreaTabStyle |
Public Member Functions | |
virtual QSize | sizeForTab (const QWidget *widget, const DockableTabInfo &info, int idx, int count, int active) const override |
virtual QRect | closeButtonRect (const QWidget *widget, const DockableTabInfo &info, int idx, int count, int active) const override |
virtual QRect | closeIconRect (const QWidget *widget, const DockableTabInfo &info, int idx, int count, int active) const override |
virtual void | paintTab (const QWidget *widget, QStylePainter &p, const DockableTabInfo &info, int idx, int count, int active, DockableTabInteractionState state, const QRect &rect) const override |
virtual DockableTabStyle * | duplicate () override |
Public Member Functions inherited from DockableTabStyle | |
virtual | ~DockableTabStyle () |
virtual void | paintBase (const QWidget *widget, QStylePainter &p, const QRect &rect, const QRect &activeRect) const |
|
overridevirtual |
Reimplemented from DockableTabStyle.
|
overridevirtual |
Reimplemented from DockableTabStyle.
|
overridevirtual |
Reimplemented from DockableTabStyle.
|
overridevirtual |
Reimplemented from DockableTabStyle.
|
overridevirtual |
Reimplemented from DockableTabStyle.
class CloseButton |
Signals | |
void | clicked () |
Public Member Functions | |
CloseButton () | |
virtual QSize | sizeHint () const override |
Protected Member Functions | |
virtual void | paintEvent (QPaintEvent *event) override |
virtual void | enterEvent (QEnterEvent *event) override |
virtual void | leaveEvent (QEvent *event) override |
virtual void | mouseMoveEvent (QMouseEvent *event) override |
virtual void | mousePressEvent (QMouseEvent *event) override |
virtual void | mouseReleaseEvent (QMouseEvent *event) override |
CloseButton::CloseButton | ( | ) |
|
overridevirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
signal |
class GlobalArea |
Public Member Functions | |
GlobalArea (QWidget *owner, Sidebar *sidebar) | |
void | addWidget (GlobalAreaWidget *widget, bool canClose=false) |
void | initRegisteredWidgets (UIContext *context) |
bool | isWidgetVisible (const QString &title) |
bool | toggleVisible () |
bool | toggleWidgetVisible (const QString &title) |
void | focusWidget (const QString &title) |
GlobalAreaWidget * | widget (const QString &title) |
void | closeTab (QWidget *widget) |
Static Public Member Functions | |
static void | addWidget (const std::function< GlobalAreaWidget *(UIContext *)> &createWidget) |
static GlobalArea * | current () |
template<class T > | |
static T * | widget (const QString &title) |
template<class T > | |
static UIAction | globalAreaAction (const QString &title, const std::function< void(T *obj)> &activate) |
template<class T > | |
static UIAction | globalAreaAction (const QString &title, const std::function< void(T *obj, const UIActionContext &ctxt)> &activate) |
template<class T > | |
static UIAction | globalAreaAction (const QString &title, const std::function< void(T *obj)> &activate, const std::function< bool(T *obj)> &isValid) |
template<class T > | |
static UIAction | globalAreaAction (const QString &title, const std::function< void(T *obj, const UIActionContext &ctxt)> &activate, const std::function< bool(T *obj, const UIActionContext &ctxt)> &isValid) |
template<class T > | |
static std::function< bool(const UIActionContext &)> | globalAreaActionChecked (const QString &title, const std::function< bool(T *obj)> &isChecked) |
template<class T > | |
static std::function< bool(const UIActionContext &)> | globalAreaActionChecked (const QString &title, const std::function< bool(T *obj, const UIActionContext &ctxt)> &isChecked) |
GlobalArea::GlobalArea | ( | QWidget * | owner, |
Sidebar * | sidebar ) |
void GlobalArea::addWidget | ( | GlobalAreaWidget * | widget, |
bool | canClose = false ) |
|
static |
void GlobalArea::initRegisteredWidgets | ( | UIContext * | context | ) |
bool GlobalArea::isWidgetVisible | ( | const QString & | title | ) |
bool GlobalArea::toggleVisible | ( | ) |
bool GlobalArea::toggleWidgetVisible | ( | const QString & | title | ) |
void GlobalArea::focusWidget | ( | const QString & | title | ) |
GlobalAreaWidget * GlobalArea::widget | ( | const QString & | title | ) |
void GlobalArea::closeTab | ( | QWidget * | widget | ) |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |