NDEVR
API Documentation
LibraryDialog.h
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: LibraryDialog
29Included in API: True
30Author(s): Tyler Parke
31 *-----------------------------------------------------------------------------------------**/
32#pragma once
33#include <NDEVR/DesignObjectChooser.h>
34#include <NDEVR/ContainerWidget.h>
35#include <NDEVR/QCustomDockWidget.h>
36#include <NDEVR/PointWidget.h>
37#include <NDEVR/ResizeVisibleAnimation.h>
38#include <NDEVR/ModelEditController.h>
39#include <QWidget>
40#include <QBoxLayout>
41namespace NDEVR
42{
43 class Toggle;
48 class LibraryWidget : public QWidget
49 {
50 public:
57 LibraryWidget(QTModelManager* manager, const DynamicPointer<ModelEditController>& edit_controller, QWidget* parent = nullptr);
63 private:
64 ContainerWidget* m_container;
65 PointWidget* m_size_widget;
66 Toggle* m_place_on_surface;
67 DockWidget<DesignObjectChooser>* m_model_chooser;
69 QTModelManager* m_manager;
70 UUID m_selected_id;
71 };
72}
manages a series of SectionContent that can share the same space or lay out in various patterns inclu...
A type-safe dock widget that wraps a specific widget type.
Provides a modifiable pointer that has shared ownership of a dynamically allocated object.
Definition Pointer.hpp:356
void setCategory(const String &category)
Filters the library to show only models in the specified category.
LibraryWidget(QTModelManager *manager, const DynamicPointer< ModelEditController > &edit_controller, QWidget *parent=nullptr)
Constructs a LibraryWidget for browsing and placing library models.
Allows the user to input an N-dimensional point (up to 4 dimensions) with an optional unit.
Definition PointWidget.h:58
A wrapper around DesignObjectLookup that provides signal and slot functionality and adds rendering ca...
The core String class for the NDEVR API.
Definition String.h:95
A Button that toggles between on and off.
Definition Toggle.h:50
A universally unique identifier (UUID) is a 128-bit number used to identify information in computer s...
Definition UUID.h:61
The primary namespace for the NDEVR SDK.
@ category
The category this object belongs to.