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/Connection.h>
4#include <QWidget>
5namespace NDEVR
6{
8 {
9 Q_OBJECT
10 public:
11 ConnectionDialog(QWidget* parent = nullptr);
12 virtual Connection* createConnection(const Model& model) const;
13 virtual void clear() = 0;
14 virtual ConnectionInfo connectionInfo() const = 0;
15 virtual void setConnectionInfo(const ConnectionInfo& connection) = 0;
16 virtual bool handlesConnection(const ConnectionInfo& connection) = 0;
17 signals:
20 };
21
23 {
24 public:
25 virtual bool handlesConnection(const ConnectionInfo& connection) const;
26 virtual TranslatedString title() const = 0;
27 virtual String icon() const = 0;
28 virtual bool handlesType(const String& type) const = 0;
30 public:
33 protected:
35 };
36}
#define HARDWARE_WIDGETS_API
Definition DLLInfo.h:74
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:59
Definition ConnectionDialog.h:23
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:34
virtual ConnectionDialog * createConnectionDialog() const =0
virtual TranslatedString title() const =0
virtual bool handlesType(const String &type) const =0
Definition ConnectionDialog.h:8
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.
Definition Connection.h:182
A core class that represents a node on model heirarchy. This node may contain a Geometry or.
Definition Model.h:58
The core String class for the software.
Definition String.h:47
Any text displayed to the user should be defined as a TranslatedString which allows the.
Definition TranslatedString.h:13
Definition ACIColor.h:37
Definition Connection.h:87