17 #ifndef GEPETTO_GUI_SETTINGS_HH
18 #define GEPETTO_GUI_SETTINGS_HH
21 #include <QStringList>
96 const QVariant& defaultValue = QVariant());
107 std::ostream&
print(std::ostream& os);
144 void addRobotFromString(
const std::string& rbtStr);
145 void addEnvFromString(
const std::string& envStr);
146 void addPlugin(
const QString& plg,
bool init);
147 void addPyPlugin(
const QString& plg,
bool init);
148 void addPyScript(
const QString& fileName);
149 void addOmniORB(
const QString& arg,
const QString& value);
151 inline void log(
const QString& t);
152 inline void logError(
const QString& t);
155 QStringList omniORBargv_;
Class.
Definition: mainwindow.hh:40
Definition: pluginmanagerdialog.hh:34
Definition: action-search-bar.hh:27
Definition: settings.hh:36
QString getQSettingsFileName(const std::string &settingsName) const
Get the filename of a configuration file.
std::string configurationFile
Definition: settings.hh:37
PluginManager pluginManager_
Definition: settings.hh:98
void writeSettings()
Write the settings to configuration files.
Settings(const char *installDirectory)
Set up default values.
QStringList ffmpegInputOptions
Definition: settings.hh:57
bool autoWriteSettings
Definition: settings.hh:46
std::string stateConf
Definition: settings.hh:40
QString appStyle
Definition: settings.hh:63
bool useNameService
Definition: settings.hh:47
int refreshRate
Definition: settings.hh:49
QString installDirectory
Definition: settings.hh:61
QStringList pyscripts_
Definition: settings.hh:101
std::string captureExtension
Definition: settings.hh:52
bool verbose
Definition: settings.hh:44
void setMainWindow(MainWindow *main)
void restoreState() const
int initSettings(int argc, char *argv[])
QStringList ffmpegOutputOptions
Definition: settings.hh:58
std::string captureDirectory
Path to ffmpeg binary (maybe avconv on some distributions).
Definition: settings.hh:52
void fromFiles()
Update settings from setting files.
std::string captureFilename
Definition: settings.hh:52
void restoreDockWidgetsState() const
std::string predifinedEnvConf
Definition: settings.hh:39
std::string predifinedRobotConf
Definition: settings.hh:38
QStringList pyplugins_
Definition: settings.hh:100
std::ostream & print(std::ostream &os)
QVariant getSetting(const QString &key, const QVariant &defaultValue=QVariant())
Get a setting.
QString ffmpeg
Definition: settings.hh:56
const char ** makeOmniORBargs(int &argc)
std::string logFile
Definition: settings.hh:42
QStringList pluginsToInit_
Definition: settings.hh:99
bool noPlugin
Definition: settings.hh:45