KDDockWidgets API Documentation 2.1
Loading...
Searching...
No Matches
Public Member Functions | List of all members
KDDockWidgets::Core::SideBar Class Reference

#include <SideBar.h>

Inheritance diagram for KDDockWidgets::Core::SideBar:
Inheritance graph
[legend]
Collaboration diagram for KDDockWidgets::Core::SideBar:
Collaboration graph
[legend]

Public Member Functions

 SideBar (SideBarLocation, MainWindow *parent=nullptr)
 
 ~SideBar () override
 
void addDockWidget (DockWidget *dw)
 
void clear ()
 clears the sidebar (removes all dock widgets from it)
 
bool containsDockWidget (DockWidget *) const
 
Vector< DockWidget * > dockWidgets () const
 returns the list of dock widgets in this sidebar
 
bool isEmpty () const
 returns whether there's no dock widgets
 
bool isVertical () const
 returns if this side bar has vertical orientation
 
SideBarLocation location () const
 returns the sidebar's location in the main window
 
MainWindowmainWindow () const
 Returns the main window this side bar belongs to.
 
void onButtonClicked (DockWidget *dw)
 
Qt::Orientation orientation () const
 Returns this side bar's orientation.
 
void removeDockWidget (DockWidget *dw)
 
Vector< QStringserialize () const
 returns a serialization of this sidebar's state Currently it's just a list of dock widget ids
 
void toggleOverlay (DockWidget *)
 Toggles the dock widget overlay. Equivalent to the user clicking on the button.
 
- Public Member Functions inherited from KDDockWidgets::Core::Controller
 Controller (ViewType type, View *)
 
virtual ~Controller ()
 
bool close ()
 
void destroyLater ()
 
Controller::Private * dptr () const
 
Rect geometry () const
 
int height () const
 
bool inDtor () const
 
bool is (ViewType) const
 Returns whether this controller is of the specified type.
 
bool isFixedHeight () const
 
bool isFixedWidth () const
 
bool isVisible () const
 
Point mapToGlobal (Point) const
 
Point pos () const
 
Rect rect () const
 
void setParentView (View *parent)
 
void setVisible (bool)
 
void show () const
 
Size size () const
 
ViewType type () const
 Returns the type of this controller.
 
Viewview () const
 Returns the view associated with this controller, if any.
 
int width () const
 
std::shared_ptr< Viewwindow () const
 
int x () const
 
int y () const
 

Additional Inherited Members

- Protected Member Functions inherited from KDDockWidgets::Core::Controller
virtual void setParentView_impl (View *parent)
 
- Protected Attributes inherited from KDDockWidgets::Core::Controller
bool m_inDtor = false
 

Detailed Description

Definition at line 29 of file core/SideBar.h.

Constructor & Destructor Documentation

◆ SideBar()

SideBar::SideBar ( SideBarLocation  location,
MainWindow parent = nullptr 
)
explicit

◆ ~SideBar()

SideBar::~SideBar ( )
override

Definition at line 61 of file core/SideBar.cpp.

Member Function Documentation

◆ addDockWidget()

void SideBar::addDockWidget ( DockWidget dw)

◆ clear()

void SideBar::clear ( )

clears the sidebar (removes all dock widgets from it)

Definition at line 148 of file core/SideBar.cpp.

References removeDockWidget().

Referenced by c_KDDockWidgets__Core__SideBar__clear(), and KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::SideBar_wrapper::clear().

◆ containsDockWidget()

bool SideBar::containsDockWidget ( DockWidget dw) const

◆ dockWidgets()

Vector< DockWidget * > SideBar::dockWidgets ( ) const

returns the list of dock widgets in this sidebar

Definition at line 154 of file core/SideBar.cpp.

◆ isEmpty()

bool SideBar::isEmpty ( ) const

returns whether there's no dock widgets

Definition at line 118 of file core/SideBar.cpp.

Referenced by c_KDDockWidgets__Core__SideBar__isEmpty().

◆ isVertical()

bool SideBar::isVertical ( ) const
inline

returns if this side bar has vertical orientation

Definition at line 44 of file core/SideBar.h.

References Qt::Vertical.

Referenced by SideBar(), and c_KDDockWidgets__Core__SideBar__isVertical().

◆ location()

SideBarLocation SideBar::location ( ) const

returns the sidebar's location in the main window

Definition at line 123 of file core/SideBar.cpp.

◆ mainWindow()

MainWindow * SideBar::mainWindow ( ) const

Returns the main window this side bar belongs to.

Definition at line 128 of file core/SideBar.cpp.

Referenced by c_KDDockWidgets__Core__SideBar__mainWindow().

◆ onButtonClicked()

void SideBar::onButtonClicked ( DockWidget dw)

◆ orientation()

Qt::Orientation SideBar::orientation ( ) const

Returns this side bar's orientation.

Definition at line 113 of file core/SideBar.cpp.

◆ removeDockWidget()

void SideBar::removeDockWidget ( DockWidget dw)

◆ serialize()

Vector< QString > SideBar::serialize ( ) const

returns a serialization of this sidebar's state Currently it's just a list of dock widget ids

Definition at line 138 of file core/SideBar.cpp.

References KDToolBox::StlContainerAdaptor::StdVectorAdaptor< T, Args >::reserve(), and KDDockWidgets::Core::DockWidget::uniqueName().

◆ toggleOverlay()

void SideBar::toggleOverlay ( DockWidget dw)

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

© Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
KDDockWidgets
Advanced Dock Widget Framework for Qt
https://www.kdab.com/development-resources/qt-tools/kddockwidgets/
Generated by doxygen 1.9.8