NDEVR
API Documentation
ConnectionSetupWidget.h
1#pragma once
2#include "DLLInfo.h"
3#include <NDEVR/QCustomTabWidget.h>
4#include <NDEVR/WidgetOptions.h>
5#include <NDEVR/Button.h>
6namespace NDEVR
7{
10 struct ConnectionInfo;
15 class HARDWARE_WIDGETS_API ConnectionSetupWidget : public QCustomTabWidget
16 {
17 Q_OBJECT
18 public:
23 ConnectionSetupWidget(QWidget* parent = nullptr);
28 void setConnectionInfo(const ConnectionInfo& connection);
36 protected:
38 void init();
39 signals:
42 protected:
45 };
46}
The equivelent of std::vector but with a bit more control.
Definition Buffer.hpp:58
Used to, given a Connection, generate an appropriate ConnectionDialog to allow adjustment of paramete...
A virtual dialog that provides an interface that allows the user to adjust certain parameters for a C...
void setConnectionInfo(const ConnectionInfo &connection)
Populates the appropriate connection dialog tab with the given connection info.
void acceptedSignal()
Emitted when the user accepts the connection setup.
Buffer< ConnectionDialogFactory * > m_connection_dialog_factories
The factories that created each dialog.
void init()
Initializes tabs by creating ConnectionDialog instances from registered factories.
void clearConnection()
Clears all connection dialogs to their default state.
ConnectionInfo connectionInfo() const
Returns the connection info from the currently active dialog tab.
ConnectionSetupWidget(QWidget *parent=nullptr)
Constructs a ConnectionSetupWidget.
void cancelledSignal()
Emitted when the user cancels the connection setup.
Buffer< ConnectionDialog * > m_connection_dialogs
The connection dialog instances, one per tab.
QCustomTabWidget(QWidget *parent=nullptr)
Constructs a tab widget.
The primary namespace for the NDEVR SDK.
A structure designed to store information about a specific Connection.
Definition Connection.h:90