void guiDateTimeSettings::connectSignalsToSlots()
{
    for(int i = 0; i < DATETIME_SETTING_OBJ_NUM; i++)
    {
        this->connect(mDateTimeObj[i], SIGNAL(signalGeneralBtnClicked(uint16)), this, SLOT(slotGeneralBtnClicked(uint16)));
    }
}
/*************************************************
  Function:         connectSignalsToSlots
  Description:      连接信号与槽
  Input:        无
  Output:		无
  Return:		无
  Others:
*************************************************/
void ctrlKeyboard::connectSignalsToSlots()
{
    //connect signals and_slots
    for(int i = 0; i < KEYBOARD_NUMS_COUNT; i++)
    {
        this->connect(mKeyboardBtn[i], SIGNAL(signalGeneralBtnClicked(uint16)), this, SLOT(slotKeyboardClicked(uint16)));
    }
}
void guiUsrSettings::connectSignalsToSlots()
{
    for(int i = 0; i < USR_SETTING_OBJ_NUM; i++)
    {
        this->connect(mUsrObj[i], SIGNAL(signalGeneralBtnClicked(uint16)), this, SLOT(slotGeneralBtnClicked(uint16)));
    }

    this->connect(mBottomBar, SIGNAL(signalFuncBarClicked(uint16)), this, SLOT(slotBottomBarClicked(uint16)));
    this->connect(mUsrPwdInput, SIGNAL(signalKeyNumOutPut(QString)), this, SLOT(slotUsrPwdOutPut(QString)));
}
Exemple #4
0
void infoBox::createPage1()
{
    TEXT_INFO_s textinfo[PAGE_ONE_MAX] = {
        //line1
        {FONT_SIZE_24, COLOR_TEXT_GRAY, tr("PatientNo"), NULL},//住院号
        {FONT_SIZE_24, COLOR_TEXT_GRAY, NULL, RES_IMG_INFOBOX_LABEL_BG_140},
        {FONT_SIZE_24, COLOR_TEXT_GRAY, tr("BedNo "), NULL},//床号
        {FONT_SIZE_24, COLOR_TEXT_GRAY, NULL, RES_IMG_INFOBOX_LABEL_BG_140},
        //line2
        {FONT_SIZE_24, COLOR_TEXT_GRAY, tr("Name"), NULL},//姓名
        {FONT_SIZE_24, COLOR_TEXT_GRAY, NULL, RES_IMG_INFOBOX_LABEL_BG_140},
        {FONT_SIZE_24, COLOR_TEXT_GRAY, tr("Sex"), NULL},//性别
        {FONT_SIZE_24, COLOR_TEXT_GRAY, NULL, RES_IMG_INFOBOX_LABEL_BG_140},
        //line3
        {FONT_SIZE_24, COLOR_TEXT_GRAY, tr("Age"), NULL},//年龄
        {FONT_SIZE_24, COLOR_TEXT_GRAY, NULL, RES_IMG_INFOBOX_LABEL_BG_140},
        {FONT_SIZE_24, COLOR_TEXT_GRAY, tr("Allergy"), NULL},//过敏史
        {FONT_SIZE_24, COLOR_TEXT_GRAY, NULL, RES_IMG_INFOBOX_LABEL_BG_140},
        //line4
        {FONT_SIZE_24, COLOR_TEXT_GRAY, tr("AdmissionTime"), NULL},//入院时间
        {FONT_SIZE_24, COLOR_TEXT_GRAY, NULL, RES_IMG_INFOBOX_LABEL_BG_472},
        //line5
        {FONT_SIZE_24, COLOR_TEXT_GRAY, tr("Departments"), NULL},//临床科室
        {FONT_SIZE_24, COLOR_TEXT_GRAY, NULL, RES_IMG_INFOBOX_LABEL_BG_472}
    };

#if 1
    for (int i = 0; i < PAGE_ONE_MAX; i++) {
        mPageOneItemList[i] = new ctrlTextLabel(this);
        mPageOneItemList[i]->createTextLabel(textinfo[i]);
    }
    //line1
    mGridLayout->addWidget(mPageOneItemList[0], 0, 0);
    mGridLayout->addWidget(mPageOneItemList[1], 0, 1);
    mGridLayout->addWidget(mPageOneItemList[2], 0, 2);
    mGridLayout->addWidget(mPageOneItemList[3], 0, 3);
    //line2
    mGridLayout->addWidget(mPageOneItemList[4], 1, 0);
    mGridLayout->addWidget(mPageOneItemList[5], 1, 1);
    mGridLayout->addWidget(mPageOneItemList[6], 1, 2);
    mGridLayout->addWidget(mPageOneItemList[7], 1, 3);
    //line3
    mGridLayout->addWidget(mPageOneItemList[8], 2, 0);
    mGridLayout->addWidget(mPageOneItemList[9], 2, 1);
    mGridLayout->addWidget(mPageOneItemList[10], 2, 2);
    mGridLayout->addWidget(mPageOneItemList[11], 2, 3);
    //line4
    mGridLayout->addWidget(mPageOneItemList[12], 3, 0);
    mGridLayout->addWidget(mPageOneItemList[13], 3, 1, 1, 3);
    //line5
    mGridLayout->addWidget(mPageOneItemList[14], 4, 0);
    mGridLayout->addWidget(mPageOneItemList[15], 4, 1, 1, 3);
#else
    PIC_OF_BTN_s BtnPic[2] = {
        {RES_IMG_INFOBOX_LABEL_BG_140, RES_IMG_INFOBOX_LABEL_BG_140},
        {RES_IMG_INFOBOX_LABEL_BG_472, RES_IMG_INFOBOX_LABEL_BG_472},
    };
    BTNICON_PIC_INFO_s BtnInfo[8] = {
        {BTN_TYPE_DEFAULT, 0,FONT_SIZE_24, "rgb(95,95,95)",  NULL, BtnPic[0]},
        {BTN_TYPE_DEFAULT, 1,FONT_SIZE_24, "rgb(95,95,95)",  NULL, BtnPic[0]},
        {BTN_TYPE_DEFAULT, 2,FONT_SIZE_24, "rgb(95,95,95)",  NULL, BtnPic[0]},
        {BTN_TYPE_DEFAULT, 3,FONT_SIZE_24, "rgb(95,95,95)",  NULL, BtnPic[0]},
        {BTN_TYPE_DEFAULT, 4,FONT_SIZE_24, "rgb(95,95,95)",  NULL, BtnPic[0]},
        {BTN_TYPE_DEFAULT, 5,FONT_SIZE_24, "rgb(95,95,95)",  NULL, BtnPic[0]},
        {BTN_TYPE_DEFAULT, 6,FONT_SIZE_24, "rgb(95,95,95)",  NULL, BtnPic[1]},
        {BTN_TYPE_DEFAULT, 7,FONT_SIZE_24, "rgb(95,95,95)",  NULL, BtnPic[1]},
    };

    for (int i = 0; i < 8; i++) {
        mPageOneBtnList[i] = new ctrlGeneralBtn(this);
        mPageOneBtnList[i]->createPicBtn(BtnInfo[i]);
        connect(mPageOneBtnList[i], SIGNAL(signalGeneralBtnClicked(uint16)), this, SLOT(slotGeneralBtnClicked(uint16)));
    }

    for (int i = 0; i < PAGE_ONE_MAX; i++) {
        if (i%2 == 0){
            mPageOneItemList[i] = new ctrlTextLabel(this);
            mPageOneItemList[i]->createTextLabel(textinfo[i]);
        }
    }

    //line1
    mGridLayout->addWidget(mPageOneItemList[0], 0, 0);
    mGridLayout->addWidget(mPageOneBtnList[0], 0, 1);
    mGridLayout->addWidget(mPageOneItemList[2], 0, 2);
    mGridLayout->addWidget(mPageOneBtnList[1], 0, 3);
    //line2
    mGridLayout->addWidget(mPageOneItemList[4], 1, 0);
    mGridLayout->addWidget(mPageOneBtnList[2], 1, 1);
    mGridLayout->addWidget(mPageOneItemList[6], 1, 2);
    mGridLayout->addWidget(mPageOneBtnList[3], 1, 3);
    //line3
    mGridLayout->addWidget(mPageOneItemList[8], 2, 0);
    mGridLayout->addWidget(mPageOneBtnList[4], 2, 1);
    mGridLayout->addWidget(mPageOneItemList[10], 2, 2);
    mGridLayout->addWidget(mPageOneBtnList[5], 2, 3);
    //line4
    mGridLayout->addWidget(mPageOneItemList[12], 3, 0);
    mGridLayout->addWidget(mPageOneBtnList[6], 3, 1, 1, 3);
    //line5
    mGridLayout->addWidget(mPageOneItemList[14], 4, 0);
    mGridLayout->addWidget(mPageOneBtnList[7], 4, 1, 1, 3);
#endif
}
Exemple #5
0
/*****************************************************************************************************
 *                                 Signal and slot
******************************************************************************************************/
void infoBox::connectSignalsToSlots()
{
    connect(mCallBtn, SIGNAL(signalGeneralBtnClicked(uint16)), this, SLOT(slotGeneralBtnClicked(uint16)));
}