Creates a wifi connection dialog and populates it with settings from connection if given.
If device is not given a device selection combo box will be included. If connection is not given a connection
selection combo box will be included. If secrets_only is false a complete connection
creator/editor dialog is returned, otherwise only wifi security secrets relevant to the security settings in connection are
going to be shown and will be editable.
| client |
client to retrieve list of devices or connections from |
| connection |
connection to be shown/edited or null |
| device |
device to check connection compatibility against |
| ap |
AP to check connection compatibility against |
| secrets_only |
whether to only ask for secrets for given connection |
|
the dialog widget or null in case of error |