63 lines
1.8 KiB
C++
63 lines
1.8 KiB
C++
#ifndef TJD_UI_APP_DRAIN_VIEW_H
|
|
#define TJD_UI_APP_DRAIN_VIEW_H
|
|
|
|
#include "View.h"
|
|
#include "TjdUiAppDrainPresenter.h"
|
|
#include "components/ui_label.h"
|
|
#include "components/ui_label_button_ext.h"
|
|
#include "components/ui_list.h"
|
|
#include "components/ui_scroll_view.h"
|
|
#include "components/ui_image_view.h"
|
|
#include "common/image.h"
|
|
#include "components/ui_view.h"
|
|
#include "gfx_utils/graphic_types.h"
|
|
#include "TjdUiMemManage.h"
|
|
|
|
#include "components/ui_button.h"
|
|
#include "components/ui_checkbox.h"
|
|
#include "components/ui_edit_text.h"
|
|
#include "components/ui_image_animator.h"
|
|
#include "components/ui_view_group.h"
|
|
#include "components/ui_scroll_view.h"
|
|
#include "ui_label_ext.h"
|
|
namespace TJD {
|
|
|
|
enum DrainViewIndex
|
|
{
|
|
// Drain_VIEW,
|
|
Refuse_Hand_VIEW,
|
|
Drain_VIEW_COUNT
|
|
};
|
|
|
|
class TjdUiAppDraintPresenter;
|
|
class TjdUiAppDrainView : public OHOS::View<TjdUiAppDrainPresenter>, public OHOS::UIViewGroup
|
|
{
|
|
public:
|
|
TjdUiAppDrainView();
|
|
~TjdUiAppDrainView();
|
|
static TjdUiAppDrainView *GetInstance(void);
|
|
void OnStart() override;
|
|
void OnStop() override;
|
|
void ShowView(DrainViewIndex hideView, DrainViewIndex showView);
|
|
void Changestatus1();
|
|
void Changestatus2();
|
|
|
|
OHOS::GraphicTimer* timerdrain1_{nullptr};
|
|
OHOS::GraphicTimer* timerdrain2_{nullptr};
|
|
|
|
private:
|
|
DrainViewIndex currentView_{DrainViewIndex::Refuse_Hand_VIEW};
|
|
OHOS::UIScrollView *containerAll_{nullptr};
|
|
OHOS::UIViewGroup *drainView[Drain_VIEW_COUNT]{nullptr};
|
|
OHOS::UIViewGroup *InitRefuseHandView();
|
|
OHOS::UIImageView *writeElliptical{nullptr};
|
|
OHOS::UIImageAnimatorView *imageAnimatordrain_{nullptr};
|
|
OHOS::UIImageAnimatorView *imageAnimatorwatch_{nullptr};
|
|
OHOS::UILabelExt *lblRefuseHand_{nullptr};
|
|
OHOS::UILabelExt *lblDrain_{nullptr};
|
|
void InitDrainImage();
|
|
|
|
};
|
|
|
|
}
|
|
#endif |