⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 evaloginveriwindow.cpp

📁 linux下的eva源代码
💻 CPP
字号:
/*************************************************************************** *   Copyright (C) 2007 by yunfan                                          * *   yunfan_zg@163.com                                                     * *                                                                         * *   This program is free software; you can redistribute it and/or modify  * *   it under the terms of the GNU General Public License as published by  * *   the Free Software Foundation; either version 2 of the License, or     * *   (at your option) any later version.                                   * *                                                                         * *   This program is distributed in the hope that it will be useful,       * *   but WITHOUT ANY WARRANTY; without even the implied warranty of        * *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         * *   GNU General Public License for more details.                          * *                                                                         * *   You should have received a copy of the GNU General Public License     * *   along with this program; if not, write to the                         * *   Free Software Foundation, Inc.,                                       * *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             * ***************************************************************************/ #include "evaloginveriwindow.h"#include "../evamain.h"#include "evauser.h"#include <qlabel.h>#include <qpixmap.h>#include <qpushbutton.h>#include <qtoolbutton.h>#include <qlineedit.h>EvaLoginVeriWindow::EvaLoginVeriWindow(QWidget *p)	: EvaLoginVeriUIBase(p, "Verify Window", WType_Dialog)				//Qt::WStyle_Customize | Qt::WStyle_Title | Qt::WStyle_SysMenu				 //| Qt::WStyle_NormalBorder | Qt::WDestructiveClose){	slotImageReady();	QObject::connect(tbnChangeGraphic, SIGNAL(clicked()), SLOT(slotBtnChangeImageClicked()));	QObject::connect(btnOK, SIGNAL(clicked()), SLOT(slotBtnOKClicked()));	QObject::connect(btnCancel, SIGNAL(clicked()), SLOT(close()));}void EvaLoginVeriWindow::slotImageReady( ){	GraphicVerifyCode code = EvaMain::user->getLoginVerifyInfo();	if(!code.m_Data || !code.m_DataLen) return;	QPixmap pix;	pix.loadFromData(code.m_Data, code.m_DataLen);	lblGraphic->setPixmap( pix);	btnOK->setEnabled( true);}void EvaLoginVeriWindow::slotBtnChangeImageClicked(){	GraphicVerifyCode code = EvaMain::user->getNextLoginVerifyInfo();	if( code.m_SessionTokenLen == 0 || code.m_DataLen == 0){		emit changeImage();	} else		slotImageReady();}void EvaLoginVeriWindow::slotBtnOKClicked(){	emit sendVerifyCode(leCode->text());	btnOK->setEnabled( false);}void EvaLoginVeriWindow::slotVerifyPassed( ){	close();}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -