summaryrefslogtreecommitdiffstats
path: root/libk9copy/k9mp4dlg.cpp
blob: 30dc6b9cee2e9efdf29db3a5db746dda1889918f (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 <tqlabel.h>
#include <kprogress.h>
#include <tqpainter.h>
#include <kstandarddirs.h>
#include <tqlayout.h>
#include "k9drawimage.h"


k9MP4Dlg::k9MP4Dlg(TQWidget* parent, const char* name)
: MP4Dlg(parent,name, true)
{
  m_wimage=new k9DrawImage(image,0);
  TQGridLayout *l=new TQGridLayout(image,1,1);
  l->addWidget(m_wimage,0,0);
  m_timer.start();
}

k9MP4Dlg::~k9MP4Dlg()
{
}

/*$SPECIALIZATION$*/

void k9MP4Dlg::Cancel() {
   //TQDialog::accept();
   emit sigCancel();
}

void k9MP4Dlg::setTitleLabel(TQString _titleLabel) {
    lblTitle->setText(_titleLabel);
}


void k9MP4Dlg::setfps(TQString _fps) {
    lblfps->setText(_fps);
}

void k9MP4Dlg::setremain(TQString _remain) {
    if (m_timer.elapsed() >=1000) {
        lblRemain->setText(_remain);
        m_timer.restart();
    }
}

void k9MP4Dlg::setProgress(int _progress) {
    pbProgress->setProgress(_progress);

}

void k9MP4Dlg::setbitrate(TQString _bitrate) {
    lblbitrate->setText(_bitrate);
}

void k9MP4Dlg::setsize( TQString _size) {
    lblsize->setText(_size);
}


void k9MP4Dlg::setImage(TQString _fileName) {
    m_wimage->setImage(_fileName);
}



#include "k9mp4dlg.moc"