API Documentation
Loading...
Searching...
No Matches
Toolbar.h
Go to the documentation of this file.
1
#pragma once
2
#include "
DLLInfo.h
"
3
#include <QWidget>
4
#include <QPointer>
5
class
QHBoxLayout;
6
namespace
NDEVR
7
{
8
/**--------------------------------------------------------------------------------------------------
9
\brief Class which displays progress and the current action being performed. Typically shown
10
at the bottom of a view, or at the top with the ribbon.
11
**/
12
class
NDEVR_WIDGETS_API
Toolbar
:
public
QWidget
13
{
14
public
:
15
Toolbar
(QWidget* parent =
nullptr
);
16
virtual
void
addWidget
(
const
QPointer<QWidget>& widget);
17
virtual
void
removeWidget
(
const
QPointer<QWidget>& widget);
18
virtual
void
clear
();
19
protected
:
20
QSize
minimumSizeHint
()
const override
;
21
QSize
sizeHint
()
const override
;
22
private
:
23
Buffer<QPointer<QWidget>
> m_custom_widgets;
24
QHBoxLayout* m_layout;
25
};
26
}
DLLInfo.h
NDEVR_WIDGETS_API
#define NDEVR_WIDGETS_API
Definition
DLLInfo.h:59
NDEVR::Buffer
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition
Buffer.hpp:56
NDEVR::Toolbar
Class which displays progress and the current action being performed. Typically shown at the bottom o...
Definition
Toolbar.h:13
NDEVR::Toolbar::minimumSizeHint
QSize minimumSizeHint() const override
NDEVR::Toolbar::sizeHint
QSize sizeHint() const override
NDEVR::Toolbar::Toolbar
Toolbar(QWidget *parent=nullptr)
NDEVR::Toolbar::removeWidget
virtual void removeWidget(const QPointer< QWidget > &widget)
NDEVR::Toolbar::clear
virtual void clear()
NDEVR::Toolbar::addWidget
virtual void addWidget(const QPointer< QWidget > &widget)
NDEVR
Definition
ACIColor.h:37
Widgets
Headers
Toolbar.h