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

📄 evasyssettinguibase.cpp

📁 linux下的eva源代码
💻 CPP
📖 第 1 页 / 共 3 页
字号:
/*************************************************************************** *   Copyright (C) 2005 by tlmcasper                                          * *   tlmcasper@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 "evasyssettinguibase.h"#include <qvariant.h>#include <qpushbutton.h>#include <qheader.h>#include <qlistview.h>#include <qwidgetstack.h>#include <qwidget.h>#include <qlabel.h>#include <qtextedit.h>#include <qlineedit.h>#include <qcombobox.h>#include <qgroupbox.h>#include <qtoolbutton.h>#include <kpushbutton.h>#include <qbuttongroup.h>#include <qradiobutton.h>#include <qcheckbox.h>#include <qspinbox.h>#include <qslider.h>#include <kkeybutton.h>#include <qlayout.h>#include <qtooltip.h>#include <qwhatsthis.h>#include <qimage.h>#include <qpixmap.h>#include <qiconview.h>#include <klocale.h>#include "../evamain.h"#include "evaresource.h"/* *  Constructs a EvaSysSettingUIBase as a child of 'parent', with the *  name 'name' and widget flags set to 'f'. * *  The dialog will by default be modeless, unless you set 'modal' to *  TRUE to construct a modal dialog. */  EvaSettingListItem::EvaSettingListItem( QListView* parent, QListViewItem* after, int index )	:QListViewItem( parent, after){	itemIndex = index;}EvaSettingListItem::EvaSettingListItem( QListViewItem* parent, QListViewItem* after, int index )	:QListViewItem( parent, after){	itemIndex = index;}EvaSettingListItem::~ EvaSettingListItem(){}/*--------------------------------------------------------------*/EvaSysSettingUIBase::EvaSysSettingUIBase( QWidget* parent, const char* name, bool modal, WFlags fl )    : QDialog( parent, name, modal, fl ){	if ( !name )		setName( "EvaSysSettingUIBase" );	EvaSysSettingUIBaseLayout = new QGridLayout( this, 1, 1, 11, 6, "EvaSysSettingUIBaseLayout"); 		layout57 = new QVBoxLayout( 0, 0, 6, "layout57"); 		layout55 = new QHBoxLayout( 0, 0, 6, "layout55"); 		lvSettingItem = new QListView( this, "lvSettingItem" );	lvSettingItem->addColumn( tr( "ListView" ) );	lvSettingItem->setFrameShape( QListView::Box );	lvSettingItem->setFrameShadow( QListView::Plain );	lvSettingItem->setLineWidth( 1 );	lvSettingItem->setItemMargin( 1 );	lvSettingItem->setResizeMode( QListView::LastColumn );	lvSettingItem->setMaximumWidth(94);		layout55->addWidget( lvSettingItem );		wsSetting = new QWidgetStack( this, "wsSetting" );	wsSetting->setFrameShape( QWidgetStack::Box );	wsSetting->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);		wspUserInfo = new QWidget( wsSetting, "wspUserInfo" );	wspUserInfoLayout = new QGridLayout( wspUserInfo, 1, 1, 11, 6, "wspUserInfoLayout"); 	spacer37 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );	wspUserInfoLayout->addItem( spacer37, 1, 0 );		layout44 = new QGridLayout( 0, 1, 1, 0, 6, "layout44"); 		layout43 = new QGridLayout( 0, 1, 1, 0, 6, "layout43"); 		layout41 = new QVBoxLayout( 0, 0, 6, "layout41"); 		lblSignature = new QLabel( wspUserInfo, "lblSignature" );	layout41->addWidget( lblSignature );	spacer15 = new QSpacerItem( 20, 16, QSizePolicy::Minimum, QSizePolicy::Expanding );	layout41->addItem( spacer15 );		layout43->addLayout( layout41, 0, 0 );		layout70 = new QHBoxLayout( 0, 0, 6, "layout70"); 		lblLevel = new QLabel( wspUserInfo, "lblLevel" );	layout70->addWidget( lblLevel );		layout61 = new QHBoxLayout( 0, 0, 6, "layout61"); 		lblLevelDisplay = new QLabel( wspUserInfo, "lblLevelDisplay" );	layout61->addWidget( lblLevelDisplay );	spacer16 = new QSpacerItem( 181, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );	layout61->addItem( spacer16 );	layout70->addLayout( layout61 );		layout43->addMultiCellLayout( layout70, 1, 1, 0, 1 );		teSignature = new QTextEdit( wspUserInfo, "teSignature" );	teSignature->setEnabled( TRUE );	teSignature->setMinimumSize( QSize( 0, 50 ) );	teSignature->setMaximumSize( QSize( 32767, 50 ) );	teSignature->setPaletteForegroundColor( QColor( 0, 0, 0 ) );	teSignature->setPaletteBackgroundColor( QColor( 255, 255, 255 ) );	teSignature->setFrameShape( QTextEdit::Box );	teSignature->setFrameShadow( QTextEdit::Plain );	teSignature->setLineWidth( 1 );	teSignature->setResizePolicy( QTextEdit::Manual );	teSignature->setVScrollBarMode( QTextEdit::AlwaysOff );	teSignature->setHScrollBarMode( QTextEdit::AlwaysOff );	teSignature->setDragAutoScroll( FALSE );	teSignature->setTextFormat( QTextEdit::PlainText );	teSignature->setWordWrap( QTextEdit::WidgetWidth );	teSignature->setWrapColumnOrWidth( 333 );	teSignature->setAutoFormatting((unsigned int)( QTextEdit::AutoAll ) );		layout43->addWidget( teSignature, 0, 1 );		layout44->addLayout( layout43, 1, 0 );		layout73 = new QHBoxLayout( 0, 0, 6, "layout73"); 		layout72 = new QVBoxLayout( 0, 0, 6, "layout72"); 		lblAboutMe = new QLabel( wspUserInfo, "lblAboutMe" );	layout72->addWidget( lblAboutMe );	spacer17 = new QSpacerItem( 20, 41, QSizePolicy::Minimum, QSizePolicy::Expanding );	layout72->addItem( spacer17 );	layout73->addLayout( layout72 );		teAboutMe = new QTextEdit( wspUserInfo, "teAboutMe" );	teAboutMe->setEnabled( TRUE );	teAboutMe->setMinimumSize( QSize( 0, 80 ) );	teAboutMe->setMaximumSize( QSize( 32767, 80 ) );	teAboutMe->setPaletteForegroundColor( QColor( 0, 0, 0 ) );	teAboutMe->setPaletteBackgroundColor( QColor( 255, 255, 255 ) );	teAboutMe->setFrameShape( QTextEdit::Box );	teAboutMe->setFrameShadow( QTextEdit::Plain );	teAboutMe->setLineWidth( 1 );	teAboutMe->setVScrollBarMode( QTextEdit::Auto );	teAboutMe->setHScrollBarMode( QTextEdit::AlwaysOff );	teAboutMe->setWordWrap( QTextEdit::WidgetWidth );	layout73->addWidget( teAboutMe );		layout44->addLayout( layout73, 3, 0 );		layout56 = new QHBoxLayout( 0, 0, 6, "layout56"); 		layout55_2 = new QHBoxLayout( 0, 0, 6, "layout55_2"); 		layout54 = new QVBoxLayout( 0, 0, 6, "layout54"); 		lblRealName = new QLabel( wspUserInfo, "lblRealName" );	layout54->addWidget( lblRealName );		lblSchool = new QLabel( wspUserInfo, "lblSchool" );	layout54->addWidget( lblSchool );		lblOccupation = new QLabel( wspUserInfo, "lblOccupation" );	layout54->addWidget( lblOccupation );		lblHomePage = new QLabel( wspUserInfo, "lblHomePage" );	layout54->addWidget( lblHomePage );	layout55_2->addLayout( layout54 );		layout53 = new QVBoxLayout( 0, 0, 6, "layout53"); 		layout52 = new QHBoxLayout( 0, 0, 6, "layout52"); 		leRealName = new QLineEdit( wspUserInfo, "leRealName" );	leRealName->setEnabled( TRUE );	leRealName->setPaletteForegroundColor( QColor( 0, 0, 0 ) );	leRealName->setFrameShape( QLineEdit::Box );	leRealName->setFrameShadow( QLineEdit::Plain );	leRealName->setLineWidth( 1 );	leRealName->setMaxLength( 10 );	layout52->addWidget( leRealName );		lblSex = new QLabel( wspUserInfo, "lblSex" );	layout52->addWidget( lblSex );		cbSex = new QComboBox( FALSE, wspUserInfo, "cbSex" );	layout52->addWidget( cbSex );	layout53->addLayout( layout52 );		leSchool = new QLineEdit( wspUserInfo, "leSchool" );	leSchool->setEnabled( TRUE );	leSchool->setPaletteForegroundColor( QColor( 0, 0, 0 ) );	leSchool->setFrameShape( QLineEdit::Box );	leSchool->setFrameShadow( QLineEdit::Plain );	leSchool->setLineWidth( 1 );	leSchool->setMaxLength( 20 );	layout53->addWidget( leSchool );		cbOccupation = new QComboBox( FALSE, wspUserInfo, "cbOccupation" );	cbOccupation->setEditable( TRUE );	layout53->addWidget( cbOccupation );		leHomePage = new QLineEdit( wspUserInfo, "leHomePage" );	leHomePage->setEnabled( TRUE );	leHomePage->setPaletteForegroundColor( QColor( 0, 0, 0 ) );	leHomePage->setFrameShape( QLineEdit::Box );	leHomePage->setFrameShadow( QLineEdit::Plain );	leHomePage->setLineWidth( 1 );	leHomePage->setMaxLength( 50 );	layout53->addWidget( leHomePage );	layout55_2->addLayout( layout53 );	layout56->addLayout( layout55_2 );		layout68 = new QHBoxLayout( 0, 0, 6, "layout68"); 		layout66 = new QVBoxLayout( 0, 0, 6, "layout66"); 		lblAge = new QLabel( wspUserInfo, "lblAge" );	layout66->addWidget( lblAge );		lblZodiac = new QLabel( wspUserInfo, "lblZodiac" );	layout66->addWidget( lblZodiac );		lblHoroscape = new QLabel( wspUserInfo, "lblHoroscape" );	layout66->addWidget( lblHoroscape );		lblBlood = new QLabel( wspUserInfo, "lblBlood" );	layout66->addWidget( lblBlood );	layout68->addLayout( layout66 );		layout67 = new QVBoxLayout( 0, 0, 6, "layout67"); 		leAge = new QLineEdit( wspUserInfo, "leAge" );	leAge->setEnabled( TRUE );	leAge->setPaletteForegroundColor( QColor( 0, 0, 0 ) );	leAge->setFrameShape( QLineEdit::Box );	leAge->setFrameShadow( QLineEdit::Plain );	leAge->setLineWidth( 1 );	leAge->setMaxLength( 3 );	layout67->addWidget( leAge );		cbZodiac = new QComboBox( FALSE, wspUserInfo, "cbZodiac" );	layout67->addWidget( cbZodiac );		cbHoroscape = new QComboBox( FALSE, wspUserInfo, "cbHoroscape" );	layout67->addWidget( cbHoroscape );		cbBlood = new QComboBox( FALSE, wspUserInfo, "cbBlood" );	layout67->addWidget( cbBlood );	layout68->addLayout( layout67 );	layout56->addLayout( layout68 );		layout44->addLayout( layout56, 2, 0 );		layout46 = new QHBoxLayout( 0, 0, 6, "layout46"); 		layout45 = new QVBoxLayout( 0, 0, 6, "layout45"); 		lblNumber = new QLabel( wspUserInfo, "lblNumber" );	layout45->addWidget( lblNumber );		lblNickName = new QLabel( wspUserInfo, "lblNickName" );	layout45->addWidget( lblNickName );	layout46->addLayout( layout45 );		layout36 = new QGridLayout( 0, 1, 1, 0, 6, "layout36"); 		leNickName = new QLineEdit( wspUserInfo, "leNickName" );	leNickName->setEnabled( TRUE );	leNickName->setPaletteForegroundColor( QColor( 0, 0, 0 ) );	leNickName->setFrameShape( QLineEdit::Box );	leNickName->setFrameShadow( QLineEdit::Plain );	leNickName->setLineWidth( 1 );	leNickName->setMaxLength( 12 );		layout36->addWidget( leNickName, 1, 0 );	spacer13 = new QSpacerItem( 101, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );	layout36->addMultiCell( spacer13, 0, 1, 1, 1 );		leNumber = new QLineEdit( wspUserInfo, "leNumber" );	leNumber->setEnabled( FALSE );	leNumber->setPaletteForegroundColor( QColor( 0, 0, 0 ) );	leNumber->setFrameShape( QLineEdit::Box );	leNumber->setFrameShadow( QLineEdit::Plain );	leNumber->setLineWidth( 1 );		layout36->addWidget( leNumber, 0, 0 );		lblFace = new QLabel( wspUserInfo, "lblFace" );	lblFace->setMinimumSize( QSize( 46, 46 ) );	lblFace->setMaximumSize( QSize( 46, 46 ) );	lblFace->setFrameShape( QLabel::Box );	lblFace->setAlignment( int( QLabel::AlignCenter ) );		layout36->addMultiCellWidget( lblFace, 0, 1, 2, 2 );	spacer10 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );	layout36->addItem( spacer10, 0, 3 );		pbChangeFace = new QPushButton( wspUserInfo, "pbChangeFace" );		layout36->addWidget( pbChangeFace, 1, 3 );	layout46->addLayout( layout36 );		layout44->addLayout( layout46, 0, 0 );		wspUserInfoLayout->addLayout( layout44, 0, 0 );	wsSetting->addWidget( wspUserInfo, 0 );		wspQQShow = new QWidget( wsSetting, "wspQQShow" );	wspQQShowLayout = new QGridLayout( wspQQShow, 1, 1, 11, 6, "wspQQShowLayout"); 	spacer18 = new QSpacerItem( 20, 31, QSizePolicy::Minimum, QSizePolicy::Expanding );	wspQQShowLayout->addItem( spacer18, 1, 0 );	spacer17_2 = new QSpacerItem( 21, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );	wspQQShowLayout->addItem( spacer17_2, 0, 1 );		gbQQShow = new QGroupBox( wspQQShow, "gbQQShow" );		QWidget* privateLayoutWidget = new QWidget( gbQQShow, "layout13" );	privateLayoutWidget->setGeometry( QRect( 30, 30, 325, 261 ) );	layout13 = new QGridLayout( privateLayoutWidget, 1, 1, 11, 6, "layout13"); 		lblQQShow = new QLabel( privateLayoutWidget, "lblQQShow" );	lblQQShow->setMinimumSize( QSize( 147, 233 ) );	lblQQShow->setMaximumSize( QSize( 147, 233 ) );	lblQQShow->setFrameShape( QLabel::Box );	lblQQShow->setAlignment( int( QLabel::AlignCenter ) );		layout13->addWidget( lblQQShow, 0, 0 );	spacer6 = new QSpacerItem( 23, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );	layout13->addItem( spacer6, 0, 1 );		layout12 = new QGridLayout( 0, 1, 1, 0, 6, "layout12"); 	spacer5 = new QSpacerItem( 20, 80, QSizePolicy::Minimum, QSizePolicy::Expanding );	layout12->addItem( spacer5, 4, 0 );	spacer7 = new QSpacerItem( 20, 42, QSizePolicy::Minimum, QSizePolicy::Expanding );	layout12->addItem( spacer7, 6, 0 );	spacer8 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );	layout12->addItem( spacer8, 0, 0 );		tbtnHome = new QToolButton( privateLayoutWidget, "tbtnHome" );	tbtnHome->setPaletteForegroundColor( QColor( 0, 0, 255 ) );	tbtnHome->setCursor( QCursor( 13 ) );	tbtnHome->setAutoRaise( TRUE );	tbtnHome->setUsesTextLabel( TRUE );	tbtnHome->setTextPosition( QToolButton::BesideIcon );		layout12->addWidget( tbtnHome, 3, 0 );		tbtnAlbum = new QToolButton( privateLayoutWidget, "tbtnAlbum" );	tbtnAlbum->setPaletteForegroundColor( QColor( 0, 0, 255 ) );	tbtnAlbum->setCursor( QCursor( 13 ) );	tbtnAlbum->setAutoRaise( TRUE );	tbtnAlbum->setUsesTextLabel( TRUE );	tbtnAlbum->setTextPosition( QToolButton::BesideIcon );		layout12->addWidget( tbtnAlbum, 2, 0 );		kpbUpdateShow = new KPushButton( privateLayoutWidget, "kpbUpdateShow" );		layout12->addWidget( kpbUpdateShow, 5, 0 );		tbtnShop = new QToolButton( privateLayoutWidget, "tbtnShop" );	tbtnShop->setPaletteForegroundColor( QColor( 0, 0, 255 ) );	tbtnShop->setCursor( QCursor( 13 ) );	tbtnShop->setAutoRaise( TRUE );	tbtnShop->setUsesTextLabel( TRUE );

⌨️ 快捷键说明

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