]> git.mxchange.org Git - flightgear.git/blobdiff - src/Cockpit/panel.hxx
Here is the 'boostified' event manager plus relevant changes to
[flightgear.git] / src / Cockpit / panel.hxx
index 7afc96893505c9a9e5d610b011e3b555977a20d5..70fb1a1227722bdd092046b904dd7121f27a2f23 100644 (file)
@@ -150,6 +150,9 @@ public:
                                // Background texture.
   virtual void setBackground (ssgTexture * texture);
 
+                               // Background multiple textures.
+  virtual void setMultiBackground (ssgTexture * texture, int idx);
+
                                // Make the panel visible or invisible.
   virtual bool getVisibility () const;
   virtual void setVisibility (bool visibility);
@@ -178,6 +181,9 @@ public:
   virtual bool doMouseAction (int button, int updown, int x, int y);
 
 private:
+  void setupVirtualCockpit();
+  void cleanupVirtualCockpit();
+
   mutable bool _visibility;
   mutable bool _mouseDown;
   mutable int _mouseButton, _mouseX, _mouseY;
@@ -189,13 +195,13 @@ private:
   int _x_offset;
   int _y_offset;
   int _view_height;
-  bool _bound;
   float _jitter;
 
   const SGPropertyNode * _xsize_node;
   const SGPropertyNode * _ysize_node;
   
   ssgTexture * _bg;
+  ssgTexture * _mbg[8];
                                // List of instruments in panel.
   instrument_list_type _instruments;
 };
@@ -466,7 +472,7 @@ private:
 class FGTextLayer : public FGInstrumentLayer
 {
 public:
-  typedef enum ChunkType {
+  enum ChunkType {
     TEXT,
     TEXT_VALUE,
     DOUBLE_VALUE
@@ -566,3 +572,4 @@ extern FGPanel * current_panel;     // TODO: move to globals
 // end of panel.hxx
 
 
+