Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

TGo4OpenRemoteDialog.ui.h

Go to the documentation of this file.
00001 //-------------------------------------------------------------
00002 //        Go4 Release Package v3.04-01 (build 30401)
00003 //                      28-November-2008
00004 //---------------------------------------------------------------
00005 //   The GSI Online Offline Object Oriented (Go4) Project
00006 //   Experiment Data Processing at EE department, GSI
00007 //---------------------------------------------------------------
00008 //
00009 //Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI
00010 //                    Planckstr. 1, 64291 Darmstadt, Germany
00011 //Contact:            http://go4.gsi.de
00012 //----------------------------------------------------------------
00013 //This software can be used under the license agreements as stated
00014 //in Go4License.txt file which is part of the distribution.
00015 //----------------------------------------------------------------
00016 /****************************************************************************
00017 ** ui.h extension file, included from the uic-generated form implementation.
00018 **
00019 ** If you wish to add, delete or rename functions or slots use
00020 ** Qt Designer which will update this file, preserving your code. Create an
00021 ** init() function in place of a constructor, and a destroy() function in
00022 ** place of a destructor.
00023 *****************************************************************************/
00024 
00025 void TGo4OpenRemoteDialog::init()
00026 {
00027    QString hostname, filename, protocol;
00028    go4sett->getRemoteFileSett(hostname, filename, protocol);
00029 
00030    ServerEdit->setText(hostname);
00031    fxServer=hostname;
00032    FileNameEdit->setText(filename);
00033    fxFile=filename;
00034    fxType=protocol;
00035    if(protocol.contains("root:"))
00036       TypeSelectorBox->setCurrentItem(0);
00037    else
00038    if (protocol.contains("rfio:"))
00039       TypeSelectorBox->setCurrentItem(1);
00040    else
00041    if (protocol.contains("http:"))
00042       TypeSelectorBox->setCurrentItem(2);
00043    else
00044       TypeSelectorBox->setCurrentItem(3);
00045    TypeSelectorBox_activated(protocol);
00046 }
00047 
00048 void TGo4OpenRemoteDialog::destroy()
00049 {
00050    QString server = GetServer();
00051    QString fname = GetFileName();
00052    QString protocol = GetFileType();
00053    if(protocol.contains("root:"))
00054        protocol="root:";
00055    else
00056    if (protocol.contains("rfio:"))
00057        protocol="rfio:";
00058    else
00059    if (protocol.contains("http:"))
00060        protocol="http:";
00061    else
00062        protocol="local:";
00063    go4sett->setRemoteFileSett(server, fname, protocol);
00064 }
00065 
00066 void TGo4OpenRemoteDialog::TypeSelectorBox_activated( const QString & tname)
00067 {
00068    if(tname.contains("root:") || tname.contains("http:") || tname.contains("rfio:"))
00069       ServerEdit->setEnabled(true);
00070    else
00071       ServerEdit->setEnabled(false);
00072    fxType=tname;
00073 }
00074 
00075 
00076 const QString& TGo4OpenRemoteDialog::GetFileName()
00077 {
00078    return fxFile;
00079 }
00080 
00081 const QString& TGo4OpenRemoteDialog::GetFileType()
00082 {
00083    return fxType;
00084 }
00085 
00086 
00087 const QString& TGo4OpenRemoteDialog::GetServer()
00088 {
00089    return fxServer;
00090 }
00091 
00092 void TGo4OpenRemoteDialog::ServerEdit_textChanged( const QString &  txt)
00093 {
00094    fxServer=txt;
00095 }
00096 
00097 
00098 void TGo4OpenRemoteDialog::FileNameEdit_textChanged( const QString & txt)
00099 {
00100    fxFile=txt;
00101 }
00102 
00103 //----------------------------END OF GO4 SOURCE FILE ---------------------

Generated on Fri Nov 28 12:59:22 2008 for Go4-v3.04-1 by  doxygen 1.4.2