API Documentation
Loading...
Searching...
No Matches
GenericOptionsWidgets.h
Go to the documentation of this file.
1#pragma once
2#include "DLLInfo.h"
3#include <NDEVR/GenericOption.h>
4#include <QWidget>
5class QGridLayout;
6namespace NDEVR
7{
8 class FileChooserDialog;
9 class Button;
11 {
12 Q_OBJECT
13 public:
14 GenericOptionsWidget(const GenericOption& option, QWidget* parent = nullptr);
15 GenericOptionsWidget(QWidget* parent = nullptr);
16 void refreshWidget();
17 void refreshFileChooser();
18 void refreshResetToDefault();
19 const GenericOption& option() const
20 {
21 return m_option;
22 }
24 {
25 return m_option;
26 }
27 void setOption(const GenericOption& option);
28 signals:
29 void edited();
31 protected:
32 void refreshToggleWidget();
33 void refreshColorWidget();
34 void refreshComboWidget();
36 {
37 }
38 void refreshLineEditWidget();
39 void init();
40 protected:
41 FileChooserDialog* m_chooser_dialog = nullptr;
42 QWidget* m_widget = nullptr;
43 Button* m_browse_button = nullptr;
44 Button* m_reset_button = nullptr;
46 };
47
49 {
50 Q_OBJECT
51 public:
52 GenericOptionsGroup(const GenericOptionGroup& option, QWidget* parent = nullptr);
53 GenericOptionsGroup(QWidget* parent = nullptr);
54 void setOptionGroup(const GenericOptionGroup& option);
56 signals:
57 void edited();
59 protected:
60 void init();
61 protected:
62 QGridLayout* m_layout;
64 };
65}
#define NDEVR_WIDGETS_API
Definition DLLInfo.h:81
Definition Button.h:60
Definition FileChooserDialog.h:68
Definition GenericOptions.h:145
Definition GenericOptionsWidgets.h:49
QGridLayout * m_layout
Definition GenericOptionsWidgets.h:62
GenericOptionGroup m_group
Definition GenericOptionsWidgets.h:63
Definition GenericOptionsWidgets.h:11
void refreshVectorWidget()
Definition GenericOptionsWidgets.h:35
GenericOption & option()
Definition GenericOptionsWidgets.h:23
GenericOption m_option
Definition GenericOptionsWidgets.h:45
const GenericOption & option() const
Definition GenericOptionsWidgets.h:19
Definition ACIColor.h:37
QAction * group(nullptr)
Definition GenericOptions.h:53