You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
k9copy/libk9copy/k9mp4dlg.cpp

81 lines
1.3 KiB

//
// C++ Implementation:
//
// Description:
//
//
// Author: Jean-Michel PETIT <k9copy@free.fr>, (C) 2006
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "k9mp4dlg.h"
#include <qlabel.h>
#include <kprogress.h>
#include <qpainter.h>
#include <kstandarddirs.h>
#include <qlayout.h>
#include "k9drawimage.h"
k9MP4Dlg::k9MP4Dlg(QWidget* parent, const char* name)
: MP4Dlg(parent,name, true)
{
m_wimage=new k9DrawImage(image,0);
QGridLayout *l=new QGridLayout(image,1,1);
l->addWidget(m_wimage,0,0);
m_timer.start();
}
k9MP4Dlg::~k9MP4Dlg()
{
}
/*$SPECIALIZATION$*/
void k9MP4Dlg::Cancel() {
//QDialog::accept();
emit sigCancel();
}
void k9MP4Dlg::setTitleLabel(QString _titleLabel) {
lblTitle->setText(_titleLabel);
}
void k9MP4Dlg::setfps(QString _fps) {
lblfps->setText(_fps);
}
void k9MP4Dlg::setremain(QString _remain) {
if (m_timer.elapsed() >=1000) {
lblRemain->setText(_remain);
m_timer.restart();
}
}
void k9MP4Dlg::setProgress(int _progress) {
pbProgress->setProgress(_progress);
}
void k9MP4Dlg::setbitrate(QString _bitrate) {
lblbitrate->setText(_bitrate);
}
void k9MP4Dlg::setsize( QString _size) {
lblsize->setText(_size);
}
void k9MP4Dlg::setImage(QString _fileName) {
m_wimage->setImage(_fileName);
}
#include "k9mp4dlg.moc"