|
@@ -4,6 +4,16 @@
|
|
|
#include "mainActivity.h"
|
|
|
|
|
|
/*TAG:GlobalVariable全局变量*/
|
|
|
+static ZKButton* mButton14Ptr;
|
|
|
+static ZKButton* mButton13Ptr;
|
|
|
+static ZKButton* mButton12Ptr;
|
|
|
+static ZKButton* mButton11Ptr;
|
|
|
+static ZKButton* mButton10Ptr;
|
|
|
+static ZKButton* mButton9Ptr;
|
|
|
+static ZKButton* mButton4Ptr;
|
|
|
+static ZKButton* mButton3Ptr;
|
|
|
+static ZKButton* mButton2Ptr;
|
|
|
+static ZKButton* mButton1Ptr;
|
|
|
static ZKListView* mBedListView4Ptr;
|
|
|
static ZKTextView* mNurseHeadTextViewPtr;
|
|
|
static ZKTextView* mNurseTitleTextViewPtr;
|
|
@@ -64,6 +74,16 @@ typedef struct {
|
|
|
|
|
|
/*TAG:ButtonCallbackTab按键映射表*/
|
|
|
static S_ButtonCallback sButtonCallbackTab[] = {
|
|
|
+ ID_MAIN_Button14, onButtonClick_Button14,
|
|
|
+ ID_MAIN_Button13, onButtonClick_Button13,
|
|
|
+ ID_MAIN_Button12, onButtonClick_Button12,
|
|
|
+ ID_MAIN_Button11, onButtonClick_Button11,
|
|
|
+ ID_MAIN_Button10, onButtonClick_Button10,
|
|
|
+ ID_MAIN_Button9, onButtonClick_Button9,
|
|
|
+ ID_MAIN_Button4, onButtonClick_Button4,
|
|
|
+ ID_MAIN_Button3, onButtonClick_Button3,
|
|
|
+ ID_MAIN_Button2, onButtonClick_Button2,
|
|
|
+ ID_MAIN_Button1, onButtonClick_Button1,
|
|
|
};
|
|
|
/***************/
|
|
|
|
|
@@ -139,6 +159,16 @@ mainActivity::~mainActivity() {
|
|
|
EASYUICONTEXT->unregisterGlobalTouchListener(this);
|
|
|
onUI_quit();
|
|
|
unregisterProtocolDataUpdateListener(onProtocolDataUpdate);
|
|
|
+ mButton14Ptr = NULL;
|
|
|
+ mButton13Ptr = NULL;
|
|
|
+ mButton12Ptr = NULL;
|
|
|
+ mButton11Ptr = NULL;
|
|
|
+ mButton10Ptr = NULL;
|
|
|
+ mButton9Ptr = NULL;
|
|
|
+ mButton4Ptr = NULL;
|
|
|
+ mButton3Ptr = NULL;
|
|
|
+ mButton2Ptr = NULL;
|
|
|
+ mButton1Ptr = NULL;
|
|
|
mBedListView4Ptr = NULL;
|
|
|
mNurseHeadTextViewPtr = NULL;
|
|
|
mNurseTitleTextViewPtr = NULL;
|
|
@@ -172,6 +202,16 @@ const char* mainActivity::getAppName() const{
|
|
|
//TAG:onCreate
|
|
|
void mainActivity::onCreate() {
|
|
|
Activity::onCreate();
|
|
|
+ mButton14Ptr = (ZKButton*)findControlByID(ID_MAIN_Button14);
|
|
|
+ mButton13Ptr = (ZKButton*)findControlByID(ID_MAIN_Button13);
|
|
|
+ mButton12Ptr = (ZKButton*)findControlByID(ID_MAIN_Button12);
|
|
|
+ mButton11Ptr = (ZKButton*)findControlByID(ID_MAIN_Button11);
|
|
|
+ mButton10Ptr = (ZKButton*)findControlByID(ID_MAIN_Button10);
|
|
|
+ mButton9Ptr = (ZKButton*)findControlByID(ID_MAIN_Button9);
|
|
|
+ mButton4Ptr = (ZKButton*)findControlByID(ID_MAIN_Button4);
|
|
|
+ mButton3Ptr = (ZKButton*)findControlByID(ID_MAIN_Button3);
|
|
|
+ mButton2Ptr = (ZKButton*)findControlByID(ID_MAIN_Button2);
|
|
|
+ mButton1Ptr = (ZKButton*)findControlByID(ID_MAIN_Button1);
|
|
|
mBedListView4Ptr = (ZKListView*)findControlByID(ID_MAIN_BedListView4);if(mBedListView4Ptr!= NULL){mBedListView4Ptr->setListAdapter(this);mBedListView4Ptr->setItemClickListener(this);}
|
|
|
mNurseHeadTextViewPtr = (ZKTextView*)findControlByID(ID_MAIN_NurseHeadTextView);
|
|
|
mNurseTitleTextViewPtr = (ZKTextView*)findControlByID(ID_MAIN_NurseTitleTextView);
|