|
HAL
|
An abstract class that provides the interface for specific anchors (see SplitterAnchor or TabWidget ). More...
#include <content_anchor.h>


Public Member Functions | |
| virtual void | add (ContentWidget *widget, int index)=0 |
| virtual void | remove (ContentWidget *widget)=0 |
| virtual ContentFrame * | detach (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 | |
| DockBar * | mDockBar |
| ContentLayout::Position | mAnchorPosition |
An abstract class that provides the interface for specific anchors (see SplitterAnchor or TabWidget ).
Definition at line 53 of file content_anchor.h.
|
inlinevirtual |
Destructor
Definition at line 108 of file content_anchor.h.
|
pure virtual |
Adds a given ContentWidget to the anchor.
| widget | - The widget to add. |
| index | - The position. |
Implemented in hal::SplitterAnchor, and hal::TabWidget.
Referenced by hal::DockBar::dropEvent().
|
pure virtual |
Closes a given widget.
| widget | - The widget to close. |
Implemented in hal::SplitterAnchor, and hal::TabWidget.
Referenced by hal::ContentWidget::close().
|
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().
|
pure virtual |
Detaches a given widget from the anchor.
| widget | - The widget to detach. |
Implemented in hal::SplitterAnchor, and hal::TabWidget.
Referenced by hal::ContentWidget::detach().
|
pure virtual |
Displays a given widget in the achor's corresponding area.
| widget | - The widget to open. |
Implemented in hal::SplitterAnchor, and hal::TabWidget.
Referenced by hal::ContentWidget::open().
|
pure virtual |
Reattaches a given widget to the anchor.
| widget | - The widget to reattach. |
Implemented in hal::SplitterAnchor, and hal::TabWidget.
Referenced by hal::ContentWidget::reattach().
|
pure virtual |
Removes a given widget from the anchor.
| widget | - The widget to remove. |
Implemented in hal::SplitterAnchor, and hal::TabWidget.
Referenced by hal::ContentWidget::remove().
| void hal::ContentAnchor::saveState | ( | ) | const |
Save state of widgets using anchor tag
Definition at line 13 of file content_anchor.cpp.
References QList::append(), hal::DockBar::count(), hal::SettingsManager::instance(), mAnchorPosition, mDockBar, hal::DockBar::widgetAt(), and hal::SettingsManager::widgetsSaveGeometry().
Referenced by hal::ContentLayoutArea::saveState().
|
protected |
Definition at line 58 of file content_anchor.h.
Referenced by saveState(), hal::SplitterAnchor::SplitterAnchor(), and hal::TabWidget::TabWidget().
|
protected |
Definition at line 57 of file content_anchor.h.
Referenced by hal::TabWidget::add(), hal::SplitterAnchor::add(), hal::SplitterAnchor::clear(), hal::TabWidget::clear(), hal::TabWidget::close(), hal::SplitterAnchor::close(), count(), hal::TabWidget::detach(), hal::SplitterAnchor::detach(), hal::TabWidget::handleDragEnd(), hal::TabWidget::handleNoCurrentWidget(), hal::TabWidget::open(), hal::SplitterAnchor::open(), hal::TabWidget::reattach(), hal::SplitterAnchor::reattach(), hal::TabWidget::remove(), hal::SplitterAnchor::remove(), saveState(), hal::SplitterAnchor::SplitterAnchor(), and hal::TabWidget::TabWidget().