2 Copyright 2006 Johnathan Corgan.
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License version 2
6 as published by the Free Software Foundation.
8 This software is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
13 You should have received a copy of the GNU General Public License
14 along with GNU Radio; see the file COPYING. If not, write to
15 the Free Software Foundation, Inc., 51 Franklin Street,
16 Boston, MA 02110-1301, USA.
19 #ifndef __TACTICAL_H__
20 #define __TACTICAL_H__
30 class TacticalPanel : public wxPanel
33 TacticalPanel(wxWindow *parent);
36 void OnPaint(wxPaintEvent &event);
37 void OnSize(wxSizeEvent &event);
40 void SetOrientation(Orientation orientation) { m_orientation = orientation; Refresh(); }
41 void SetDisplayDoppler(bool display) { m_display_doppler = display; Refresh(); }
42 void SetDisplayKnown(bool display) { m_display_known = display; Refresh(); }
43 void SetDisplayEstimated(bool display) { m_display_estimated = display; Refresh(); }
46 void SetHeading(float heading) { m_heading = heading; Refresh(); }
47 void SetDopplerBearing(float bearing) { m_doppler_bearing = bearing; Refresh(); }
48 void SetEstimatedBearing(float bearing) { m_estimated_bearing = bearing; Refresh(); }
49 void SetActualBearing(float bearing) { m_actual_bearing = bearing; Refresh(); }
52 Orientation m_orientation;
53 bool m_display_doppler;
55 bool m_display_estimated;
58 float m_doppler_bearing;
59 float m_estimated_bearing;
60 float m_actual_bearing;
62 void drawPanel(wxDC &dc);
64 // Window size derived parameters
70 DECLARE_EVENT_TABLE();
73 #endif // __TACTICAL_H__