Cornelius Bezuidenhout / Mbed OS Heiko

Dependencies:   BSP_DISCO_F746NG F746_GUI LCD_DISCO_F746NG SDFileSystem TS_DISCO_F746NG ResistiveTouchController Map CYS8218Controller MedianFilter

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ChangeValWholeScreen.hpp Source File

ChangeValWholeScreen.hpp

00001 #ifndef CHANGE_VAL_WHOLE_SCREEN_HPP
00002 #define CHANGE_VAL_WHOLE_SCREEN_HPP
00003 
00004 #include "Screen.hpp"
00005 
00006 class ChangeValWholeScreen : public Screen
00007 {
00008 public:
00009   ChangeValWholeScreen(int *nextScreen, int prevScreen, float *valToChange, string title, bool negative = false, float min = FLT_MIN);
00010 
00011   void Draw();
00012   void Process();
00013 
00014 private:
00015   Label _lbTitle;
00016   Button _btBack;
00017   Button _btSave;
00018   Button _btNeg;
00019   Button _btPos;
00020   IntNumpad _npValue;
00021   NumericLabel<float> _nlbValue;
00022 
00023   float *_value;
00024   int _prevScreen;
00025   float _tempVal;
00026   bool _neg;
00027   bool _negVal;
00028   float _min;
00029 
00030   void Update();
00031 };
00032 #endif