summaryrefslogtreecommitdiffstats
path: root/k9author/k9title.cpp
blob: 47d45633168cb62813b7c700e8dd13da4fdcc7f9 (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
//
// C++ Implementation: k9title
//
// Description: 
//
//
// Author: Jean-Michel PETIT <[email protected]>, (C) 2007
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "k9title.h"
#include "k9newdvd.h"
#include "k9menu.h"

k9Title::k9Title(k9NewDVD *tqparent, const char *name)
 : TQObject(tqparent, name)
{
    m_num=tqparent->getTitles()->count();
    tqparent->appendTitle(this);
    m_menu=new k9Menu(this,0);
    m_menu->setFormat((k9Menu::eFormat)tqparent->getFormat());
}


k9Title::~k9Title()
{
}

int k9TitleItems::compareItems(TQPtrCollection::Item item1,TQPtrCollection::Item item2) {
    k9AviFile *i1,*i2;
    i1=(k9AviFile*) item1;
    i2=(k9AviFile*) item2;
    return (i1->getNum() - i2->getNum());
}

#include "k9title.moc"


k9TitleItems *k9Title::getFiles() 
{
	return &m_files;
}


int k9Title::getNum() const
{
	return m_num;
}


k9MenuButton* k9Title::getButton() const {
    return m_button;
}


void k9Title::setButton(k9MenuButton* _value) {
    m_button = _value;
}


k9Menu* k9Title::getMenu() const {
    return m_menu;
}