X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCockpit%2Fpanel.hxx;h=b99889ce1628f26788f8ffb033bc1a3480998e4b;hb=897f295988b446d50b099a51d81df20df88a3a60;hp=d39a2a2d5d4b5b807a27486ebdeead18de135c20;hpb=0179cab894c7c832d1b7dbb3e09f704def3a5da1;p=flightgear.git diff --git a/src/Cockpit/panel.hxx b/src/Cockpit/panel.hxx index d39a2a2d5..b99889ce1 100644 --- a/src/Cockpit/panel.hxx +++ b/src/Cockpit/panel.hxx @@ -30,26 +30,24 @@ # include #endif -#include - -#ifdef HAVE_WINDOWS_H +#ifdef HAVE_WINDOWS_H # include #endif #include +#include -#include +#include #include +#include +#include #include #include #include #include -#include -#include
#include
- #include SG_USING_STD(vector); @@ -130,7 +128,7 @@ private: * redraw themselves when necessary, and will pass mouse clicks on to * the appropriate instruments for processing. */ -class FGPanel : public FGSubsystem +class FGPanel : public SGSubsystem { public: @@ -494,7 +492,8 @@ public: public: Chunk (const string &text, const string &fmt = "%s"); Chunk (ChunkType type, const SGPropertyNode * node, - const string &fmt = "", float mult = 1.0); + const string &fmt = "", float mult = 1.0, float offs = 0.0, + bool truncation = false); const char * getValue () const; private: @@ -503,6 +502,8 @@ public: const SGPropertyNode * _node; string _fmt; float _mult; + float _offs; + bool _trunc; mutable char _buf[1024]; };