public GpsTrackerNMEA(GpsTracker gpsTracker)
		{
			m_GpsTracker=gpsTracker;
			m_Aprs = new GpsTrackerAPRS(gpsTracker);
			m_CSVParser = new CSVReader();
		}
Esempio n. 2
0
		//
		//Constructor for the GpsTracker class
		//
		//public GpsTracker(WorldWindow.WorldWindow worldWindow)
		public GpsTracker(GpsTrackerPlugin gpsPlugin)
		{
			m_gpsTrackerPlugin = gpsPlugin;

			// Required for Windows Form Designer support
			InitializeComponent();
			
			m_iSourceNameCount=0;
			SetupTree();

			Bitmap image = new Bitmap(GpsTrackerPlugin.m_sPluginDirectory + "\\satellite.png");
			pictureBoxLogo.Image = image;
			pictureBoxHelpLogo.Image= image;

            m_gpsSourceList.Clear();
			m_NMEA = new GpsTrackerNMEA(this);
			m_UDPTCP = new GpsTrackerUDPTCP(this);
			m_File = new GpsTrackerFile(this);
			m_APRS = new GpsTrackerAPRS(this);

			m_fVerticalExaggeration=World.Settings.VerticalExaggeration;

            GetGpsBabelFormats();

			m_timerLocked=null;
			m_hPOIThread=null;
		
			m_iLocked=0;
			m_iPrevLocked=0;

			progressBarAutoDetect.Value=0;
			progressBarAutoDetect.Width=0; //using visible to hide the progress bar does not seem to work very well

			//StartStop.Enabled=false;
            StartStop.Enabled = true;
			LoadSettings(null,true); //load user settings

			m_swRecorder=null;
			m_srReader=null;
			m_fPlayback=false;

			textBoxVersionInfo.Text="Your Version: " + m_gpsTrackerPlugin.m_sVersion;

			m_MessageMonitor = null;

			SetDefaultSettings(true);
		}