From c2d1fdb39e92fc6c1150a7b1d27fdbfb7d1d6c56 Mon Sep 17 00:00:00 2001 From: AdrianLxM Date: Sun, 13 Nov 2016 17:45:47 +0100 Subject: [PATCH] CPP edit base basal gui - without function yet --- app/src/main/ic_copyprev-web.png | Bin 0 -> 18756 bytes .../CircadianPercentageProfileFragment.java | 57 +++++++++++++++ ...dianpercentageprofile_editbasal_dialog.xml | 66 ++++++++++++++++++ .../circadianpercentageprofile_fragment.xml | 3 + ...circadianpercentageprofile_listelement.xml | 31 ++++++++ app/src/main/res/mipmap-hdpi/ic_copyprev.png | Bin 0 -> 1455 bytes app/src/main/res/mipmap-mdpi/ic_copyprev.png | Bin 0 -> 932 bytes app/src/main/res/mipmap-xhdpi/ic_copyprev.png | Bin 0 -> 2137 bytes .../main/res/mipmap-xxhdpi/ic_copyprev.png | Bin 0 -> 3520 bytes .../main/res/mipmap-xxxhdpi/ic_copyprev.png | Bin 0 -> 5328 bytes 10 files changed, 157 insertions(+) create mode 100644 app/src/main/ic_copyprev-web.png create mode 100644 app/src/main/res/layout/circadianpercentageprofile_editbasal_dialog.xml create mode 100644 app/src/main/res/layout/circadianpercentageprofile_listelement.xml create mode 100644 app/src/main/res/mipmap-hdpi/ic_copyprev.png create mode 100644 app/src/main/res/mipmap-mdpi/ic_copyprev.png create mode 100644 app/src/main/res/mipmap-xhdpi/ic_copyprev.png create mode 100644 app/src/main/res/mipmap-xxhdpi/ic_copyprev.png create mode 100644 app/src/main/res/mipmap-xxxhdpi/ic_copyprev.png diff --git a/app/src/main/ic_copyprev-web.png b/app/src/main/ic_copyprev-web.png new file mode 100644 index 0000000000000000000000000000000000000000..d32f31327c58091bd9aace5624979964c33acca7 GIT binary patch literal 18756 zcmeIa`9G9>^ap&6ea%|7WTHX~Eu^x{*eivos4zu~$d*0JOt!RG+9+9~g(4E!8B3ug zL?Qc@ov|;oJ?GMW-{0@^{R^HSp8NHhF?Ta_U7zKg_j#Z9IiI<0YHY~QBgumx2>+48 zdS(d10xww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d00001 diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/CircadianPercentageProfile/CircadianPercentageProfileFragment.java b/app/src/main/java/info/nightscout/androidaps/plugins/CircadianPercentageProfile/CircadianPercentageProfileFragment.java index 61830ff70b..963443e0b4 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/CircadianPercentageProfile/CircadianPercentageProfileFragment.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/CircadianPercentageProfile/CircadianPercentageProfileFragment.java @@ -1,9 +1,13 @@ package info.nightscout.androidaps.plugins.CircadianPercentageProfile; +import android.app.Dialog; import android.content.Context; +import android.content.DialogInterface; import android.os.Bundle; +import android.support.v4.app.DialogFragment; import android.support.v4.app.Fragment; +import android.support.v7.app.AlertDialog; import android.text.Editable; import android.text.Html; import android.text.TextWatcher; @@ -14,16 +18,19 @@ import android.view.inputmethod.InputMethodManager; import android.widget.Button; import android.widget.EditText; import android.widget.ImageView; +import android.widget.LinearLayout; import android.widget.RadioButton; import android.widget.TextView; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.w3c.dom.Text; import info.nightscout.androidaps.R; import info.nightscout.androidaps.interfaces.FragmentBase; import info.nightscout.androidaps.plugins.Careportal.Dialogs.NewNSTreatmentDialog; import info.nightscout.androidaps.plugins.Careportal.OptionsToShow; +import info.nightscout.utils.DecimalFormatter; import info.nightscout.utils.SafeParse; import info.nightscout.utils.ToastUtils; @@ -51,6 +58,10 @@ public class CircadianPercentageProfileFragment extends Fragment implements Frag Button profileswitchButton; ImageView percentageIcon; ImageView timeIcon; + ImageView basaleditIcon; + ImageView iceditIcon; + ImageView isfeditIcon; + @@ -74,6 +85,12 @@ public class CircadianPercentageProfileFragment extends Fragment implements Frag timeIcon = (ImageView) layout.findViewById(R.id.circadianpercentageprofile_timeicon); profileswitchButton = (Button) layout.findViewById(R.id.circadianpercentageprofile_profileswitch); + basaleditIcon = (ImageView) layout.findViewById(R.id.circadianpercentageprofile_basaledit); + iceditIcon = (ImageView) layout.findViewById(R.id.circadianpercentageprofile_icedit); + isfeditIcon = (ImageView) layout.findViewById(R.id.circadianpercentageprofile_isfedit); + + + mgdlView.setChecked(circadianPercentageProfilePlugin.mgdl); mmolView.setChecked(circadianPercentageProfilePlugin.mmol); diaView.setText(circadianPercentageProfilePlugin.dia.toString()); @@ -153,6 +170,14 @@ public class CircadianPercentageProfileFragment extends Fragment implements Frag } }); + basaleditIcon.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + BasalEditDialog basalEditDialog = new BasalEditDialog(); + basalEditDialog.show(getFragmentManager(), "Edit Basal"); + } + }); + TextWatcher textWatch = new TextWatcher() { @@ -209,4 +234,36 @@ public class CircadianPercentageProfileFragment extends Fragment implements Frag baseprofileISF.setText(Html.fromHtml("

ISF:

" + circadianPercentageProfilePlugin.baseIsfString())); } + private class BasalEditDialog extends DialogFragment{ + + public View onCreateView(LayoutInflater inflater, ViewGroup container, + Bundle savedInstanceState) { + getDialog().setTitle("Edit Base-Basal rates: "); + View view = inflater.inflate(R.layout.circadianpercentageprofile_editbasal_dialog, container, false); + LinearLayout list = (LinearLayout) view.findViewById(R.id.circadianpp_editbasal_listlayout); + for (int i = 0; i < 24; i++) { + View childview = inflater.inflate(R.layout.circadianpercentageprofile_listelement, container, false); + ((TextView)childview.findViewById(R.id.basal_time_elem)).setText((i<10?"0":"") + i + ":00: "); + + if(i==0){ + (childview.findViewById(R.id.basal_copyprev_elem)).setVisibility(View.INVISIBLE);; + } else { + //TODO: Add listener + } + + //TODO: safe EditTexts in array for prev buttonaction! + ((TextView)childview.findViewById(R.id.basal_edittext_elem)).setText(DecimalFormatter.to2Decimal(getPlugin().basebasal[i])); + + list.addView(childview); + } + getDialog().setCancelable(true); + return view; + } + + + + + +} + } diff --git a/app/src/main/res/layout/circadianpercentageprofile_editbasal_dialog.xml b/app/src/main/res/layout/circadianpercentageprofile_editbasal_dialog.xml new file mode 100644 index 0000000000..48e9f5a52f --- /dev/null +++ b/app/src/main/res/layout/circadianpercentageprofile_editbasal_dialog.xml @@ -0,0 +1,66 @@ + + + + + + + + + + + + + + + + + + +