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

📄 mediarecorderbase.cpp

📁 基于linux的录音程序
💻 CPP
字号:
/****************************************************************************** Form implementation generated from reading ui file 'mediarecorderbase.ui'**** Created: Sun Oct 9 17:41:58 2005**      by:  The User Interface Compiler (uic)**** WARNING! All changes made in this file will be lost!****************************************************************************/#include "mediarecorderbase.h"#include <qtoolbutton.h>#include <qpushbutton.h>#include <qlabel.h>#include <qlayout.h>#include <qstring.h>#include <qpixmap.h>MediaRecorderBase::MediaRecorderBase( QWidget* parent,  const char* name, WFlags fl )    : QWidget( parent, name, fl ){	resize( 640,480 );    	setCaption( QString::fromLocal8Bit("留言") );    	Layout = new QVBoxLayout( this );     	Layout->setSpacing( 10 );    	Layout->setMargin( 20 );		Layout1 = new QGridLayout( Layout,1,4,0 );	capLabel = new QLabel( this );	capLabel->setAlignment( AlignHCenter | AlignVCenter );	recordButton = new QPushButton( this,"recordButton" );	recordButton->setText( QString::fromLocal8Bit("我要留言") );	    	quitButton = new QPushButton( this,"quitButton" );	quitButton->setText( QString::fromLocal8Bit("退出") );	Layout1->addMultiCellWidget( capLabel,1,1,0,1 );	Layout1->addMultiCellWidget( recordButton,1,1,2,2 );	Layout1->addMultiCellWidget( quitButton,1,1,3,3 );	Layout2 = new QGridLayout( Layout,1,6,50 );	tipLabel = new QLabel( QString::fromLocal8Bit( "时间" ),this );	tipLabel->setAlignment( AlignHCenter | AlignVCenter );	playLabel = new QLabel( QString::fromLocal8Bit( "播放" ),this );	playLabel->setAlignment( AlignHCenter | AlignVCenter );	stopLabel = new QLabel( QString::fromLocal8Bit( "停止" ),this );	stopLabel->setAlignment( AlignHCenter | AlignVCenter );	delLabel = new QLabel( QString::fromLocal8Bit( "删除" ),this );	delLabel->setAlignment( AlignHCenter | AlignVCenter );	Layout2->addMultiCellWidget( tipLabel,1,1,0,2 );	Layout2->addMultiCellWidget( playLabel,1,1,3,3 );	Layout2->addMultiCellWidget( stopLabel,1,1,4,4 );	Layout2->addMultiCellWidget( delLabel,1,1,5,5 );	toolLayout = new QGridLayout( Layout,1,6,50 );	timeLabel = new QLabel( this );	timeLabel->setAlignment( AlignHCenter | AlignVCenter );	playButton = new QToolButton( this,"playButton" );		playButton->setUsesBigPixmap( true );	playButton->setPixmap( QPixmap("/usr/qpe/pics/start.png"));	playButton->setMinimumSize( 50,50 );	playButton->setMaximumSize( 50,50 );	stopButton = new QToolButton( this,"stopButton" );		stopButton->setUsesBigPixmap( true );	stopButton->setPixmap( QPixmap("/usr/qpe/pics/stop.png"));	stopButton->setMinimumSize( 50,50 );        stopButton->setMaximumSize( 50,50 );	delButton = new QToolButton( this,"delButton" );		delButton->setUsesBigPixmap( true );	delButton->setPixmap( QPixmap("/usr/qpe/pics/del.png"));	delButton->setMinimumSize( 50,50 );        delButton->setMaximumSize( 50,50 );	toolLayout->addMultiCellWidget( timeLabel,1,1,0,2 );	toolLayout->addMultiCellWidget( playButton,1,1,3,3 );	toolLayout->addMultiCellWidget( stopButton,1,1,4,4 );	toolLayout->addMultiCellWidget( delButton,1,1,5,5 );	disLayout = new QGridLayout( Layout,1,5 );	upButton = new QToolButton( this,"upButton" );        upButton->setUsesBigPixmap( true );        upButton->setPixmap( QPixmap("/usr/qpe/pics/up.png"));        upButton->setMinimumSize( 25,25 );        upButton->setMaximumSize( 25,25 );        downButton = new QToolButton( this,"downButton" );        downButton->setUsesBigPixmap( true );        downButton->setPixmap( QPixmap("/usr/qpe/pics/down.png"));        downButton->setMinimumSize( 25,25 );        downButton->setMaximumSize( 25,25 );	disLabel = new QLabel( this );	disLabel->setAlignment( AlignHCenter | AlignVCenter );	disLayout->addMultiCellWidget( downButton,1,1,1,1 );	disLayout->addMultiCellWidget( disLabel,1,1,2,2 );	disLayout->addMultiCellWidget( upButton,1,1,3,3 );//	Layout->setResizeMode(QLayout::Fixed);}/*   *  Destroys the object and frees any allocated resources */MediaRecorderBase::~MediaRecorderBase(){    // no need to delete child widgets, Qt does it all for us}

⌨️ 快捷键说明

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