]> git.mxchange.org Git - flightgear.git/blobdiff - src/GUI/dialog.hxx
Added two missing files from JSBSim.org that were missing in the last sync.
[flightgear.git] / src / GUI / dialog.hxx
index f9fb4227f4528985a0aa56dbfed26a8d9117c59b..749c355cbdd6f215e75e7b5441e95cac783016db 100644 (file)
@@ -8,7 +8,6 @@
 #endif
 
 #include <plib/puAux.h>
-#include <plib/sg.h>
 
 #include <simgear/compiler.h>  // for SG_USING_STD
 #include <simgear/props/props.hxx>
@@ -22,7 +21,7 @@ using std::vector;
 #define FGCLASS_LIST          0x00000001
 #define FGCLASS_AIRPORTLIST   0x00000002
 #define FGCLASS_PROPERTYLIST  0x00000004
-class GUI_ID { public: GUI_ID(int id) : id(id) {} int id; };
+class GUI_ID { public: GUI_ID(int id) : id(id) {} virtual ~GUI_ID() {} int id; };
 
 
 
@@ -185,10 +184,13 @@ public:
     puObject *getActiveInputField(puObject *);
     void applySize(puObject *);
 private:
+    enum { LEFT = 1, RIGHT = 2, TOP = 4, BOTTOM = 8 };
     bool _draggable;
     bool _resizable;
     bool _dragging;
-    int _modifier;
+    int _resizing;
+    int _start_cursor;
+    int _cursor;
     int _dlgX, _dlgY, _dlgW, _dlgH;
     int _startX, _startY;
 };