NDEVR
API Documentation
OWLActionPage.h
1/*--------------------------------------------------------------------------------------------
2Copyright (c) 2020, 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: NDEVRServerInterface
28File: OWLActionPage
29Included in API: True
30Author(s): tyler.parke
31 *-----------------------------------------------------------------------------------------**/
32
33#pragma once
34#include <QWidget>
35#include <NDEVR/QCustomStackedWidget.h>
36#include <NDEVR/NDEVRServerManager.h>
37namespace Ui
38{
39 class OWLActionPageUI;
40}
41namespace NDEVR
42{
46 class WindowManager;
47 class Button;
53 class OWLActionPage : public QWidget
54 {
55 Q_OBJECT
56 public:
62 OWLActionPage(OWLClientInterface* actions, DesignObjectLookup* lookup, QWidget* parent = nullptr);
67 bool event(QEvent* event) override;
71 void downloadURL(const StringView& url);
77 void reset();
80 signals:
83 private slots:
85 void checkProjectStatusSlot();
89 void connectionChangedSlot(bool connected);
90 private:
92 void init();
96 QSize minimumSizeHint() const override;
98 void onServerSettingsBack();
99 private:
100 String m_pending_download_url;
101 Ui::OWLActionPageUI* ui;
102 QWidget* m_on_back_widget = nullptr;
103 FileChooserDialog* m_file_chooser_dialog = nullptr;
104 OWLClientInterface* m_server_actions = nullptr;
105 DesignObjectLookup* m_lookup;
106 bool m_allow_anonymous_use = false;
107 };
108}
A core widget that allows the user to click one of many button types.
Definition Button.h:68
A core class where all Design Objects including models, materials, and geometries are stored.
A dialog designed to allow the user to navigate a filesytem and select or create one or more files or...
void setConnection(const NDEVRServerManager::OWLServer &server)
Sets the active server connection.
void tryToConnect()
Attempts to connect to the configured server.
void reset()
Resets the page to its initial state.
void downloadURL(const StringView &url)
Initiates a download from the given OWL URL.
void finishedSignal()
Emitted when the action page workflow has completed.
QSize minimumSizeHint() const override
Returns the minimum size hint for the widget.
bool event(QEvent *event) override
Handles events, including show/hide transitions.
OWLActionPage(OWLClientInterface *actions, DesignObjectLookup *lookup, QWidget *parent=nullptr)
Constructs the OWL action page.
High-level OWL server client that combines WebSocket communication with file transfer,...
The core String View class for the NDEVR API.
Definition StringView.h:58
The core String class for the NDEVR API.
Definition String.h:95
Manages all windows and logic surrounding dialogs and views for displaying and managing any environme...
The primary namespace for the NDEVR SDK.
Represents an OWL server entry with a name and unique ID.