@@ -678,6 +678,16 @@ void ApplicationSettings::setLastFilepickerLocation(const FilePath& path)
|
||||
setValue<std::wstring>("user/last_filepicker_location", path.wstr());
|
||||
}
|
||||
|
||||
float ApplicationSettings::getGraphZoomLevel() const
|
||||
{
|
||||
return getValue<float>("user/graph_zoom_level", 1.0f);
|
||||
}
|
||||
|
||||
void ApplicationSettings::setGraphZoomLevel(float zoomLevel)
|
||||
{
|
||||
setValue<float>("user/graph_zoom_level", zoomLevel);
|
||||
}
|
||||
|
||||
int ApplicationSettings::getPluginPort() const
|
||||
{
|
||||
return getValue<int>("network/plugin_port", 6666);
|
||||
|
||||
@@ -181,6 +181,9 @@ public:
|
||||
FilePath getLastFilepickerLocation() const;
|
||||
void setLastFilepickerLocation(const FilePath& path);
|
||||
|
||||
float getGraphZoomLevel() const;
|
||||
void setGraphZoomLevel(float zoomLevel);
|
||||
|
||||
// network
|
||||
int getPluginPort() const;
|
||||
void setPluginPort(const int pluginPort);
|
||||
|
||||
Reference in New Issue
Block a user