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 __SETTINGS_H__
20 #define __SETTINGS_H__
23 #include <wx/config.h>
24 #include <wx/gdicmn.h>
33 wxSize GetWindowSize();
34 void SetWindowSize(wxSize size);
36 // Main window position
38 void SetWindowXPos(int x);
40 void SetWindowYPos(int y);
42 // Autostart doppler on application bringup
43 bool GetDopplerAutostart();
44 void SetDopplerAutostart(bool val);
46 // Doppler filter value
47 int GetDopplerFilter();
48 void SetDopplerFilter(int level);
50 // Doppler filter value
51 int GetDopplerRotation();
52 void SetDopplerRotation(int rate);
54 // Doppler calibration values
55 float GetDopplerCalibration(int rate);
56 void SetDopplerCalibration(int rate, float offset);
58 // Autostart GPS on application bringup
59 bool GetGPSAutostart();
60 void SetGPSAutostart(bool val);
62 // GPS interface device
63 wxString GetGPSDeviceName();
64 void SetGPSDeviceName(wxString &name);
66 // Calibration adjust affects all rates
67 bool GetCalibrationAffectAllRates();
68 void SetCalibrationAffectAllRates(bool val);
70 // Known transmitter location
71 double GetKnownTransmitterLongitude();
72 void SetKnownTransmitterLongitude(double lon);
73 double GetKnownTransmitterLatitude();
74 void SetKnownTransmitterLatitude(double lat);
75 bool GetUseKnownTransmitter();
76 void SetUseKnownTransmitter(bool use);
78 // Display Orientation
79 int GetDisplayOrientation();
80 void SetDisplayOrientation(int orientation);
82 // Display Doppler Bearing
83 bool GetDisplayDoppler();
84 void SetDisplayDoppler(bool val);
86 // Display Known Bearing
87 bool GetDisplayKnown();
88 void SetDisplayKnown(bool val);
90 // Display Estimated Bearing
91 bool GetDisplayEstimated();
92 void SetDisplayEstimated(bool val);
94 wxString GetWorkingDirectory();
95 void SetWorkingDirectory(const wxString &dir);
101 #endif // __SETTINGS_H__