mcu_hi3321_watch/application/wearable/nativeapp/nativeui/alarm/include/AlarmSetWeekView.h
2025-05-26 20:15:20 +08:00

45 lines
1.3 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* Copyright (c) CompanyNameMagicTag 2021-2021. All rights reserved.
* Description: Alarm
* Author:
* Create: 2021-09-11
*/
#ifndef ALARM_SET_WEEK_VIEW
#define ALARM_SET_WEEK_VIEW
#include "components/ui_image_view.h"
#include "components/ui_label.h"
#include "components/ui_label_button.h"
#include "components/ui_scroll_view.h"
#include "font/ui_font.h"
#include "components/ui_scroll_view.h"
#include "layout/grid_layout.h"
#include "components/root_view.h"
#include "components/ui_time_picker.h"
#include "AlarmPresenter.h"
#include "AlarmClockModel.h"
namespace OHOS {
class AlarmSetWeekView {
public:
AlarmSetWeekView();
~AlarmSetWeekView();
UIScrollView *InitSetWeekView();
static AlarmSetWeekView *GetInstance(void);
void RefreshSetWeek1(void);
void RefreshSetWeek2(uint8_t week);
private:
UIScrollView *group{nullptr};
UILabelButton *weekImage{nullptr};
UILabel *labelRespeat{nullptr};
UILabelButton *buttonWeek[7]{nullptr}; // 星期一共有7天因此设置了七个星期的按钮
void CreateWeekButton1(void);
void CreateWeekButton2(void);
void SetLabelButton(void);
UILabelButton *CreateUILabelButton(const char *buttonText, int16_t x, int16_t y);
UIView *CreateUIView(int16_t x, int16_t y);
};
} // namespace OHOS
#endif