summaryrefslogtreecommitdiffstats
path: root/src/k9langselect.h
blob: 71697bb58bebb4b7e13ff60e70189b29c08b61bd (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
//
// C++ Interface: 
//
// Description: 
//
//
// Author: Jean-Michel PETIT <k9copy@free.fr>, (C) 2006
//
// Copyright: See COPYING file that comes with this distribution
//
//

#ifndef K9LANGSELECT_H
#define K9LANGSELECT_H

#include "k9common.h"
#include "langselectw.h"

#include "k9main.h"
#include <tqlistview.h>

class k9Main;
class k9DVD;

class ckLvLangItem : public TQCheckListItem {
public:
    ckLvLangItem( TQListViewItem *tqparent,k9Main *dlg)
            : TQCheckListItem( tqparent,"",TQCheckListItem::CheckBox) {
        mainDlg=dlg;
        streamType=NONE;
    }
    eStreamType streamType;
    k9Main *mainDlg;
    TQString language;
protected:
    void stateChange(bool state);
};



class k9LangSelect : public langSelect
{
  Q_OBJECT
  TQ_OBJECT

public:
  k9LangSelect(k9Main *mainWindow,TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 );
  ~k9LangSelect();

  void setMain(k9Main* _value);
  void fillLvLanguages();
  void update();
  void clear();
  void selectAll(bool _state);
  /*$PUBLIC_FUNCTIONS$*/

public slots:
  /*$PUBLIC_SLOTS$*/

protected:
  /*$PROTECTED_FUNCTIONS$*/
  k9Main * m_main;
  k9DVD *m_dvd;
  TQPtrList <ckLvLangItem> langAudItems;
  TQPtrList <ckLvLangItem> langSubItems;
  void updateLvLang(const eStreamType streamType,const TQString & lang );

protected slots:
  /*$PROTECTED_SLOTS$*/

};

#endif