53 lines
1.6 KiB
C++
53 lines
1.6 KiB
C++
/*----------------------------------------------------------------------------
|
|
* Copyright (c) TJD Technologies Co., Ltd. 2024. All rights reserved.
|
|
*
|
|
* Description: TjdUiAppMainPageTool.h
|
|
*
|
|
* Author: luziquan@ss-tjd.com
|
|
*
|
|
* Create: 2024-12-27
|
|
*--------------------------------------------------------------------------*/
|
|
|
|
#ifndef TJD_UI_APP_MAIN_PAGE_TOOL_H
|
|
#define TJD_UI_APP_MAIN_PAGE_TOOL_H
|
|
|
|
#include "components/ui_card_page.h"
|
|
#include "components/ui_image_view.h"
|
|
#include "components/ui_label.h"
|
|
#include "components/ui_view_group.h"
|
|
#include "components/ui_circle_progress.h"
|
|
|
|
namespace TJD {
|
|
class TjdUiAppMainPageTool : public OHOS::UICardPage
|
|
{
|
|
public:
|
|
TjdUiAppMainPageTool();
|
|
virtual ~TjdUiAppMainPageTool();
|
|
static TjdUiAppMainPageTool *GetInstance(void);
|
|
void PreLoad(void) override;
|
|
void UnLoad(void) override;
|
|
|
|
private:
|
|
class CalendarView;
|
|
class ToolOnClickListener;
|
|
void InitView(void);
|
|
void UpdateValue(void);
|
|
bool viewiInitStatus{false};
|
|
OHOS::UIViewGroup *container_{nullptr};
|
|
|
|
OHOS::UILabel *date_{nullptr};
|
|
OHOS::UIImageView *calculator_{nullptr};
|
|
OHOS::UIImageView *stopWatch_{nullptr};
|
|
OHOS::UIImageView *timer_{nullptr};
|
|
OHOS::UIView *alarmClockBg_{nullptr};
|
|
OHOS::UIImageView *alarmClock_{nullptr};
|
|
OHOS::UILabel *alarmClockLabel_{nullptr};
|
|
OHOS::UICircleProgress *circleProgress_{nullptr};
|
|
OHOS::UIImageView *circleProgressBg_{nullptr};
|
|
TjdUiAppMainPageTool::CalendarView *calendarView_{nullptr};
|
|
TjdUiAppMainPageTool::ToolOnClickListener *toolOnClickListener_{nullptr};
|
|
};
|
|
|
|
} // namespace TJD
|
|
#endif
|