]> git.mxchange.org Git - flightgear.git/blobdiff - src/Environment/fgclouds.hxx
allow to trigger widgets via accelerator key, which is defined via "keynum"
[flightgear.git] / src / Environment / fgclouds.hxx
index 2dff644271c0cca62269b6d3fc4158a6dc9a54dc..e5840fbe1af3169406bbbfdac51d2e7bd5e2dc88 100644 (file)
@@ -42,14 +42,14 @@ class FGEnvironmentCtrl;
 class FGClouds {
 
 private:
-       SGNewCloud *buildCloud(SGPropertyNode *cloud_def_root, string name);
-       void buildLayer(SGCloudField *layer, string name, double alt, double coverage);
+       SGNewCloud *buildCloud(SGPropertyNode *cloud_def_root, const string& name);
+       void buildLayer(SGCloudField *layer, const string& name, double alt, double coverage);
 
        void buildMETAR(void);
 
-       void buildScenario( string scenario );
+       void buildScenario( const string& scenario );
 
-       void setLayer( int iLayer, float alt_m, string coverage, string layer_type );
+       void setLayer( int iLayer, float alt_m, const string& coverage, const string& layer_type );
 
        void update_metar_properties( FGMetar *m );
 
@@ -59,6 +59,8 @@ private:
        SGSoundSample *snd_lightning;
        FGEnvironmentCtrl * _controller;
        float station_elevation_ft;
+    string last_scenario;
+    SGPropertyNode *last_env_config, *last_env_clouds;
 
 public:
        FGClouds(FGEnvironmentCtrl * controller);