Emergency 2017 Dokumentation  v3.0.1
qsf::editor::ConnectDialog Class Reference

QSF editor client connect dialog. More...

#include <ConnectDialog.h>

Public Member Functions

 ConnectDialog (bool connectAutomatically, bool allowDifferentHostPort, QWidget *qWidgetParent=nullptr)
 Constructor. More...
 
virtual ~ConnectDialog ()
 Destructor. More...
 
- Public Member Functions inherited from qsf::editor::ClientStartupDialog
virtual ~ClientStartupDialog ()
 Destructor. More...
 

Protected Member Functions

virtual void retranslateUi () override
 Retranslate the UI. More...
 
virtual void closeEvent (QCloseEvent *qCloseEvent) override
 
- Protected Member Functions inherited from qsf::editor::ClientStartupDialog
 ClientStartupDialog (QWidget *qWidgetParent)
 Constructor. More...
 
virtual void changeEvent (QEvent *qEvent) override
 

Detailed Description

QSF editor client connect dialog.

Note
  • As result, the Qt dialog returns the new stage "qsf::editor::Application::Stage" the application should switch to
Todo:
  • TODO(co) This is just a first quick'n'dirty prototype, fine tune it
  • TODO(co) Give the user feedback about the attempt to connect to the server and also provide information in case of a connection failure
  • TODO(co) Make it possible to reset to the default settings (hostname="localhost", port="4042")
  • TODO(co) Add history support

Definition at line 50 of file ConnectDialog.h.

Constructor & Destructor Documentation

qsf::editor::ConnectDialog::ConnectDialog ( bool  connectAutomatically,
bool  allowDifferentHostPort,
QWidget *  qWidgetParent = nullptr 
)

Constructor.

Parameters
[in]connectAutomaticallyTry to automatically connect on startup?
[in]allowDifferentHostPortAllow changing host/port in this dialog?
[in]qWidgetParentPointer to parent Qt widget, can be a null pointer (in this case you're responsible for destroying this dialog instance)
virtual qsf::editor::ConnectDialog::~ConnectDialog ( )
virtual

Destructor.

Member Function Documentation

virtual void qsf::editor::ConnectDialog::closeEvent ( QCloseEvent *  qCloseEvent)
overrideprotectedvirtual
virtual void qsf::editor::ConnectDialog::retranslateUi ( )
overrideprotectedvirtual

Retranslate the UI.

Note
  • The default implementation is empty

Reimplemented from qsf::editor::ClientStartupDialog.


The documentation for this class was generated from the following file: