API Documentation
Loading...
Searching...
No Matches
LibraryDialog.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: 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 /**--------------------------------------------------------------------------------------------------
44 \brief Allows the user to select Models or Materials from a list to add to the scene.
45 See DesignObjectChooser and LibraryManager
46 **/
47 class LibraryWidget : public QWidget
48 {
49 public:
50 LibraryWidget(QTModelManager* manager, const DynamicPointer<ModelEditController>& edit_controller, QWidget* parent = nullptr);
51 void setCategory(const String& category);
52 private:
53 ContainerWidget* m_container;
54 PointWidget* m_size_widget;
55 DockWidget<DesignObjectChooser>* m_model_chooser;
56 DockWidget<DesignObjectChooser>* m_material_chooser;
58 QTModelManager* m_manager;
59 UUID m_selected_id;
60 };
61}
manages a series of SectionContent that can share the same space or lay out in various patterns inclu...
Definition ContainerWidget.h:149
Definition QCustomDockWidget.h:121
Provides a modifiable pointer that has shared ownership of a dynamically allocated object.
Definition Pointer.hpp:320
Allows the user to select Models or Materials from a list to add to the scene. See DesignObjectChoose...
Definition LibraryDialog.h:48
LibraryWidget(QTModelManager *manager, const DynamicPointer< ModelEditController > &edit_controller, QWidget *parent=nullptr)
void setCategory(const String &category)
Allows the user to input an N-dimensional point (up to 4 dimensions) with an optinal unit....
Definition PointWidget.h:57
A wrapper around DesignObjectLookup that provides signal and slot functionality and adds rendering ca...
Definition QTModelManager.h:105
The core String class for the NDEVR API.
Definition String.h:69
A universally unique identifier (UUID) is a 128-bit number used to identify information in computer s...
Definition UUID.h:60
Definition ACIColor.h:37