20 setObjectName(
"Go4OpenRemoteDialog");
26 QString hostname, filename, protocol;
29 ServerEdit->setText(hostname);
31 FileNameEdit->setText(filename);
35 if(protocol.contains(
"root:"))
37 else if (protocol.contains(
"rfio:"))
39 else if (protocol.contains(
"http:"))
43 TypeSelectorBox->setCurrentIndex(indx);
46 TypeSelectorBox->setCurrentText(protocol);
55 if(protocol.contains(
"root:"))
57 else if (protocol.contains(
"rfio:"))
59 else if (protocol.contains(
"http:"))
68 QString tname = TypeSelectorBox->itemText(indx);
69 if(tname.contains(
"root:") || tname.contains(
"http:") || tname.contains(
"rfio:"))
70 ServerEdit->setEnabled(
true);
72 ServerEdit->setEnabled(
false);
const QString & GetServer()
void getRemoteFileSett(QString &hostname, QString &filename, QString &protocol)
virtual void ServerEdit_textChanged(const QString &txt)
const QString & GetFileName()
virtual void TypeSelectorBox_activated(int indx)
TGo4OpenRemoteDialog(QWidget *parent=nullptr)
void setRemoteFileSett(const QString &hostname, const QString &filename, const QString &protocol)
virtual void FileNameEdit_textChanged(const QString &txt)
const QString & GetFileType()
virtual ~TGo4OpenRemoteDialog()