summaryrefslogtreecommitdiffstats
path: root/src/k9mencodercmdgen.h
blob: f13e3a01e7ee05f9662d9d6884ca7cf4edaa128a (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
//
// C++ Interface: 
//
// Description: 
//
//
// Author: Jean-Michel PETIT <[email protected]>, (C) 2007
//
// Copyright: See COPYING file that comes with this distribution
//
//

#ifndef K9MENCODERCMDGEN_H
#define K9MENCODERCMDGEN_H

#include "mencoderCmdGen.h"
#include <tqscrollview.h>
#include <tqgrid.h>
#include <tqdom.h>
#include <tqlayout.h>
#include <tqlistview.h>
#include <tqhbox.h>
class _k9CheckListItem;

class k9MencoderCmdGen : public MyDialog1
{
  Q_OBJECT
  TQ_OBJECT

public:
  k9MencoderCmdGen(TQWidget* tqparent, const TQString &_cmd, bool modal = FALSE, WFlags fl = 0 );
  ~k9MencoderCmdGen();
  /*$PUBLIC_FUNCTIONS$*/
  static bool getMencoderOptions(TQString &_cmd);
public slots:
  /*$PUBLIC_SLOTS$*/
private:
   TQScrollView *m_scrollView;
   TQGrid *m_grid;
   TQGrid *m_hbox;
   int m_row,m_page,m_cpt;
   TQDomDocument m_doc;
   TQString m_cmd;

   void addWidgets(_k9CheckListItem *_item,TQString _root,TQString _cat);
   void loadXml();
   void fillListView();
   void addInt(TQDomElement _eOpt);
   void addFloat(TQDomElement _eOpt);
   void addBool(TQDomElement _eOpt);
   void addString(TQDomElement _eOpt);
   void addList(TQDomElement _eOpt);

   const TQString & getCmd(const TQString &_root);
   void selectCodec(const TQString &_root,const TQString &_codec);
   void parseCodecOptions(const TQString &_root,const TQString &_codec,const TQString & _options);
   void parseCmd(const TQString &_cmd);

protected:
  /*$PROTECTED_FUNCTIONS$*/

protected slots:
  /*$PROTECTED_SLOTS$*/
    void listViewCurrentChanged(TQListViewItem*);
};

#endif