QGridLayout* CDlgAttributesQuery
::createOperationBtns() {
m_pBtnGroup->addButton(pBtn,btn_Operation_Equal_To);
pG->addWidget(pBtn,0,0,1,2);
m_pBtnGroup->addButton(pBtn,btn_Operation_Not_Equal);
pG->addWidget(pBtn,0,2,1,2);
m_pBtnGroup->addButton(pBtn,btn_Operation_Key_Like);
pG->addWidget(pBtn,0,4,1,2);
m_pBtnGroup->addButton(pBtn,btn_Operation_Greater_Than);
pG->addWidget(pBtn,1,0,1,2);
m_pBtnGroup->addButton(pBtn,btn_Operation_Greater_Equal);
pG->addWidget(pBtn,1,2,1,2);
m_pBtnGroup->addButton(pBtn,btn_Operation_Key_And);
pG->addWidget(pBtn,1,4,1,2);
m_pBtnGroup->addButton(pBtn,btn_Operation_Smaller_Than);
pG->addWidget(pBtn,2,0,1,2);
m_pBtnGroup->addButton(pBtn,btn_Operation_Smaller_Equal);
pG->addWidget(pBtn,2,2,1,2);
m_pBtnGroup->addButton(pBtn,btn_Operation_Key_Or);
pG->addWidget(pBtn,2,4,1,2);
m_pBtnGroup->addButton(pBtn,btn_Operation_Char_Percent);
pG->addWidget(pBtn,3,0,1,1);
m_pBtnGroup->addButton(pBtn,btn_Operation_Char_Underline);
pG->addWidget(pBtn,3,1,1,1);
m_pBtnGroup->addButton(pBtn,btn_Operation_Char_Brackets);
pG->addWidget(pBtn,3,2,1,2);
m_pBtnGroup->addButton(pBtn,btn_Operation_Key_Not);
pG->addWidget(pBtn,3,4,1,2);
m_pBtnGroup->addButton(pBtn,btn_Operation_Key_Is);
pG->addWidget(pBtn,4,0,1,2);
m_pBtnGroup->addButton(pBtn,btn_Obtain_Fields_Values);
pG->addWidget(pBtn,4,2,1,4);
return pG;
}
QGridLayout* CDlgAttributesQuery::createOperationBtns()
{
QPushButton* pBtn;
QGridLayout* pG = new QGridLayout;
pBtn = new QPushButton("=");
m_pBtnGroup->addButton(pBtn,btn_Operation_Equal_To);
pG->addWidget(pBtn,0,0,1,2);
pBtn = new QPushButton("<>");
m_pBtnGroup->addButton(pBtn,btn_Operation_Not_Equal);
pG->addWidget(pBtn,0,2,1,2);
pBtn = new QPushButton("Like");
m_pBtnGroup->addButton(pBtn,btn_Operation_Key_Like);
pG->addWidget(pBtn,0,4,1,2);
pBtn = new QPushButton(">");
m_pBtnGroup->addButton(pBtn,btn_Operation_Greater_Than);
pG->addWidget(pBtn,1,0,1,2);
pBtn = new QPushButton(">=");
m_pBtnGroup->addButton(pBtn,btn_Operation_Greater_Equal);
pG->addWidget(pBtn,1,2,1,2);
pBtn = new QPushButton("And");
m_pBtnGroup->addButton(pBtn,btn_Operation_Key_And);
pG->addWidget(pBtn,1,4,1,2);
pBtn = new QPushButton("<");
m_pBtnGroup->addButton(pBtn,btn_Operation_Smaller_Than);
pG->addWidget(pBtn,2,0,1,2);
pBtn = new QPushButton("<=");
m_pBtnGroup->addButton(pBtn,btn_Operation_Smaller_Equal);
pG->addWidget(pBtn,2,2,1,2);
pBtn = new QPushButton("Or");
m_pBtnGroup->addButton(pBtn,btn_Operation_Key_Or);
pG->addWidget(pBtn,2,4,1,2);
pBtn = new QPushButton("%");
m_pBtnGroup->addButton(pBtn,btn_Operation_Char_Percent);
pG->addWidget(pBtn,3,0,1,1);
pBtn = new QPushButton("_");
m_pBtnGroup->addButton(pBtn,btn_Operation_Char_Underline);
pG->addWidget(pBtn,3,1,1,1);
pBtn = new QPushButton("()");
m_pBtnGroup->addButton(pBtn,btn_Operation_Char_Brackets);
pG->addWidget(pBtn,3,2,1,2);
pBtn = new QPushButton("Not");
m_pBtnGroup->addButton(pBtn,btn_Operation_Key_Not);
pG->addWidget(pBtn,3,4,1,2);
pBtn = new QPushButton("Is");
m_pBtnGroup->addButton(pBtn,btn_Operation_Key_Is);
pG->addWidget(pBtn,4,0,1,2);
pBtn = new QPushButton("获取属性值");
m_pBtnGroup->addButton(pBtn,btn_Obtain_Fields_Values);
pG->addWidget(pBtn,4,2,1,4);
return pG;
}
To copy to clipboard, switch view to plain text mode
Bookmarks