summaryrefslogtreecommitdiffstats
path: root/libk9copy/k9mp4dlg.cpp
blob: d8b5bda39133065ff8282178423e631601c98ca4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
//
// 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"