package com.iforce2d.balloontrackerv2;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;

public class TabFragment1 extends Fragment {

    public Button updateLandingButton;

    public TextView display_rf24_time = null;
    //public TextView display_gsm_time = null;

    public TextView display_location = null;
    public TextView display_hmsl = null;
    public TextView display_veld = null;
    public TextView display_gspeed = null;
    public TextView display_heading = null;

    public TextView display_pps = null;
    public TextView display_age = null;

    public TextView display_sats = null;
    public TextView display_fix = null;
    //public TextView display_csq = null;
    //public TextView display_creg = null;

    public TextView display_cutdown_location = null;
    public TextView display_cutdown_tries = null;
    public TextView display_cutdown_timestamp = null;
    //public TextView display_gsm_veld = null;
    //public TextView display_gsm_gspeed = null;
    //public TextView display_gsm_heading = null;

    //public TextView display_gsm_sats = null;
    //public TextView display_gsm_fix = null;
    //public TextView display_gsm_csq = null;

    public TextView display_wind_values = null;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.tab_fragment1, container, false);

        updateLandingButton = (Button) view.findViewById(R.id.updateLandingButton);

        display_rf24_time = (TextView) view.findViewById(R.id.rf24_timestamp);
        //display_gsm_time = (TextView) view.findViewById(R.id.gsm_timestamp);

        display_age = (TextView) view.findViewById(R.id.age);
        display_pps = (TextView) view.findViewById(R.id.pps);

        display_location = (TextView) view.findViewById(R.id.location);
        display_hmsl = (TextView) view.findViewById(R.id.hmsl);
        display_veld = (TextView) view.findViewById(R.id.veld);
        display_gspeed = (TextView) view.findViewById(R.id.gspeed);
        display_heading = (TextView) view.findViewById(R.id.heading);

        display_sats = (TextView) view.findViewById(R.id.sats);
        display_fix = (TextView) view.findViewById(R.id.fix);
        //display_csq = (TextView) view.findViewById(R.id.csq);
        //display_creg = (TextView) view.findViewById(R.id.creg);

        display_cutdown_location = (TextView) view.findViewById(R.id.cutdown_location);
        display_cutdown_tries = (TextView) view.findViewById(R.id.cutdown_tries);
        display_cutdown_timestamp = (TextView) view.findViewById(R.id.cutdown_timestamp);
        //display_gsm_veld = (TextView) view.findViewById(R.id.gsm_veld);
        //display_gsm_gspeed = (TextView) view.findViewById(R.id.gsm_gspeed);
        //display_gsm_heading = (TextView) view.findViewById(R.id.gsm_heading);

        //display_gsm_sats = (TextView) view.findViewById(R.id.gsm_sats);
        //display_gsm_fix = (TextView) view.findViewById(R.id.gsm_fix);
        //display_gsm_csq = (TextView) view.findViewById(R.id.gsm_csq);

        display_wind_values = (TextView) view.findViewById(R.id.windValuesLabel);

        return view;
    }
}
