ATLAS Offline Software
graphics
VP1
VP1Base
src
VP1Settings.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
7
// //
8
// Implementation of class VP1Settings //
9
// //
10
// Author: Thomas H. Kittelmann (Thomas.Kittelmann@cern.ch) //
11
// Initial version: December 2008 //
12
// //
14
15
#include "
VP1Base/VP1Settings.h
"
16
#include "
VP1Base/VP1QtUtils.h
"
17
18
#include <QFileInfo>
19
#include <QDir>
20
21
//____________________________________________________________________
22
QString
VP1Settings::defaultFileSelectDirectory
()
23
{
24
static
QString thedir;
25
if
(thedir.isEmpty()) {
26
#if defined BUILDVP1LIGHT
27
thedir =
VP1QtUtils::expertSettingValue
(
"expert"
,
"ExpertSettings/VP1_FILESELECTDIR"
);
28
#else
29
thedir =
VP1QtUtils::environmentVariableValue
(
"VP1_FILESELECTDIR"
);
30
#endif
31
if
(thedir.isEmpty()||!QFileInfo(thedir).
isDir
()||!QFileInfo(thedir).
exists
())
32
thedir = QDir::currentPath();
33
}
34
return
thedir;
35
}
VP1QtUtils.h
VP1QtUtils::expertSettingValue
static QString expertSettingValue(const QString &type, const QString &name)
Definition:
VP1QtUtils.cxx:43
VP1QtUtils::environmentVariableValue
static QString environmentVariableValue(const QString &name)
Definition:
VP1QtUtils.cxx:117
VP1Settings.h
VP1Settings::defaultFileSelectDirectory
static QString defaultFileSelectDirectory()
Definition:
VP1Settings.cxx:22
runegammaMonitoring.isDir
isDir
Definition:
runegammaMonitoring.py:37
python.dummyaccess.exists
def exists(filename)
Definition:
dummyaccess.py:9
Generated on Sun Dec 22 2024 21:22:36 for ATLAS Offline Software by
1.8.18