HAL
hal::ContentAnchor Class Referenceabstract

An abstract class that provides the interface for specific anchors (see SplitterAnchor or TabWidget ). More...

#include <content_anchor.h>

Inheritance diagram for hal::ContentAnchor:
Inheritance graph
Collaboration diagram for hal::ContentAnchor:
Collaboration graph

Public Member Functions

virtual void add (ContentWidget *widget, int index)=0
 
virtual void remove (ContentWidget *widget)=0
 
virtual ContentFramedetach (ContentWidget *widget)=0
 
virtual void reattach (ContentWidget *widget)=0
 
virtual void open (ContentWidget *widget)=0
 
virtual void close (ContentWidget *widget)=0
 
virtual ~ContentAnchor ()
 
virtual int count () const
 
void saveState () const
 

Protected Attributes

DockBarmDockBar
 
ContentLayout::Position mAnchorPosition
 

Detailed Description

An abstract class that provides the interface for specific anchors (see SplitterAnchor or TabWidget ).

Definition at line 53 of file content_anchor.h.

Constructor & Destructor Documentation

◆ ~ContentAnchor()

virtual hal::ContentAnchor::~ContentAnchor ( )
inlinevirtual

Destructor

Definition at line 108 of file content_anchor.h.

Member Function Documentation

◆ add()

virtual void hal::ContentAnchor::add ( ContentWidget widget,
int  index 
)
pure virtual

Adds a given ContentWidget to the anchor.

Parameters
widget- The widget to add.
index- The position.

Implemented in hal::SplitterAnchor, and hal::TabWidget.

Referenced by hal::DockBar::dropEvent().

◆ close()

virtual void hal::ContentAnchor::close ( ContentWidget widget)
pure virtual

Closes a given widget.

Parameters
widget- The widget to close.

Implemented in hal::SplitterAnchor, and hal::TabWidget.

Referenced by hal::ContentWidget::close().

◆ count()

int hal::ContentAnchor::count ( ) const
virtual

Returns the number of widgets / buttons as of mDockBar->count()

Definition at line 8 of file content_anchor.cpp.

References hal::DockBar::count(), and mDockBar.

Referenced by hal::ContentLayoutArea::addContent().

◆ detach()

virtual ContentFrame* hal::ContentAnchor::detach ( ContentWidget widget)
pure virtual

Detaches a given widget from the anchor.

Parameters
widget- The widget to detach.
Returns
the enclosing frame of the detached widget

Implemented in hal::SplitterAnchor, and hal::TabWidget.

Referenced by hal::ContentWidget::detach().

◆ open()

virtual void hal::ContentAnchor::open ( ContentWidget widget)
pure virtual

Displays a given widget in the achor's corresponding area.

Parameters
widget- The widget to open.

Implemented in hal::SplitterAnchor, and hal::TabWidget.

Referenced by hal::ContentWidget::open().

◆ reattach()

virtual void hal::ContentAnchor::reattach ( ContentWidget widget)
pure virtual

Reattaches a given widget to the anchor.

Parameters
widget- The widget to reattach.

Implemented in hal::SplitterAnchor, and hal::TabWidget.

Referenced by hal::ContentWidget::reattach().

◆ remove()

virtual void hal::ContentAnchor::remove ( ContentWidget widget)
pure virtual

Removes a given widget from the anchor.

Parameters
widget- The widget to remove.

Implemented in hal::SplitterAnchor, and hal::TabWidget.

Referenced by hal::ContentWidget::remove().

◆ saveState()

void hal::ContentAnchor::saveState ( ) const

Member Data Documentation

◆ mAnchorPosition

ContentLayout::Position hal::ContentAnchor::mAnchorPosition
protected

◆ mDockBar


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