API Documentation
Loading...
Searching...
No Matches
ConnectionDialog.h
Go to the documentation of this file.
1#pragma once
2#include "DLLInfo.h"
3#include "NDEVR/SoftwareService.h"
4#include <NDEVR/Connection.h>
5#include <QWidget>
6namespace NDEVR
7{
8 /**--------------------------------------------------------------------------------------------------
9 \brief A virtual dialog that provides an interface that allows the user to adjust certain parameters
10 for a Connection.
11 **/
13 {
14 Q_OBJECT
15 public:
16 ConnectionDialog(QWidget* parent = nullptr);
17 virtual Connection* createConnection(const Model& model) const;
18 virtual void clear() = 0;
19 virtual ConnectionInfo connectionInfo() const = 0;
20 virtual void setConnectionInfo(const ConnectionInfo& connection) = 0;
21 virtual bool handlesConnection(const ConnectionInfo& connection) = 0;
22 signals:
25 };
26 /**--------------------------------------------------------------------------------------------------
27 \brief Used to, given a Connection, generate an appropriate ConnectionDialog to allow adjustment of
28 parameters.
29 **/
31 {
32 public:
33 virtual bool handlesConnection(const ConnectionInfo& connection) const;
34 virtual TranslatedString title() const = 0;
35 virtual String icon() const = 0;
36 virtual bool handlesType(const String& type) const = 0;
38 public:
41 protected:
43 };
44}
#define HARDWARE_WIDGETS_API
Definition DLLInfo.h:56
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:56
Used to, given a Connection, generate an appropriate ConnectionDialog to allow adjustment of paramete...
Definition ConnectionDialog.h:31
static Buffer< ConnectionDialogFactory * > ConnectionDialogFactories()
virtual bool handlesConnection(const ConnectionInfo &connection) const
static void RegisterConnectionFactory(ConnectionDialogFactory *factory)
virtual String icon() const =0
static Buffer< ConnectionDialogFactory * > s_registered_factories
Definition ConnectionDialog.h:42
virtual ConnectionDialog * createConnectionDialog() const =0
virtual TranslatedString title() const =0
virtual bool handlesType(const String &type) const =0
A virtual dialog that provides an interface that allows the user to adjust certain parameters for a C...
Definition ConnectionDialog.h:13
ConnectionDialog(QWidget *parent=nullptr)
virtual Connection * createConnection(const Model &model) const
virtual ConnectionInfo connectionInfo() const =0
virtual void clear()=0
virtual bool handlesConnection(const ConnectionInfo &connection)=0
virtual void setConnectionInfo(const ConnectionInfo &connection)=0
A standard interface for all types of connections that allow transmitting and recieving of data betwe...
Definition Connection.h:198
A core class that represents a node on model heirarchy. This node may contain a Geometry or one or mo...
Definition Model.h:58
Software Services provide an interface for adding to or changing the software behavior via functional...
Definition SoftwareService.h:9
Software Service Managers take a Software service to modify the behavior of the software.
Definition SoftwareService.h:15
The core String class for the NDEVR API.
Definition String.h:69
Any text displayed to the user should be defined as a TranslatedString which allows the program to lo...
Definition TranslatedString.h:13
Definition ACIColor.h:37
A structure designed to store information about a specific Connection.
Definition Connection.h:97