API Documentation
Loading...
Searching...
No Matches
ButtonGallery.h
Go to the documentation of this file.
1#pragma once
2#include <NDEVR/QCustomScrollArea.h>
3#include <NDEVR/RibbonSubGroup.h>
4#include <NDEVR/TouchScrollManager.h>
5#include <QVBoxLayout>
6namespace NDEVR
7{
8 /**--------------------------------------------------------------------------------------------------
9 \brief Typically used for dialogs which have any number of buttons associated with it that are toggled
10 on when the dialog is visible, and off when the widget is invisible. Each button controls the visibility
11 of the dialog.
12 **/
14 {
15 public:
16 ButtonGallery(QWidget* parent = nullptr);
17 void setIconSizeMultiplier(fltp04 multiplier);
18 virtual void addButton(Button* button);
19 /**--------------------------------------------------------------------------------------------------
20 \brief Sorts buttons alphabetically
21 **/
22 virtual void sortButtons();
23 virtual void sortButtons(const std::function<bool(Button*, Button*)>& sorter);
24 virtual void removeButton(Button* button);
25 virtual void clear();
27 const Buffer<Button*>& buttons() const;
28 protected:
30 };
31}
#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
A core widget that allows the user to click one of many button types.
Definition Button.h:66
A scroll area is used to display the contents of a child widget within a frame. If the widget exceeds...
Definition QCustomScrollArea.h:14
Represents a sub-section of "Tab" of a ribbon represting a grouping of buttons or widgets within a ta...
Definition RibbonSubGroup.h:47
Definition ACIColor.h:37
float fltp04
Defines an alias representing a 4 byte floating-point number Bit layout is as follows: -Sign: 1 bit a...
Definition BaseValues.hpp:127