static BPCalPosReqView *g_pBPCalPosReqView{nullptr};
BPCalPosReqView::BPCalPosReqView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BPCalPosReqView::BPCalPosReqView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BPCalPosReqView::BPCalPosReqView");
g_pBPCalPosReqView = this;
}
BPCalPosReqView::~BPCalPosReqView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BPCalPosReqView::~BPCalPosReqView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BPCalPosReqView::~BPCalPosReqView");
DeInit();
g_pBPCalPosReqView = nullptr;
}
label[i] = new UILabelExt();
if (label[i] == nullptr)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "label[i] null!");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "label[i] null!");
return false;
}
if (i == 0)
int y = label[i - 1]->GetY() + label[i - 1]->GetHeight();
label[i]->SetPosition((HORIZONTAL_RESOLUTION - BPCALPOSREQVIEW_LABEL_W) / 2, y, BPCALPOSREQVIEW_LABEL_W, BPCALPOSREQVIEW_LABEL_LINE_HEIGHT);
}
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "label[%d]->GetY() = %d", i, label[i]->GetY());
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "label[%d]->GetY() = %d", i, label[i]->GetY());
label[i]->SetStyle(STYLE_TEXT_FONT, BPCALPOSREQVIEW_LABEL_TEXT_SIZE);
label[i]->SetStyle(STYLE_LINE_HEIGHT, BPCALPOSREQVIEW_LABEL_LINE_HEIGHT);
label[i]->SetText(str[i]);
label2 = new UILabelExt();
if (label2 == nullptr)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "label2 null!");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "label2 null!");
return false;
}
}
image = new UIImageView();
if (image == nullptr)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "image null!");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "image null!");
return false;
}
}
label3 = new UILabelExt();
if (label3 == nullptr)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "label3 null!");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "label3 null!");
return false;
}
}
UIViewGroup *BPCalPosReqView::InitBPCalPosReqView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BPCalPosReqView::InitBPCalPosReqView start");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BPCalPosReqView::InitBPCalPosReqView start");
if (group == nullptr)
{
group = new UIViewGroup();
temp->SetPosition(43, startCalibrationButton->GetY() + startCalibrationButton->GetHeight(), 380, BPCALPOSREQVIEW_LABEL_GAP);
temp->SetVisible(false);
scrollview->Add(temp);
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BPCalPosReqView::InitBPCalPosReqView end");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BPCalPosReqView::InitBPCalPosReqView end");
return group;
}
BPCalibrationErrorView::BPCalibrationErrorView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BPCalibrationErrorView::BPCalibrationErrorView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BPCalibrationErrorView::BPCalibrationErrorView");
g_pBPCalibrationErrorView = this;
}
BPCalibrationErrorView::~BPCalibrationErrorView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BPCalibrationErrorView::~BPCalibrationErrorView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BPCalibrationErrorView::~BPCalibrationErrorView");
DeInit();
g_pBPCalibrationErrorView = nullptr;
}
*/
UIViewGroup *BPCalibrationErrorView::BPCalibrationErrorInit()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "bool BPCalibrationErrorView::InitView()");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "bool BPCalibrationErrorView::InitView()");
group = new UIViewGroup();
if (group == nullptr)
{
static const char *MINDPATH = "/user/res/BPCalibration/Y.bin";
BPCalibrationMindView::BPCalibrationMindView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BPCalibrationMindView::BPCalibrationMindView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BPCalibrationMindView::BPCalibrationMindView");
g_pBPCalibrationMindView = this;
}
BPCalibrationMindView::~BPCalibrationMindView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BPCalibrationMindView::~BPCalibrationMindView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BPCalibrationMindView::~BPCalibrationMindView");
DeInit();
g_pBPCalibrationMindView = nullptr;
}
*/
UIViewGroup *BPCalibrationMindView::BPCalibrationMindInit()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "bool BPCalibrationMindView::InitView()");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "bool BPCalibrationMindView::InitView()");
group = new UIViewGroup();
if (group == nullptr)
{
BPCalibrationPassView::BPCalibrationPassView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BPCalibrationPassView::BPCalibrationPassView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BPCalibrationPassView::BPCalibrationPassView");
g_pBPCalibrationPassView = this;
}
BPCalibrationPassView::~BPCalibrationPassView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BPCalibrationPassView::~BPCalibrationPassView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BPCalibrationPassView::~BPCalibrationPassView");
DeInit();
g_pBPCalibrationPassView = nullptr;
}
*/
UIViewGroup *BPCalibrationPassView::BPCalibrationPassInit()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "bool BPCalibrationPassView::InitView()");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "bool BPCalibrationPassView::InitView()");
group = new UIViewGroup();
if (group == nullptr)
{
static BPLastCalibrationTimeView *g_pBPLastCalibrationTimeView{nullptr};
BPLastCalibrationTimeView::BPLastCalibrationTimeView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BPLastCalibrationTimeView::BPLastCalibrationTimeView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BPLastCalibrationTimeView::BPLastCalibrationTimeView");
g_pBPLastCalibrationTimeView = this;
}
BPLastCalibrationTimeView::~BPLastCalibrationTimeView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BPLastCalibrationTimeView::~BPLastCalibrationTimeView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BPLastCalibrationTimeView::~BPLastCalibrationTimeView");
DeInit();
g_pBPLastCalibrationTimeView = nullptr;
}
if (timeLabel != nullptr)
{
std::string str = time;
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "UpdateCalibrationTime: %s", str.c_str());
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "UpdateCalibrationTime: %s", str.c_str());
timeLabel->SetText(str.c_str());
timeLabel->Invalidate();
}
group = new UIViewGroup();
if (group == nullptr)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "group null!");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "group null!");
return nullptr;
}
}
void BPMainPresenter::OnResume(void) {}
- void BPMainPresenter::OnStop(void) {}
+ void BPMainPresenter::OnStop(void)
+ {
+ //重置状态
+ BPModel::GetInstance()->BP_Control(BPState::BP_NORMAL);
+ }
bool BPMainPresenter::OnDrag(UIView &view, const DragEvent &event)
{
else if (strcmp(view.GetViewId(), STARTCALIBRATIONBUTTON) == 0)
{
BPModel::GetInstance()->BP_Control(BPState::BP_CALIBRATING_FIRSTTIME);
- WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "STARTCALIBRATIONBUTTON");
BPMainView::GetInstance()->ChangeView(BPCALPOSREQVIEW, BPUNDERCALIBRATIONVIEW);
- BPModel::GetInstance()->BP_StartTimer(); // 开始计时器,计时结束后自动切换到主界面
}
else if (strcmp(view.GetViewId(), STARTCALIBRATIONBUTTON) == 0) // 首界面到校准界面 第一步
{
BPModel::GetInstance()->BP_Control(BPState::BP_CALIBRATING_FIRSTTIME);
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "STARTCALIBRATIONBUTTON");
BPMainView::GetInstance()->ChangeView(BPCALPOSREQVIEW, BPUNDERCALIBRATIONVIEW);
- BPModel::GetInstance()->BP_StartTimer(); // 开始计时器,计时结束后自动切换到主界面
}
else if (strcmp(view.GetViewId(),CALIBRATIONBUTTON) == 0) // 上次校准时间界面到二次校准界面
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "CALIBRATIONBUTTON");
BPModel::GetInstance()->BP_Control(BPState::BP_CALIBRATING_SECONDTIME);
BPMainView::GetInstance()->ChangeView(BPLASTCALIBRATIONTIME, BPSECUNDERCALIBRATIONVIEW);
- BPModel::GetInstance()->BP_StartTimer(); // 开始计时器,计时结束后自动切换到主界面
}
else if (strcmp(view.GetViewId(), "SBPLeft") == 0)
{
}
else if (strcmp(view.GetViewId(), CALIBRATIONLATTERBUTTON) == 0)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "CALIBRATIONLATTERBUTTON");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "CALIBRATIONLATTERBUTTON");
//退出
}
return true;
BPMainView::BPMainView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BPMainView::BPMainView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BPMainView::BPMainView");
g_pBPMainView = this;
}
BPMainView::~BPMainView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BPMainView::~BPMainView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BPMainView::~BPMainView");
DeInit();
g_pBPMainView = nullptr;
}
void BPMainView::OnStart()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BPMainView::OnStart");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BPMainView::OnStart");
View<BPMainPresenter>::OnStart();
SetContainerView(new UIViewGroup());
if (GetContainer() == nullptr)
}
void BPMainView::OnSetUpView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BPMainView::OnSetUpView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BPMainView::OnSetUpView");
View<BPMainPresenter>::OnSetUpView();
Draw();
}
void BPMainView::OnTearDownView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BPMainView::OnTearDownView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BPMainView::OnTearDownView");
View<BPMainPresenter>::OnTearDownView();
return;
}
void BPMainView::OnStop()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BPMainView::OnStop");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BPMainView::OnStop");
View<BPMainPresenter>::OnStop();
if (container_ != nullptr)
{
Time = BP_CHECK_TIME_MAX;
break;
}
+ case BPState::BP_CALIBRATING_FIRSTTIME:
+ case BPState::BP_CALIBRATING_SECONDTIME:
case BPState::BP_DETECTING:
{
/*
break;
}
- case BPState::BP_CALIBRATING_FIRSTTIME:
- {
- BP_StartTimer();
- ScreenAlwaysOnCtr(OPEN_SCREEN_ALWAYS_ON); // 后期 周期被动状态 需要做区别
-
- if (Time != BP_CHECK_TIME_MAX)
- Time = BP_CHECK_TIME_MAX; // 重置时间
- }
- break;
- case BPState::BP_CALIBRATING_SECONDTIME:
- {
- BP_StartTimer();
- ScreenAlwaysOnCtr(OPEN_SCREEN_ALWAYS_ON); // 后期 周期被动状态 需要做区别
-
- if (Time != BP_CHECK_TIME_MAX)
- Time = BP_CHECK_TIME_MAX; // 重置时间
- }
- break;
default:
/*未知状态,全部状态重置*/
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BP_Control: Invalid state");
}
else if (BPDetectionView::GetInstance())
{
- //测试成功 -> 进入结果界面
- BPDetectionView::GetInstance()->ChangeView(CALIBRATION_BPVIEW, RESULT_BPVIEW);
- //测试失败 -> 进入错误界面
- // BPDetectionView::GetInstance()->ChangeView(CALIBRATION_BPVIEW, ERROR_BPVIEW);
+ //测试成功 -> 进入结果界面
+ BPDetectionView::GetInstance()->ChangeView(CALIBRATION_BPVIEW, RESULT_BPVIEW);
+ //测试失败 -> 进入错误界面
+ // BPDetectionView::GetInstance()->ChangeView(CALIBRATION_BPVIEW, ERROR_BPVIEW);
}
return;
}
-
BPState current_state_time = BPModel::GetInstance()->GetCurrentState();
// 根据状态处理
switch (current_state_time)
static const char *BPLINEPATH = "/user/res/BPCalibration//Q.bin";
BPResultAnalysisView::BPResultAnalysisView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BPResultAnalysisView::BPResultAnalysisView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BPResultAnalysisView::BPResultAnalysisView");
g_pBPResultAnalysisView = this;
}
BPResultAnalysisView::~BPResultAnalysisView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BPResultAnalysisView::~BPResultAnalysisView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BPResultAnalysisView::~BPResultAnalysisView");
DeInit();
g_pBPResultAnalysisView = nullptr;
}
*/
UIViewGroup *BPResultAnalysisView::BPResultAnalysisInit()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "bool BPResultAnalysisView::InitView()");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "bool BPResultAnalysisView::InitView()");
group = new UIViewGroup();
if (group == nullptr)
{
static const char *BPLINEPATH = "/user/res/BPCalibration//Q.bin";
BPSecUnderCalibrationView::BPSecUnderCalibrationView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BPSecUnderCalibrationView::BPSecUnderCalibrationView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BPSecUnderCalibrationView::BPSecUnderCalibrationView");
g_pBPSecUnderCalibrationView = this;
}
BPSecUnderCalibrationView::~BPSecUnderCalibrationView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BPSecUnderCalibrationView::~BPSecUnderCalibrationView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BPSecUnderCalibrationView::~BPSecUnderCalibrationView");
DeInit();
g_pBPSecUnderCalibrationView = nullptr;
}
*/
UIViewGroup *BPSecUnderCalibrationView::BPSecUnderCalibrationInit()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "bool BPSecUnderCalibrationView::InitView()");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "bool BPSecUnderCalibrationView::InitView()");
group = new UIViewGroup();
if (group == nullptr)
{
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "InitLable error!");
return nullptr;
};
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "bool BPSecUnderCalibrationView::InitView()");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "bool BPSecUnderCalibrationView::InitView()");
return group;
}
static const char *BPLINEPATH = "/user/res/BPCalibration//Q.bin";
BPUnderCalibrationView::BPUnderCalibrationView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BPUnderCalibrationView::BPUnderCalibrationView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BPUnderCalibrationView::BPUnderCalibrationView");
g_pBPUnderCalibrationView = this;
}
BPUnderCalibrationView::~BPUnderCalibrationView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BPUnderCalibrationView::~BPUnderCalibrationView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BPUnderCalibrationView::~BPUnderCalibrationView");
DeInit();
g_pBPUnderCalibrationView = nullptr;
}
*/
UIViewGroup *BPUnderCalibrationView::BPUnderCalibrationInit()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "bool BPUnderCalibrationView::InitView()");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "bool BPUnderCalibrationView::InitView()");
group = new UIViewGroup();
if (group == nullptr)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AlarmPopUpView::group null!");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AlarmPopUpView::group null!");
return nullptr;
}
group->SetPosition(0, 0, HORIZONTAL_RESOLUTION, VERTICAL_RESOLUTION);
if (!Initbackground())
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Initbackground error!");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "Initbackground error!");
return nullptr;
};
if (!InitLable())
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "InitLable error!");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "InitLable error!");
return nullptr;
};
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "bool BPUnderCalibrationView::InitView()");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "bool BPUnderCalibrationView::InitView()");
return group;
}
BPValueView::BPValueView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BPValueView::BPValueView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BPValueView::BPValueView");
g_pBPValueView = this;
}
BPValueView::~BPValueView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BPValueView::~BPValueView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BPValueView::~BPValueView");
DeInit();
g_pBPValueView = nullptr;
}
*/
UIViewGroup *BPValueView::BPValueInit()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "bool BPValueView::InitView()");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "bool BPValueView::InitView()");
group = new UIViewGroup();
if (group == nullptr)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AlarmPopUpView::group null!");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AlarmPopUpView::group null!");
return nullptr;
}
group->SetPosition(0, 0, HORIZONTAL_RESOLUTION, VERTICAL_RESOLUTION);
if (!Initbackground())
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Initbackground error!");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "Initbackground error!");
return nullptr;
};
if (!InitLable())
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "InitLable error!");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "InitLable error!");
return nullptr;
};
if (!AddButton())
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AddButton error!");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AddButton error!");
return nullptr;
};
BPDetectEndView::BPDetectEndView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BPDetectEndView::BPDetectEndView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BPDetectEndView::BPDetectEndView");
g_pBPDetectEndView = this;
}
BPDetectEndView::~BPDetectEndView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BPDetectEndView::~BPDetectEndView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BPDetectEndView::~BPDetectEndView");
if(group)
{
group->RemoveAll();
group = new UIViewGroup();
group->SetPosition(0, 0, Screen::GetInstance().GetWidth(), Screen::GetInstance().GetHeight());
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BPDetectEndInit is begin");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BPDetectEndInit is begin");
/*初始化label*/
InitLabel(DBPTitleLabel, 20, 66, 200, 60, "calibration", "收缩压", DEFAULT_VECTOR_FONT_FILENAME, 30);
InitLabel(SBPTitleText, 240, 66, 200, 60, "calibration", "舒张压", DEFAULT_VECTOR_FONT_FILENAME, 30);
BPDetectErrorView::BPDetectErrorView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BPDetectErrorView::BPDetectErrorView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BPDetectErrorView::BPDetectErrorView");
g_pBPDetectErrorView = this;
}
BPDetectErrorView::~BPDetectErrorView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BPDetectErrorView::~BPDetectErrorView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BPDetectErrorView::~BPDetectErrorView");
if(group)
{
group->RemoveAll();
BPDetectFailView::BPDetectFailView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BPDetectFailView::BPDetectFailView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BPDetectFailView::BPDetectFailView");
g_pBPDetectFailView = this;
}
BPDetectFailView::~BPDetectFailView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BPDetectFailView::~BPDetectFailView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BPDetectFailView::~BPDetectFailView");
if(group)
{
group->RemoveAll();
BPDetectFirstView::BPDetectFirstView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BPDetectFirstView::BPDetectFirstView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BPDetectFirstView::BPDetectFirstView");
g_pBPDetectFirstView = this;
}
BPDetectFirstView::~BPDetectFirstView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BPDetectFirstView::~BPDetectFirstView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BPDetectFirstView::~BPDetectFirstView");
if(group)
{
group->RemoveAll();
group = new UIViewGroup();
group->SetPosition(0, 0, Screen::GetInstance().GetWidth(), Screen::GetInstance().GetHeight());
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BPDetectionViewInit is begin");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BPDetectionViewInit is begin");
/*初始化label*/
InitLabel(DBPTitleLabel, 20, 66, 200, 60, "calibration", "收缩压", DEFAULT_VECTOR_FONT_FILENAME, 30);
InitLabel(SBPTitleText, 240, 66, 200, 60, "calibration", "舒张压", DEFAULT_VECTOR_FONT_FILENAME, 30);
BPDetectSOSView::BPDetectSOSView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BPDetectSOSView::BPDetectSOSView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BPDetectSOSView::BPDetectSOSView");
g_pBPDetectSOSView = this;
}
BPDetectSOSView::~BPDetectSOSView()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BPDetectSOSView::~BPDetectSOSView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BPDetectSOSView::~BPDetectSOSView");
if(group)
{
group->RemoveAll();
*/
UIViewGroup *BPDetectSOSView::BPDetectSOSInit()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "bool BPDetectSOSView::InitView()");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "bool BPDetectSOSView::InitView()");
group = new UIViewGroup();
group->SetPosition(0, 0, Screen::GetInstance().GetWidth(), Screen::GetInstance().GetHeight());
//设置状态为检测状态
BPModel::GetInstance()->BP_Control(BPState::BP_DETECTING);
BPDetectionView::GetInstance()->ChangeView(MAIN_BPVIEW,CALIBRATION_BPVIEW);
- BPModel::GetInstance()->BP_StartTimer();//开始计时器,计时结束后自动切换到主界面
}
//界面结果->重新检测
else if (strcmp(view.GetViewId(), RE_CLICK_BLOOD_PRESSURE) == 0)
//设置状态为检测状态
BPModel::GetInstance()->BP_Control(BPState::BP_DETECTING);
BPDetectionView::GetInstance()->ChangeView(RESULT_BPVIEW,CALIBRATION_BPVIEW);
- BPModel::GetInstance()->BP_StartTimer();//开始计时器,计时结束后自动切换到主界面
}
//预警界面->SOS
else if (strcmp(view.GetViewId(), BP_SOS_CLICK) == 0)
//设置状态为检测状态
BPModel::GetInstance()->BP_Control(BPState::BP_DETECTING);
BPDetectionView::GetInstance()->ChangeView(FAIL_BPVIEW,CALIBRATION_BPVIEW);
- BPModel::GetInstance()->BP_StartTimer();//开始计时器,计时结束后自动切换到主界面
}
return true;
}
void BPDetectionView::OnStart()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BPDetectionView::OnStart");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BPDetectionView::OnStart");
View<BPDetectionPresenter>::OnStart();
SetContainerView(new UIViewGroup());