API Documentation
Loading...
Searching...
No Matches
SectionContent Class Reference

The core container for objects using the NDEVR API Widget Docking system. Contains information used to correctly display the content. More...

#include <SectionContent.h>

Inheritance diagram for SectionContent:
[legend]
Collaboration diagram for SectionContent:
[legend]

Public Member Functions

bool allowAutoHideTitle () const
 
bool allowHide () const
 
ContainerWidgetBasecontainerWidget () const
 
QWidget * contentWidget () const
 
FloatingWidgetfloatingWidget () const
 
bool hasSpecialCallback () const
 
void onCheckedClick () override
 
RibbonArea preferredRibbonArea () const
 
void retranslate ()
 
void runSpecialCallback ()
 
 SectionContent (ContainerWidgetBase *container, SectionTab *title, const std::function< void(SectionContent *)> &function, RibbonArea prefered_ribbon_area)
 
 SectionContent (ContainerWidgetBase *container, SectionTab *title, QWidget *content, RibbonArea prefered_ribbon_area)
 
SectionTabsectionTab () const
 
SectionWidgetsectionWidget () const
 
void setAllowAutoHideTitle (bool allow_hide)
 
void setAllowHide (bool allow_hide)
 
void setContainer (ContainerWidgetBase *container)
 
void setContentWidget (QWidget *widget)
 
void setFloatingWidget (FloatingWidget *widget)
 
void setPreferredRibbonArea (RibbonArea area)
 
void setSectionWidget (SectionWidget *widget)
 
void setSpecialCallback (const std::function< void(SectionContent *)> &callback)
 
void setTitle (const TranslatedString &title)
 
const std::function< void(SectionContent *)> & specialCallback ()
 
const TranslatedStringtitle () const
 
UUID uid () const
 
virtual ~SectionContent ()
 
- Public Member Functions inherited from ButtonDialog
virtual void addButton (Button *button)
 
PopupInfo buttonDialogBestPopupInfo () const
 
virtual void removeButton (Button *button)
 
virtual void setButtonsChecked (bool check)
 
virtual ~ButtonDialog ()
 

Friends

class ContainerWidgetBase
 

Additional Inherited Members

- Protected Attributes inherited from ButtonDialog
Buffer< QPointer< Button > > m_buttons
 
QPointer< Buttonm_last_pressed
 
bool m_should_be_checked = false
 

Detailed Description

The core container for objects using the NDEVR API Widget Docking system. Contains information used to correctly display the content.


Constructor & Destructor Documentation

◆ SectionContent() [1/2]

SectionContent ( ContainerWidgetBase * container,
SectionTab * title,
QWidget * content,
RibbonArea prefered_ribbon_area )

◆ SectionContent() [2/2]

SectionContent ( ContainerWidgetBase * container,
SectionTab * title,
const std::function< void(SectionContent *)> & function,
RibbonArea prefered_ribbon_area )

◆ ~SectionContent()

virtual ~SectionContent ( )
virtual

Member Function Documentation

◆ allowAutoHideTitle()

bool allowAutoHideTitle ( ) const
inline

◆ allowHide()

bool allowHide ( ) const
inline

◆ containerWidget()

ContainerWidgetBase * containerWidget ( ) const

◆ contentWidget()

QWidget * contentWidget ( ) const

◆ floatingWidget()

FloatingWidget * floatingWidget ( ) const
inline

◆ hasSpecialCallback()

bool hasSpecialCallback ( ) const
inline

◆ onCheckedClick()

void onCheckedClick ( )
overridevirtual

Reimplemented from ButtonDialog.

◆ preferredRibbonArea()

RibbonArea preferredRibbonArea ( ) const
inline

◆ retranslate()

void retranslate ( )

◆ runSpecialCallback()

void runSpecialCallback ( )
inline

◆ sectionTab()

SectionTab * sectionTab ( ) const

◆ sectionWidget()

SectionWidget * sectionWidget ( ) const
inline

◆ setAllowAutoHideTitle()

void setAllowAutoHideTitle ( bool allow_hide)
inline

◆ setAllowHide()

void setAllowHide ( bool allow_hide)
inline

◆ setContainer()

void setContainer ( ContainerWidgetBase * container)

◆ setContentWidget()

void setContentWidget ( QWidget * widget)

◆ setFloatingWidget()

void setFloatingWidget ( FloatingWidget * widget)

◆ setPreferredRibbonArea()

void setPreferredRibbonArea ( RibbonArea area)

◆ setSectionWidget()

void setSectionWidget ( SectionWidget * widget)

◆ setSpecialCallback()

void setSpecialCallback ( const std::function< void(SectionContent *)> & callback)
inline

◆ setTitle()

void setTitle ( const TranslatedString & title)
inline

◆ specialCallback()

const std::function< void(SectionContent *)> & specialCallback ( )
inline

◆ title()

const TranslatedString & title ( ) const
inline

◆ uid()

UUID uid ( ) const

Friends And Related Symbol Documentation

◆ ContainerWidgetBase

friend class ContainerWidgetBase
friend

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