Updated FSF address in all files. Fixes ticket:51
[debian/gnuradio] / ezdop / src / host / hunter / src / settings.h
1 /*
2  Copyright 2006 Johnathan Corgan.
3  
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.
7  
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.
12  
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.
17 */
18
19 #ifndef __SETTINGS_H__
20 #define __SETTINGS_H__
21
22 // wxWidgets includes
23 #include <wx/config.h>
24 #include <wx/gdicmn.h>
25
26 class HunterSettings
27 {
28 public:
29     HunterSettings();
30     ~HunterSettings();
31     
32     // Main window size
33     wxSize GetWindowSize();
34     void SetWindowSize(wxSize size);
35
36     // Main window position
37     int GetWindowXPos();
38     void SetWindowXPos(int x);
39     int GetWindowYPos();
40     void SetWindowYPos(int y);
41
42     // Autostart doppler on application bringup
43     bool GetDopplerAutostart();
44     void SetDopplerAutostart(bool val);
45
46     // Doppler filter value
47     int GetDopplerFilter();
48     void SetDopplerFilter(int level);
49
50     // Doppler filter value
51     int GetDopplerRotation();
52     void SetDopplerRotation(int rate);
53
54     // Doppler calibration values
55     float GetDopplerCalibration(int rate);
56     void SetDopplerCalibration(int rate, float offset);
57         
58     // Autostart GPS on application bringup
59     bool GetGPSAutostart();
60     void SetGPSAutostart(bool val);
61
62     // GPS interface device
63     wxString GetGPSDeviceName();
64     void SetGPSDeviceName(wxString &name);
65
66     // Calibration adjust affects all rates
67     bool GetCalibrationAffectAllRates();
68     void SetCalibrationAffectAllRates(bool val);
69
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);
77
78     // Display Orientation
79     int GetDisplayOrientation();
80     void SetDisplayOrientation(int orientation);
81
82     // Display Doppler Bearing
83     bool GetDisplayDoppler();
84     void SetDisplayDoppler(bool val);
85
86     // Display Known Bearing
87     bool GetDisplayKnown();
88     void SetDisplayKnown(bool val);
89
90     // Display Estimated Bearing
91     bool GetDisplayEstimated();
92     void SetDisplayEstimated(bool val);
93
94     wxString GetWorkingDirectory();
95     void SetWorkingDirectory(const wxString &dir);
96
97 private:
98     wxConfig *cfg;
99 };
100
101 #endif // __SETTINGS_H__