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

📄 sendfiledlg.cpp

📁 张勇的linQ学习P2P及IM软件的极佳素材代码
💻 CPP
字号:
/****************************************************************************** Form implementation generated from reading ui file '.\sendfiledlg.ui'**** Created: Mon Dec 8 13:42:29 2003**      by:  The User Interface Compiler (uic)**** WARNING! All changes made in this file will be lost!****************************************************************************/#include "sendfiledlg.h"#include <qvariant.h>   // first for gcc 2.7.2#include <qgroupbox.h>#include <qlabel.h>#include <qprogressbar.h>#include <qpushbutton.h>#include <qlayout.h>#include <qtooltip.h>#include <qwhatsthis.h>/*  *  Constructs a SendFileDlgBase which is 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. */SendFileDlgBase::SendFileDlgBase( QWidget* parent,  const char* name, bool modal, WFlags fl )    : QDialog( parent, name, modal, fl ){    if ( !name )	setName( "SendFileDlgBase" );    resize( 436, 152 );     setCaption( trUtf8( "File Transfer" ) );    setIconText( trUtf8( "" ) );    SendFileDlgBaseLayout = new QVBoxLayout( this, 6, 3, "SendFileDlgBaseLayout");     GroupBox1 = new QGroupBox( this, "GroupBox1" );    GroupBox1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, GroupBox1->sizePolicy().hasHeightForWidth() ) );    GroupBox1->setTitle( trUtf8( "To" ) );    GroupBox1->setColumnLayout(0, Qt::Vertical );    GroupBox1->layout()->setSpacing( 3 );    GroupBox1->layout()->setMargin( 6 );    GroupBox1Layout = new QHBoxLayout( GroupBox1->layout() );    GroupBox1Layout->setAlignment( Qt::AlignTop );    Account = new QLabel( GroupBox1, "Account" );    Account->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)5, 0, 0, Account->sizePolicy().hasHeightForWidth() ) );    Account->setText( trUtf8( "Account:" ) );    GroupBox1Layout->addWidget( Account );    accountLabel = new QLabel( GroupBox1, "accountLabel" );    accountLabel->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, accountLabel->sizePolicy().hasHeightForWidth() ) );    accountLabel->setFrameShape( QLabel::Panel );    accountLabel->setFrameShadow( QLabel::Sunken );    accountLabel->setText( trUtf8( "" ) );    GroupBox1Layout->addWidget( accountLabel );    TextLabel3 = new QLabel( GroupBox1, "TextLabel3" );    TextLabel3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)5, 0, 0, TextLabel3->sizePolicy().hasHeightForWidth() ) );    TextLabel3->setText( trUtf8( "Nick:" ) );    GroupBox1Layout->addWidget( TextLabel3 );    nickLabel = new QLabel( GroupBox1, "nickLabel" );    nickLabel->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, nickLabel->sizePolicy().hasHeightForWidth() ) );    nickLabel->setFrameShape( QLabel::Panel );    nickLabel->setFrameShadow( QLabel::Sunken );    nickLabel->setText( trUtf8( "" ) );    GroupBox1Layout->addWidget( nickLabel );    SendFileDlgBaseLayout->addWidget( GroupBox1 );    statusLabel = new QLabel( this, "statusLabel" );    statusLabel->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, statusLabel->sizePolicy().hasHeightForWidth() ) );    statusLabel->setText( trUtf8( "" ) );    SendFileDlgBaseLayout->addWidget( statusLabel );    progressBar = new QProgressBar( this, "progressBar" );    progressBar->setPercentageVisible( TRUE );    SendFileDlgBaseLayout->addWidget( progressBar );    Layout1 = new QHBoxLayout( 0, 0, 6, "Layout1");     TextLabel10 = new QLabel( this, "TextLabel10" );    TextLabel10->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, TextLabel10->sizePolicy().hasHeightForWidth() ) );    TextLabel10->setText( trUtf8( "Size:" ) );    Layout1->addWidget( TextLabel10 );    sizeLabel = new QLabel( this, "sizeLabel" );    sizeLabel->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, sizeLabel->sizePolicy().hasHeightForWidth() ) );    sizeLabel->setFrameShape( QLabel::Panel );    sizeLabel->setFrameShadow( QLabel::Sunken );    sizeLabel->setText( trUtf8( "" ) );    Layout1->addWidget( sizeLabel );    TextLabel12 = new QLabel( this, "TextLabel12" );    TextLabel12->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, TextLabel12->sizePolicy().hasHeightForWidth() ) );    TextLabel12->setText( trUtf8( "Speed:" ) );    Layout1->addWidget( TextLabel12 );    speedLabel = new QLabel( this, "speedLabel" );    speedLabel->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, speedLabel->sizePolicy().hasHeightForWidth() ) );    speedLabel->setFrameShape( QLabel::Panel );    speedLabel->setFrameShadow( QLabel::Sunken );    speedLabel->setText( trUtf8( "Unknown" ) );    Layout1->addWidget( speedLabel );    cancelButton = new QPushButton( this, "cancelButton" );    cancelButton->setText( trUtf8( "&Cancel" ) );    Layout1->addWidget( cancelButton );    SendFileDlgBaseLayout->addLayout( Layout1 );    // signals and slots connections    connect( cancelButton, SIGNAL( clicked() ), this, SLOT( slotCancel() ) );}/*   *  Destroys the object and frees any allocated resources */SendFileDlgBase::~SendFileDlgBase(){    // no need to delete child widgets, Qt does it all for us}void SendFileDlgBase::slotCancel(){    qWarning( "SendFileDlgBase::slotCancel(): Not implemented yet!" );}void SendFileDlgBase::slotSend(){    qWarning( "SendFileDlgBase::slotSend(): Not implemented yet!" );}

⌨️ 快捷键说明

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