diff options
Diffstat (limited to 'ezdop/src/host/hunter/src/settings.h')
-rw-r--r-- | ezdop/src/host/hunter/src/settings.h | 101 |
1 files changed, 101 insertions, 0 deletions
diff --git a/ezdop/src/host/hunter/src/settings.h b/ezdop/src/host/hunter/src/settings.h new file mode 100644 index 000000000..66e03775b --- /dev/null +++ b/ezdop/src/host/hunter/src/settings.h @@ -0,0 +1,101 @@ +/* + Copyright 2006 Johnathan Corgan. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License version 2 + as published by the Free Software Foundation. + + This software is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with GNU Radio; see the file COPYING. If not, write to + the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. +*/ + +#ifndef __SETTINGS_H__ +#define __SETTINGS_H__ + +// wxWidgets includes +#include <wx/config.h> +#include <wx/gdicmn.h> + +class HunterSettings +{ +public: + HunterSettings(); + ~HunterSettings(); + + // Main window size + wxSize GetWindowSize(); + void SetWindowSize(wxSize size); + + // Main window position + int GetWindowXPos(); + void SetWindowXPos(int x); + int GetWindowYPos(); + void SetWindowYPos(int y); + + // Autostart doppler on application bringup + bool GetDopplerAutostart(); + void SetDopplerAutostart(bool val); + + // Doppler filter value + int GetDopplerFilter(); + void SetDopplerFilter(int level); + + // Doppler filter value + int GetDopplerRotation(); + void SetDopplerRotation(int rate); + + // Doppler calibration values + float GetDopplerCalibration(int rate); + void SetDopplerCalibration(int rate, float offset); + + // Autostart GPS on application bringup + bool GetGPSAutostart(); + void SetGPSAutostart(bool val); + + // GPS interface device + wxString GetGPSDeviceName(); + void SetGPSDeviceName(wxString &name); + + // Calibration adjust affects all rates + bool GetCalibrationAffectAllRates(); + void SetCalibrationAffectAllRates(bool val); + + // Known transmitter location + double GetKnownTransmitterLongitude(); + void SetKnownTransmitterLongitude(double lon); + double GetKnownTransmitterLatitude(); + void SetKnownTransmitterLatitude(double lat); + bool GetUseKnownTransmitter(); + void SetUseKnownTransmitter(bool use); + + // Display Orientation + int GetDisplayOrientation(); + void SetDisplayOrientation(int orientation); + + // Display Doppler Bearing + bool GetDisplayDoppler(); + void SetDisplayDoppler(bool val); + + // Display Known Bearing + bool GetDisplayKnown(); + void SetDisplayKnown(bool val); + + // Display Estimated Bearing + bool GetDisplayEstimated(); + void SetDisplayEstimated(bool val); + + wxString GetWorkingDirectory(); + void SetWorkingDirectory(const wxString &dir); + +private: + wxConfig *cfg; +}; + +#endif // __SETTINGS_H__ |