|
|
|
@ -36,11 +36,19 @@ namespace Settings
|
|
|
|
|
///< save user settings to file
|
|
|
|
|
|
|
|
|
|
static void resetPendingChange(const std::string &setting, const std::string &category);
|
|
|
|
|
///< resets a single pending change
|
|
|
|
|
|
|
|
|
|
static void resetPendingChanges();
|
|
|
|
|
///< resets the list of all pending changes
|
|
|
|
|
|
|
|
|
|
static const CategorySettingVector getPendingChanges();
|
|
|
|
|
///< returns the list of changed settings and then clears it
|
|
|
|
|
static void resetPendingChanges(const CategorySettingVector& filter);
|
|
|
|
|
///< resets only the pending changes listed in the filter
|
|
|
|
|
|
|
|
|
|
static CategorySettingVector getPendingChanges();
|
|
|
|
|
///< returns the list of changed settings
|
|
|
|
|
|
|
|
|
|
static CategorySettingVector getPendingChanges(const CategorySettingVector& filter);
|
|
|
|
|
///< returns the list of changed settings intersecting with the filter
|
|
|
|
|
|
|
|
|
|
static int getInt (const std::string& setting, const std::string& category);
|
|
|
|
|
static float getFloat (const std::string& setting, const std::string& category);
|
|
|
|
@ -50,15 +58,15 @@ namespace Settings
|
|
|
|
|
static osg::Vec2f getVector2 (const std::string& setting, const std::string& category);
|
|
|
|
|
static osg::Vec3f getVector3 (const std::string& setting, const std::string& category);
|
|
|
|
|
|
|
|
|
|
static void setInt (const std::string& setting, const std::string& category, const int value);
|
|
|
|
|
static void setFloat (const std::string& setting, const std::string& category, const float value);
|
|
|
|
|
static void setDouble (const std::string& setting, const std::string& category, const double value);
|
|
|
|
|
static void setInt (const std::string& setting, const std::string& category, int value);
|
|
|
|
|
static void setFloat (const std::string& setting, const std::string& category, float value);
|
|
|
|
|
static void setDouble (const std::string& setting, const std::string& category, double value);
|
|
|
|
|
static void setString (const std::string& setting, const std::string& category, const std::string& value);
|
|
|
|
|
static void setBool (const std::string& setting, const std::string& category, const bool value);
|
|
|
|
|
static void setVector2 (const std::string& setting, const std::string& category, const osg::Vec2f value);
|
|
|
|
|
static void setVector3 (const std::string& setting, const std::string& category, const osg::Vec3f value);
|
|
|
|
|
static void setBool (const std::string& setting, const std::string& category, bool value);
|
|
|
|
|
static void setVector2 (const std::string& setting, const std::string& category, osg::Vec2f value);
|
|
|
|
|
static void setVector3 (const std::string& setting, const std::string& category, osg::Vec3f value);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif // _COMPONENTS_SETTINGS_H
|
|
|
|
|
#endif // COMPONENTS_SETTINGS_H
|
|
|
|
|