Sidebar Class Reference

Public Member Functions

 Sidebar ()
 
SidebarWidgetContainercontainer () const
 
void setContainer (SidebarWidgetContainer *container)
 
void setActiveContext (SplitPaneWidget *panes, ViewFrame *frame, const QString &dataType, BinaryViewRef data)
 
SidebarWidgetwidget (SidebarWidgetType *type)
 
SidebarWidgetwidget (const QString &name)
 
void activate (SidebarWidgetType *type)
 
void activate (const QString &name)
 
void deactivate (SidebarWidgetType *type)
 
void deactivate (const QString &name)
 
void updateTheme ()
 
void updateFonts ()
 
void toggleSidebar ()
 

Static Public Member Functions

static void addSidebarWidgetType (SidebarWidgetType *type)
 
static SidebarWidgetTypetypeFromName (const QString &name)
 
static const std::vector< SidebarWidgetType * > & contentTypes ()
 
static const std::vector< SidebarWidgetType * > & referenceTypes ()
 
static SidebarWidgetTypedefaultContentType ()
 
static SidebarWidgetTypedefaultReferenceType ()
 
static void setDefaultContentType (SidebarWidgetType *type)
 
static void setDefaultReferenceType (SidebarWidgetType *type)
 
static Sidebarcurrent ()
 
template<class T >
static T * widget (SidebarWidgetType *type)
 
template<class T >
static T * widget (const QString &name)
 
template<class T >
static T * activateWidget (SidebarWidgetType *type)
 
template<class T >
static T * activateWidget (const QString &name)
 
template<class T >
static UIAction globalSidebarAction (const QString &name, const std::function< void(T *obj)> &activate)
 
template<class T >
static UIAction globalSidebarAction (const QString &name, const std::function< void(T *obj, const UIActionContext &ctxt)> &activate)
 
template<class T >
static UIAction globalSidebarAction (const QString &name, const std::function< void(T *obj)> &activate, const std::function< bool(T *obj)> &isValid)
 
template<class T >
static UIAction globalSidebarAction (const QString &name, const std::function< void(T *obj, const UIActionContext &ctxt)> &activate, const std::function< bool(T *obj, const UIActionContext &ctxt)> &isValid)
 
template<class T >
static UIAction globalSidebarAction (SidebarWidgetType *type, const std::function< void(T *obj)> &activate)
 
template<class T >
static UIAction globalSidebarAction (SidebarWidgetType *type, const std::function< void(T *obj, const UIActionContext &ctxt)> &activate)
 
template<class T >
static UIAction globalSidebarAction (SidebarWidgetType *type, const std::function< void(T *obj)> &activate, const std::function< bool(T *obj)> &isValid)
 
template<class T >
static UIAction globalSidebarAction (SidebarWidgetType *type, 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 &)> globalSidebarActionChecked (const QString &name, const std::function< bool(T *obj)> &isChecked)
 
template<class T >
static std::function< bool(const UIActionContext &)> globalSidebarActionChecked (const QString &name, const std::function< bool(T *obj, const UIActionContext &ctxt)> &isChecked)
 
template<class T >
static std::function< bool(const UIActionContext &)> globalSidebarActionChecked (SidebarWidgetType *type, const std::function< bool(T *obj)> &isChecked)
 
template<class T >
static std::function< bool(const UIActionContext &)> globalSidebarActionChecked (SidebarWidgetType *type, const std::function< bool(T *obj, const UIActionContext &ctxt)> &isChecked)
 

Protected Member Functions

virtual void paintEvent (QPaintEvent *event) override
 
virtual void mouseMoveEvent (QMouseEvent *event) override
 
virtual void mousePressEvent (QMouseEvent *event) override
 
virtual void leaveEvent (QEvent *event) override
 

Constructor & Destructor Documentation

◆ Sidebar()

Sidebar::Sidebar ( )

Member Function Documentation

◆ activate() [1/2]

void Sidebar::activate ( const QString &  name)

◆ activate() [2/2]

void Sidebar::activate ( SidebarWidgetType type)

◆ activateWidget() [1/2]

template<class T >
static T * Sidebar::activateWidget ( const QString &  name)
inlinestatic

◆ activateWidget() [2/2]

template<class T >
static T * Sidebar::activateWidget ( SidebarWidgetType type)
inlinestatic

◆ addSidebarWidgetType()

static void Sidebar::addSidebarWidgetType ( SidebarWidgetType type)
static

◆ container()

SidebarWidgetContainer * Sidebar::container ( ) const
inline

◆ contentTypes()

static const std::vector< SidebarWidgetType * > & Sidebar::contentTypes ( )
inlinestatic

◆ current()

static Sidebar * Sidebar::current ( )
inlinestatic

◆ deactivate() [1/2]

void Sidebar::deactivate ( const QString &  name)

◆ deactivate() [2/2]

void Sidebar::deactivate ( SidebarWidgetType type)

◆ defaultContentType()

static SidebarWidgetType * Sidebar::defaultContentType ( )
inlinestatic

◆ defaultReferenceType()

static SidebarWidgetType * Sidebar::defaultReferenceType ( )
inlinestatic

◆ globalSidebarAction() [1/8]

template<class T >
static UIAction Sidebar::globalSidebarAction ( const QString &  name,
const std::function< void(T *obj)> &  activate 
)
inlinestatic

◆ globalSidebarAction() [2/8]

template<class T >
static UIAction Sidebar::globalSidebarAction ( const QString &  name,
const std::function< void(T *obj)> &  activate,
const std::function< bool(T *obj)> &  isValid 
)
inlinestatic

◆ globalSidebarAction() [3/8]

template<class T >
static UIAction Sidebar::globalSidebarAction ( const QString &  name,
const std::function< void(T *obj, const UIActionContext &ctxt)> &  activate 
)
inlinestatic

◆ globalSidebarAction() [4/8]

template<class T >
static UIAction Sidebar::globalSidebarAction ( const QString &  name,
const std::function< void(T *obj, const UIActionContext &ctxt)> &  activate,
const std::function< bool(T *obj, const UIActionContext &ctxt)> &  isValid 
)
inlinestatic

◆ globalSidebarAction() [5/8]

template<class T >
static UIAction Sidebar::globalSidebarAction ( SidebarWidgetType type,
const std::function< void(T *obj)> &  activate 
)
inlinestatic

◆ globalSidebarAction() [6/8]

template<class T >
static UIAction Sidebar::globalSidebarAction ( SidebarWidgetType type,
const std::function< void(T *obj)> &  activate,
const std::function< bool(T *obj)> &  isValid 
)
inlinestatic

◆ globalSidebarAction() [7/8]

template<class T >
static UIAction Sidebar::globalSidebarAction ( SidebarWidgetType type,
const std::function< void(T *obj, const UIActionContext &ctxt)> &  activate 
)
inlinestatic

◆ globalSidebarAction() [8/8]

template<class T >
static UIAction Sidebar::globalSidebarAction ( SidebarWidgetType type,
const std::function< void(T *obj, const UIActionContext &ctxt)> &  activate,
const std::function< bool(T *obj, const UIActionContext &ctxt)> &  isValid 
)
inlinestatic

◆ globalSidebarActionChecked() [1/4]

template<class T >
static std::function< bool(const UIActionContext &)> Sidebar::globalSidebarActionChecked ( const QString &  name,
const std::function< bool(T *obj)> &  isChecked 
)
inlinestatic

◆ globalSidebarActionChecked() [2/4]

template<class T >
static std::function< bool(const UIActionContext &)> Sidebar::globalSidebarActionChecked ( const QString &  name,
const std::function< bool(T *obj, const UIActionContext &ctxt)> &  isChecked 
)
inlinestatic

◆ globalSidebarActionChecked() [3/4]

template<class T >
static std::function< bool(const UIActionContext &)> Sidebar::globalSidebarActionChecked ( SidebarWidgetType type,
const std::function< bool(T *obj)> &  isChecked 
)
inlinestatic

◆ globalSidebarActionChecked() [4/4]

template<class T >
static std::function< bool(const UIActionContext &)> Sidebar::globalSidebarActionChecked ( SidebarWidgetType type,
const std::function< bool(T *obj, const UIActionContext &ctxt)> &  isChecked 
)
inlinestatic

◆ leaveEvent()

virtual void Sidebar::leaveEvent ( QEvent *  event)
overrideprotectedvirtual

◆ mouseMoveEvent()

virtual void Sidebar::mouseMoveEvent ( QMouseEvent *  event)
overrideprotectedvirtual

◆ mousePressEvent()

virtual void Sidebar::mousePressEvent ( QMouseEvent *  event)
overrideprotectedvirtual

◆ paintEvent()

virtual void Sidebar::paintEvent ( QPaintEvent *  event)
overrideprotectedvirtual

◆ referenceTypes()

static const std::vector< SidebarWidgetType * > & Sidebar::referenceTypes ( )
inlinestatic

◆ setActiveContext()

void Sidebar::setActiveContext ( SplitPaneWidget panes,
ViewFrame frame,
const QString &  dataType,
BinaryViewRef  data 
)

◆ setContainer()

void Sidebar::setContainer ( SidebarWidgetContainer container)

◆ setDefaultContentType()

static void Sidebar::setDefaultContentType ( SidebarWidgetType type)
inlinestatic

◆ setDefaultReferenceType()

static void Sidebar::setDefaultReferenceType ( SidebarWidgetType type)
inlinestatic

◆ toggleSidebar()

void Sidebar::toggleSidebar ( )

◆ typeFromName()

static SidebarWidgetType * Sidebar::typeFromName ( const QString &  name)
static

◆ updateFonts()

void Sidebar::updateFonts ( )

◆ updateTheme()

void Sidebar::updateTheme ( )

◆ widget() [1/4]

SidebarWidget * Sidebar::widget ( const QString &  name)

◆ widget() [2/4]

template<class T >
static T * Sidebar::widget ( const QString &  name)
inlinestatic

◆ widget() [3/4]

SidebarWidget * Sidebar::widget ( SidebarWidgetType type)

◆ widget() [4/4]

template<class T >
static T * Sidebar::widget ( SidebarWidgetType type)
inlinestatic

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