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>
5class QHBoxLayout;
6namespace 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}
#define NDEVR_WIDGETS_API
Definition DLLInfo.h:59
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:56
Class which displays progress and the current action being performed. Typically shown at the bottom o...
Definition Toolbar.h:13
QSize minimumSizeHint() const override
QSize sizeHint() const override
Toolbar(QWidget *parent=nullptr)
virtual void removeWidget(const QPointer< QWidget > &widget)
virtual void clear()
virtual void addWidget(const QPointer< QWidget > &widget)
Definition ACIColor.h:37