17 #ifndef GEPETTO_GUI_SETTINGS_HH 18 #define GEPETTO_GUI_SETTINGS_HH 23 #include <QStringList> 65 Settings (
const char* installDirectory);
95 const QVariant & defaultValue = QVariant());
106 std::ostream&
print (std::ostream& os);
145 void addRobotFromString (
const std::string& rbtStr);
146 void addEnvFromString (
const std::string& envStr);
147 void addPlugin (
const QString& plg,
bool init);
148 void addPyPlugin (
const QString& plg,
bool init);
149 void addPyScript (
const QString& fileName);
150 void addOmniORB (
const QString& arg,
const QString& value);
152 inline void log (
const QString& t);
153 inline void logError (
const QString& t);
156 QStringList omniORBargv_;
161 #endif // GEPETTO_GUI_SETTINGS_HH int refreshRate
Definition: settings.hh:48
QString getQSettingsFileName(const std::string &settingsName) const
Get the filename of a configuration file.
std::string predifinedRobotConf
Definition: settings.hh:39
void restoreState() const
bool autoWriteSettings
Definition: settings.hh:45
bool useNameService
Definition: settings.hh:46
QStringList avConvInputOptions
Definition: settings.hh:56
QString avconv
Definition: settings.hh:55
void fromFiles()
Update settings from setting files.
QStringList pyplugins_
Definition: settings.hh:99
Class.
Definition: mainwindow.hh:43
QVariant getSetting(const QString &key, const QVariant &defaultValue=QVariant())
Get a setting.
QString installDirectory
Definition: settings.hh:60
std::string captureDirectory
Path to avconv binary (maybe ffmpeg on some distributions).
Definition: settings.hh:51
Definition: settings.hh:37
Settings(const char *installDirectory)
Set up default values.
std::string configurationFile
Definition: settings.hh:38
void restoreDockWidgetsState() const
Definition: action-search-bar.hh:27
std::string predifinedEnvConf
Definition: settings.hh:40
std::string stateConf
Definition: settings.hh:41
void writeSettings()
Write the settings to configuration files.
void setMainWindow(MainWindow *main)
QString appStyle
Definition: settings.hh:62
Definition: pluginmanagerdialog.hh:35
QStringList pyscripts_
Definition: settings.hh:100
int initSettings(int argc, char *argv[])
bool verbose
Definition: settings.hh:43
QStringList avConvOutputOptions
Definition: settings.hh:57
std::string captureExtension
Definition: settings.hh:51
std::string captureFilename
Definition: settings.hh:51
bool noPlugin
Definition: settings.hh:44
const char ** makeOmniORBargs(int &argc)
PluginManager pluginManager_
Definition: settings.hh:97
QStringList pluginsToInit_
Definition: settings.hh:98
std::ostream & print(std::ostream &os)