15 #include <QFileDialog>
21 setObjectName(
"Go4LogSettings");
29 LogfileWrite->setChecked(iswrite);
31 LogfileName->setEnabled(iswrite);
32 FileNameLog->setEnabled(iswrite);
37 QFileDialog fd(
this,
"Set GUI logfile",
"",
"Log textfile (*.log)");
38 fd.setFileMode( QFileDialog::AnyFile );
39 if (fd.exec() != QDialog::Accepted)
return;
41 QStringList flst = fd.selectedFiles();
42 if (flst.isEmpty())
return;
44 QString fileName = flst[0];
45 if(!fileName.endsWith(
".log")) fileName.append(
".log");
46 LogfileName->setText(fileName);
static const char * GetLogname()
virtual void LogfileDialog()
static Bool_t IsOutputEnabled()
TGo4LogSettings(QWidget *parent=0)
static Bool_t IsLogfileEnabled()
static Int_t GetIgnoreLevel()
static Bool_t IsAutoEnabled()