Add AMS Error popup
This commit is contained in:
		
							
								
								
									
										20
									
								
								TouchGFX/gui/include/gui/containers/ErrorPopup.hpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								TouchGFX/gui/include/gui/containers/ErrorPopup.hpp
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,20 @@
 | 
			
		||||
#ifndef ERRORPOPUP_HPP
 | 
			
		||||
#define ERRORPOPUP_HPP
 | 
			
		||||
 | 
			
		||||
#include "touchgfx/Unicode.hpp"
 | 
			
		||||
#include <gui_generated/containers/ErrorPopupBase.hpp>
 | 
			
		||||
 | 
			
		||||
class ErrorPopup : public ErrorPopupBase {
 | 
			
		||||
public:
 | 
			
		||||
  ErrorPopup();
 | 
			
		||||
  virtual ~ErrorPopup() {}
 | 
			
		||||
 | 
			
		||||
  virtual void initialize();
 | 
			
		||||
 | 
			
		||||
  void showAMSError();
 | 
			
		||||
 | 
			
		||||
protected:
 | 
			
		||||
  touchgfx::Unicode::UnicodeChar detailsBuffer[128];
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif // ERRORPOPUP_HPP
 | 
			
		||||
@ -37,6 +37,9 @@ public:
 | 
			
		||||
private:
 | 
			
		||||
  DriverViewPresenter();
 | 
			
		||||
 | 
			
		||||
  void updateProgress();
 | 
			
		||||
  void updateErrorPopup();
 | 
			
		||||
 | 
			
		||||
  DriverViewView &view;
 | 
			
		||||
 | 
			
		||||
  DataFieldType fields[3];
 | 
			
		||||
 | 
			
		||||
@ -28,6 +28,9 @@ public:
 | 
			
		||||
  void setTSSoC(uint8_t soc);
 | 
			
		||||
  void setProgress(bool active, DriverViewProgressType type, float progress);
 | 
			
		||||
 | 
			
		||||
  void showAMSError();
 | 
			
		||||
  void clearErrorPopup();
 | 
			
		||||
 | 
			
		||||
  void selectPrevField() override;
 | 
			
		||||
  void selectNextField() override;
 | 
			
		||||
  void selectPrevFieldType() override;
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user