API Documentation
Loading...
Searching...
No Matches
SmoothButton.h
Go to the documentation of this file.
1/*--------------------------------------------------------------------------------------------
2Copyright (c) 2019, NDEVR LLC
3tyler.parke@ndevr.org
4 __ __ ____ _____ __ __ _______
5 | \ | | | __ \ | ___|\ \ / / | __ \
6 | \ | | | | \ \ | |___ \ \ / / | |__) |
7 | . \| | | |__/ / | |___ \ V / | _ /
8 | |\ |_|_____/__|_____|___\_/____| | \ \
9 |__| \__________________________________| \__\
10
11Subject to the terms of the Enterprise+ Agreement, NDEVR hereby grants
12Licensee a limited, non-exclusive, non-transferable, royalty-free license
13(without the right to sublicense) to use the API solely for the purpose of
14Licensee's internal development efforts to develop applications for which
15the API was provided.
16
17The above copyright notice and this permission notice shall be included in all
18copies or substantial portions of the Software.
19
20THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
21INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
22PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
23FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
24OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25DEALINGS IN THE SOFTWARE.
26
27Library: NDEVR
28File: SmoothButton
29Included in API: True
30Author(s): Tyler Parke
31 *-----------------------------------------------------------------------------------------**/
32#pragma once
33#include <NDEVR/DesignObjectWidgetInterface.h>
34#include <QWidget>
35class QRadioButton;
36namespace NDEVR
37{
38 class Button;
39 class Toggle;
40 class QCustomLineEdit;
41 class QCustomComboBox;
42 class SmoothDialog : public QWidget, public DesignObjectWidgetInterface
43 {
44 Q_OBJECT
45 public:
46 SmoothDialog(QWidget* parent = nullptr);
47 void setup();
48 public slots:
50 public:
51 void performSmoothing() const;
52
53 signals:
55 protected:
61 QRadioButton* m_no_smoothing = nullptr;
62 QRadioButton* m_light_smoothing = nullptr;
63 QRadioButton* m_normal_smoothing = nullptr;
64 QRadioButton* m_heavy_smoothing = nullptr;
65 QRadioButton* m_max_smoothing = nullptr;
69 };
70}
Definition DesignObjectWidgetInterface.h:8
A compact way to present a list of options to the user.
Definition QCustomCombobox.h:53
A line edit allows users to enter and edit a single line of plain text with useful editing functions,...
Definition QCustomLineEdit.h:56
Definition SmoothButton.h:43
SmoothDialog(QWidget *parent=nullptr)
bool m_include_smooth_types
Definition SmoothButton.h:68
QRadioButton * m_heavy_smoothing
Definition SmoothButton.h:64
QRadioButton * m_light_smoothing
Definition SmoothButton.h:62
QRadioButton * m_max_smoothing
Definition SmoothButton.h:65
void performSmoothing() const
QCustomLineEdit * m_smooth_normals_angle
Definition SmoothButton.h:58
QRadioButton * m_no_smoothing
Definition SmoothButton.h:61
bool m_include_retain_size
Definition SmoothButton.h:66
Toggle * m_smooth_normals
Definition SmoothButton.h:57
Toggle * m_retain_size
Definition SmoothButton.h:56
void requestSettingsSignal()
QRadioButton * m_normal_smoothing
Definition SmoothButton.h:63
TimeSpan m_animation_time
Definition SmoothButton.h:59
bool m_has_pending
Definition SmoothButton.h:67
QCustomComboBox * m_smoothing_type
Definition SmoothButton.h:60
Stores a time span, or difference between two times, with an optional start time.
Definition TimeSpan.h:46
A Button that toggles between on and off. In desktop mode this looks like a checkbox and in.
Definition Toggle.h:49
Definition ACIColor.h:37