|
ParaView
|
pqServerConnectDialog is a dialog that can be used to show the user a selection of server configurations to connect to a server. More...
#include <pqServerConnectDialog.h>
Public Member Functions | |
| pqServerConnectDialog (QWidget *parent=0, const pqServerResource &selector=pqServerResource()) | |
If selector is specified, only those server-configurations that match the selector's scheme and hostname are shown. | |
| virtual | ~pqServerConnectDialog () |
| const pqServerConfiguration & | configurationToConnect () const |
| returns the configuration to connect to. | |
Static Public Member Functions | |
| static bool | selectServer (pqServerConfiguration &selected_configuration, QWidget *dialogParent=NULL, const pqServerResource &selector=pqServerResource()) |
| convenience method to determine which server to connect. | |
Protected Slots | |
| void | updateConfigurations () |
| called to update the shown server configurations. | |
| void | onServerSelected (int row) |
| called when user selects a server. | |
| void | editServer () |
| called when user clicks "edit-server" | |
| void | addServer () |
| called when user clicks "add-server" | |
| void | updateServerType () |
| called when user changes the server-type. | |
| void | goToFirstPage () |
| called to cancel . | |
| void | acceptConfigurationPage1 () |
| called when user accepts the configuration page #1. | |
| void | acceptConfigurationPage2 () |
| called when user accepts the configuration page #2. | |
| void | editServerStartup () |
| called to proceed to page that allows the user to edit the startup. | |
| void | onNameChanged () |
| void | deleteServer () |
| called to delete a server. | |
| void | loadServers () |
| called to load/save servers. | |
| void | saveServers () |
| void | connect () |
| called to connect to selected server. | |
| void | updateDialogTitle (int page_number) |
| called when the main-stacked widget's active page changes. | |
| void | fetchServers () |
| called when user clicks "Fetch Servers". | |
| void | authenticationRequired (QNetworkReply *, QAuthenticator *) |
| called when the importer needs authentication from the user. | |
| void | updateImportableConfigurations () |
| called update importable configs. | |
| void | importError (const QString &message) |
| called to report error from importer. | |
| void | importServersSelectionChanged () |
| called when user selects some servers to import. | |
| void | importServers () |
| called to import selected configurations. | |
| void | editSources () |
| called to edit the sources url. | |
| void | saveSourcesList () |
| void | cancelEditSources () |
Protected Member Functions | |
| void | editConfiguration (const pqServerConfiguration &) |
pqServerConnectDialog is a dialog that can be used to show the user a selection of server configurations to connect to a server.
This dialog can show all the server-configurations known to pqApplicationCore or show only a subset of those depending on whether a selector was specified in the constructor.
On successful completion, this dialog provides access to the server-configuration selected by the user. It does not make an real attempts to connect to that server.
Definition at line 55 of file pqServerConnectDialog.h.
| pqServerConnectDialog::pqServerConnectDialog | ( | QWidget * | parent = 0, |
| const pqServerResource & | selector = pqServerResource() |
||
| ) |
If selector is specified, only those server-configurations that match the selector's scheme and hostname are shown.
| virtual pqServerConnectDialog::~pqServerConnectDialog | ( | ) | [virtual] |
| const pqServerConfiguration& pqServerConnectDialog::configurationToConnect | ( | ) | const |
returns the configuration to connect to.
This returns a valid response only when pqServerConnectDialog::exec() returns QDialog::Accepted.
| static bool pqServerConnectDialog::selectServer | ( | pqServerConfiguration & | selected_configuration, |
| QWidget * | dialogParent = NULL, |
||
| const pqServerResource & | selector = pqServerResource() |
||
| ) | [static] |
convenience method to determine which server to connect.
If the selector is specified and matches a single server, then the user is not presented with a dialog, otherwise the user can choose the configuration to use to connect to the server. When the method returns true, selected_configuration will be set to the chosen configuration.
| void pqServerConnectDialog::updateConfigurations | ( | ) | [protected, slot] |
called to update the shown server configurations.
| void pqServerConnectDialog::onServerSelected | ( | int | row | ) | [protected, slot] |
called when user selects a server.
| void pqServerConnectDialog::editServer | ( | ) | [protected, slot] |
called when user clicks "edit-server"
| void pqServerConnectDialog::addServer | ( | ) | [protected, slot] |
called when user clicks "add-server"
| void pqServerConnectDialog::updateServerType | ( | ) | [protected, slot] |
called when user changes the server-type.
| void pqServerConnectDialog::goToFirstPage | ( | ) | [protected, slot] |
called to cancel .
| void pqServerConnectDialog::acceptConfigurationPage1 | ( | ) | [protected, slot] |
called when user accepts the configuration page #1.
| void pqServerConnectDialog::acceptConfigurationPage2 | ( | ) | [protected, slot] |
called when user accepts the configuration page #2.
| void pqServerConnectDialog::editServerStartup | ( | ) | [protected, slot] |
called to proceed to page that allows the user to edit the startup.
| void pqServerConnectDialog::onNameChanged | ( | ) | [protected, slot] |
| void pqServerConnectDialog::deleteServer | ( | ) | [protected, slot] |
called to delete a server.
| void pqServerConnectDialog::loadServers | ( | ) | [protected, slot] |
called to load/save servers.
| void pqServerConnectDialog::saveServers | ( | ) | [protected, slot] |
| void pqServerConnectDialog::connect | ( | ) | [protected, slot] |
called to connect to selected server.
| void pqServerConnectDialog::updateDialogTitle | ( | int | page_number | ) | [protected, slot] |
called when the main-stacked widget's active page changes.
We update the dialog;s title text to match the page being displayed.
| void pqServerConnectDialog::fetchServers | ( | ) | [protected, slot] |
called when user clicks "Fetch Servers".
| void pqServerConnectDialog::authenticationRequired | ( | QNetworkReply * | , |
| QAuthenticator * | |||
| ) | [protected, slot] |
called when the importer needs authentication from the user.
| void pqServerConnectDialog::updateImportableConfigurations | ( | ) | [protected, slot] |
called update importable configs.
| void pqServerConnectDialog::importError | ( | const QString & | message | ) | [protected, slot] |
called to report error from importer.
| void pqServerConnectDialog::importServersSelectionChanged | ( | ) | [protected, slot] |
called when user selects some servers to import.
| void pqServerConnectDialog::importServers | ( | ) | [protected, slot] |
called to import selected configurations.
| void pqServerConnectDialog::editSources | ( | ) | [protected, slot] |
called to edit the sources url.
| void pqServerConnectDialog::saveSourcesList | ( | ) | [protected, slot] |
| void pqServerConnectDialog::cancelEditSources | ( | ) | [protected, slot] |
| void pqServerConnectDialog::editConfiguration | ( | const pqServerConfiguration & | ) | [protected] |
1.7.5.1