21 setObjectName(
"Go4OpenRemoteDialog");
23 QString hostname, filename, protocol;
26 ServerEdit->setText(hostname);
28 FileNameEdit->setText(filename);
31 if(protocol.contains(
"root:"))
32 TypeSelectorBox->setCurrentIndex(0);
34 if (protocol.contains(
"rfio:"))
35 TypeSelectorBox->setCurrentIndex(1);
37 if (protocol.contains(
"http:"))
38 TypeSelectorBox->setCurrentIndex(2);
40 TypeSelectorBox->setCurrentIndex(3);
49 if(protocol.contains(
"root:"))
52 if (protocol.contains(
"rfio:"))
55 if (protocol.contains(
"http:"))
66 if(tname.contains(
"root:") || tname.contains(
"http:") || tname.contains(
"rfio:"))
67 ServerEdit->setEnabled(
true);
69 ServerEdit->setEnabled(
false);
const QString & GetServer()
void getRemoteFileSett(QString &hostname, QString &filename, QString &protocol)
virtual void ServerEdit_textChanged(const QString &txt)
const QString & GetFileName()
TGo4OpenRemoteDialog(QWidget *parent=0)
void setRemoteFileSett(const QString &hostname, const QString &filename, const QString &protocol)
virtual void TypeSelectorBox_activated(const QString &tname)
virtual void FileNameEdit_textChanged(const QString &txt)
const QString & GetFileType()
virtual ~TGo4OpenRemoteDialog()