API Documentation
Loading...
Searching...
No Matches
PropertiesButton.h
Go to the documentation of this file.
1
/*--------------------------------------------------------------------------------------------
2
Copyright (c) 2019, NDEVR LLC
3
tyler.parke@ndevr.org
4
__ __ ____ _____ __ __ _______
5
| \ | | | __ \ | ___|\ \ / / | __ \
6
| \ | | | | \ \ | |___ \ \ / / | |__) |
7
| . \| | | |__/ / | |___ \ V / | _ /
8
| |\ |_|_____/__|_____|___\_/____| | \ \
9
|__| \__________________________________| \__\
10
11
Subject to the terms of the Enterprise+ Agreement, NDEVR hereby grants
12
Licensee a limited, non-exclusive, non-transferable, royalty-free license
13
(without the right to sublicense) to use the API solely for the purpose of
14
Licensee's internal development efforts to develop applications for which
15
the API was provided.
16
17
The above copyright notice and this permission notice shall be included in all
18
copies or substantial portions of the Software.
19
20
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
21
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
22
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
23
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
24
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25
DEALINGS IN THE SOFTWARE.
26
27
Library: NDEVR
28
File: PropertiesButton
29
Included in API: True
30
Author(s): Tyler Parke
31
*-----------------------------------------------------------------------------------------**/
32
#pragma once
33
#include <NDEVR/QTDesignObject.h>
34
#include <NDEVR/Button.h>
35
namespace
NDEVR
36
{
37
class
NDEVR_API
PropertiesButton
:
public
Button
38
{
39
Q_OBJECT
40
public
:
41
enum class
PropertyMode
42
{
43
e_object
44
,
e_solid_material
45
,
e_outline_material
46
, e_model
47
};
48
PropertiesButton
(
const
DynamicPointer<QTDesignObject>
&
object
, QWidget* parent =
nullptr
);
49
PropertiesButton
(QWidget* parent =
nullptr
);
50
void
setTarget
(
const
DynamicPointer<QTDesignObject>
&
object
);
51
void
setPropertyMode
(
PropertyMode
mode);
52
protected
:
53
void
updatePropertiesTooltip
();
54
void
onClicked
();
55
void
init
();
56
protected
slots:
57
void
onObjectDeletedSlot
();
58
protected
:
59
DynamicPointer<QTDesignObject>
m_target
;
60
PropertyMode
m_property_mode
;
61
};
62
}
NDEVR_API
#define NDEVR_API
Definition
DLLInfo.h:50
NDEVR::Button
A core widget that allows the user to click one of many button types.
Definition
Button.h:66
NDEVR::DynamicPointer
Provides a modifiable pointer that has shared ownership of a dynamically allocated object.
Definition
Pointer.hpp:320
NDEVR::PropertiesButton
Definition
PropertiesButton.h:38
NDEVR::PropertiesButton::init
void init()
NDEVR::PropertiesButton::PropertyMode
PropertyMode
Definition
PropertiesButton.h:42
NDEVR::PropertiesButton::m_target
DynamicPointer< QTDesignObject > m_target
Definition
PropertiesButton.h:59
NDEVR::PropertiesButton::onObjectDeletedSlot
void onObjectDeletedSlot()
NDEVR::PropertiesButton::onClicked
void onClicked()
NDEVR::PropertiesButton::PropertiesButton
PropertiesButton(const DynamicPointer< QTDesignObject > &object, QWidget *parent=nullptr)
NDEVR::PropertiesButton::updatePropertiesTooltip
void updatePropertiesTooltip()
NDEVR::PropertiesButton::PropertiesButton
PropertiesButton(QWidget *parent=nullptr)
NDEVR::PropertiesButton::setPropertyMode
void setPropertyMode(PropertyMode mode)
NDEVR::PropertiesButton::setTarget
void setTarget(const DynamicPointer< QTDesignObject > &object)
NDEVR::PropertiesButton::m_property_mode
PropertyMode m_property_mode
Definition
PropertiesButton.h:60
NDEVR
Definition
ACIColor.h:37
NDEVR::ContextMenuActions::e_outline_material
@ e_outline_material
NDEVR::ContextMenuActions::e_solid_material
@ e_solid_material
NDEVR
Headers
PropertiesButton.h