API Documentation
Loading...
Searching...
No Matches
Editor.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: Editor
29Included in API: True
30Author(s): Tyler Parke
31 *-----------------------------------------------------------------------------------------**/
32#pragma once
33#include "DLLInfo.h"
34#include <NDEVR/QTDesignObject.h>
35#include <NDEVR/Pointer.h>
36#include <NDEVR/Buffer.h>
37#include <QWidget>
38namespace NDEVR
39{
40 class Log;
41 class QTModelManager;
42 class DesignObjectDialog;
43 class InterfaceOrientationController;
44 class NDEVR_API Editor : public QWidget
45 {
46 Q_OBJECT
47 public:
48 Editor(QWidget* parent = nullptr);
49 Editor(const DynamicPointer<QTDesignObject>& object, QWidget* parent = nullptr);
50 virtual void updateValues() = 0;
51 virtual bool fullscreenTouch() const;
52 virtual bool allowDocking() const;
54 virtual String customDialogIcon() const { return String(); };
55 virtual InterfaceOrientationController* orientationController() const;
56 virtual Buffer<QWidget*> printableWidgets() { return { this }; }
58 virtual Buffer<QWidget*> bottomOptions() { return {}; }
59#if NDEVR_VIEWPORT
60 virtual void moveTargetWithMouse();
61#endif
62 virtual void setTarget(const DynamicPointer<QTDesignObject>& object);
63 virtual void setHorizontal(bool horizontal);
64 virtual void requestScrollEnabled(bool enabled);
65 const DynamicPointer<QTDesignObject>& target() const { return m_design_object; };
67 virtual bool isBusy() const { return false; }
68 protected slots:
69 void onDesignObjectUpdateSlot();
70 signals:
73 protected:
76 };
77}
#define NDEVR_API
Definition DLLInfo.h:67
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:64
Definition DesignObjectDialog.h:70
Definition Pointer.hpp:303
Definition Editor.h:45
DynamicPointer< QTDesignObject > m_design_object
Definition Editor.h:75
virtual Buffer< QWidget * > printableWidgetOptions()
Definition Editor.h:57
virtual void updateValues()=0
InterfaceOrientationController * m_orientation_controller
Definition Editor.h:74
virtual Buffer< QWidget * > bottomOptions()
Definition Editor.h:58
const DynamicPointer< QTDesignObject > & target() const
Definition Editor.h:65
void objectUpdatedSignal()
virtual Buffer< QWidget * > printableWidgets()
Definition Editor.h:56
virtual String customDialogIcon() const
Definition Editor.h:54
void isBusyStatusChanged()
virtual bool isBusy() const
Definition Editor.h:67
virtual void setup(DesignObjectDialog *, const ShowPropertiesSettings &)
Definition Editor.h:66
virtual TranslatedString customDialogTitle() const
Definition Editor.h:53
Definition InterfaceOrientationController.h:29
Definition String.h:40
Definition TranslatedString.h:9
Definition ACIColor.h:37
Definition ShowPropertySettings.h:22