|
|
@ -203,7 +203,8 @@ void k9MencoderCmdGen::addList(TQDomElement _eOpt) {
|
|
|
|
bSel=aSel.value()=="true";
|
|
|
|
bSel=aSel.value()=="true";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TQCheckBox *ckLabel=new TQCheckBox(sName,m_grid,TQString("ck%1").arg(m_row++) );
|
|
|
|
TQCString ckLabelName = TQString("ck%1").arg(m_row++).utf8();
|
|
|
|
|
|
|
|
TQCheckBox *ckLabel=new TQCheckBox(sName,m_grid,ckLabelName);
|
|
|
|
ckLabel->setChecked(bSel);
|
|
|
|
ckLabel->setChecked(bSel);
|
|
|
|
m_hbox=new TQGrid(2,m_grid);
|
|
|
|
m_hbox=new TQGrid(2,m_grid);
|
|
|
|
m_hbox->setFrameShape(TQFrame::StyledPanel);
|
|
|
|
m_hbox->setFrameShape(TQFrame::StyledPanel);
|
|
|
@ -255,7 +256,8 @@ void k9MencoderCmdGen::addInt(TQDomElement _eOpt) {
|
|
|
|
if (!aSel.isNull())
|
|
|
|
if (!aSel.isNull())
|
|
|
|
bSel=aSel.value()=="true";
|
|
|
|
bSel=aSel.value()=="true";
|
|
|
|
|
|
|
|
|
|
|
|
TQCheckBox *ckLabel=new TQCheckBox(sName,parent,TQString("ck%1").arg(m_row++) );
|
|
|
|
TQCString ckLabelName = TQString("ck%1").arg(m_row++).utf8();
|
|
|
|
|
|
|
|
TQCheckBox *ckLabel=new TQCheckBox(sName,parent,ckLabelName);
|
|
|
|
ckLabel->setChecked(bSel);
|
|
|
|
ckLabel->setChecked(bSel);
|
|
|
|
ckLabel->setBackgroundColor(parent->backgroundColor());
|
|
|
|
ckLabel->setBackgroundColor(parent->backgroundColor());
|
|
|
|
|
|
|
|
|
|
|
@ -266,7 +268,8 @@ void k9MencoderCmdGen::addInt(TQDomElement _eOpt) {
|
|
|
|
_eOpt.setAttribute("checkbox",ckLabel->name());
|
|
|
|
_eOpt.setAttribute("checkbox",ckLabel->name());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
KIntSpinBox *sb= new KIntSpinBox(iMin,iMax,1,iDefault,10,parent,TQString("int%1").arg(m_row++));
|
|
|
|
TQCString sbName = TQString("int%1").arg(m_row++).utf8();
|
|
|
|
|
|
|
|
KIntSpinBox *sb= new KIntSpinBox(iMin,iMax,1,iDefault,10,parent,sbName);
|
|
|
|
if (iMax <1000)
|
|
|
|
if (iMax <1000)
|
|
|
|
sb->setFixedWidth(50);
|
|
|
|
sb->setFixedWidth(50);
|
|
|
|
else
|
|
|
|
else
|
|
|
@ -301,7 +304,8 @@ void k9MencoderCmdGen::addFloat(TQDomElement _eOpt) {
|
|
|
|
if (!aSel.isNull())
|
|
|
|
if (!aSel.isNull())
|
|
|
|
bSel=aSel.value()=="true";
|
|
|
|
bSel=aSel.value()=="true";
|
|
|
|
|
|
|
|
|
|
|
|
TQCheckBox *ckLabel=new TQCheckBox(sName,parent,TQString("ck%1").arg(m_row++));
|
|
|
|
TQCString ckLabelName = TQString("ck%1").arg(m_row++).utf8();
|
|
|
|
|
|
|
|
TQCheckBox *ckLabel=new TQCheckBox(sName,parent,ckLabelName);
|
|
|
|
ckLabel->setChecked(bSel);
|
|
|
|
ckLabel->setChecked(bSel);
|
|
|
|
if ( !_eOpt.attributeNode("description").isNull()) {
|
|
|
|
if ( !_eOpt.attributeNode("description").isNull()) {
|
|
|
|
TQToolTip::add(ckLabel,_eOpt.attributeNode("description").value());
|
|
|
|
TQToolTip::add(ckLabel,_eOpt.attributeNode("description").value());
|
|
|
@ -317,7 +321,8 @@ void k9MencoderCmdGen::addFloat(TQDomElement _eOpt) {
|
|
|
|
if (!_eOpt.attributeNode("precision").isNull()) {
|
|
|
|
if (!_eOpt.attributeNode("precision").isNull()) {
|
|
|
|
iPrecision=_eOpt.attributeNode("precision").value().toInt();
|
|
|
|
iPrecision=_eOpt.attributeNode("precision").value().toInt();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
KDoubleSpinBox *sb= new KDoubleSpinBox(dMin,dMax,dStep,dDefault,iPrecision,parent,TQString("float%1").arg(m_row++));
|
|
|
|
TQCString sbName = TQString("float%1").arg(m_row++).utf8();
|
|
|
|
|
|
|
|
KDoubleSpinBox *sb= new KDoubleSpinBox(dMin,dMax,dStep,dDefault,iPrecision,parent,sbName);
|
|
|
|
if (dMax <1000)
|
|
|
|
if (dMax <1000)
|
|
|
|
sb->setFixedWidth(80);
|
|
|
|
sb->setFixedWidth(80);
|
|
|
|
else
|
|
|
|
else
|
|
|
@ -346,7 +351,8 @@ void k9MencoderCmdGen::addBool(TQDomElement _eOpt) {
|
|
|
|
if (!aSel.isNull())
|
|
|
|
if (!aSel.isNull())
|
|
|
|
bSel=aSel.value()=="true";
|
|
|
|
bSel=aSel.value()=="true";
|
|
|
|
|
|
|
|
|
|
|
|
TQCheckBox *ckLabel=new TQCheckBox(sName,parent,TQString("ck%1").arg(m_row++));
|
|
|
|
TQCString ckLabelName = TQString("ck%1").arg(m_row++).utf8();
|
|
|
|
|
|
|
|
TQCheckBox *ckLabel=new TQCheckBox(sName,parent,ckLabelName);
|
|
|
|
|
|
|
|
|
|
|
|
if ( !_eOpt.attributeNode("description").isNull()) {
|
|
|
|
if ( !_eOpt.attributeNode("description").isNull()) {
|
|
|
|
TQToolTip::add(ckLabel,_eOpt.attributeNode("description").value());
|
|
|
|
TQToolTip::add(ckLabel,_eOpt.attributeNode("description").value());
|
|
|
@ -379,7 +385,8 @@ void k9MencoderCmdGen::addString(TQDomElement _eOpt) {
|
|
|
|
if (!aSel.isNull())
|
|
|
|
if (!aSel.isNull())
|
|
|
|
bSel=aSel.value()=="true";
|
|
|
|
bSel=aSel.value()=="true";
|
|
|
|
|
|
|
|
|
|
|
|
TQCheckBox *ckLabel=new TQCheckBox(sName,parent,TQString("ck%1").arg(m_row++));
|
|
|
|
TQCString ckLabelName = TQString("ck%1").arg(m_row++).utf8();
|
|
|
|
|
|
|
|
TQCheckBox *ckLabel=new TQCheckBox(sName,parent,ckLabelName);
|
|
|
|
ckLabel->setChecked(bSel);
|
|
|
|
ckLabel->setChecked(bSel);
|
|
|
|
if ( !_eOpt.attributeNode("description").isNull()) {
|
|
|
|
if ( !_eOpt.attributeNode("description").isNull()) {
|
|
|
|
TQToolTip::add(ckLabel,_eOpt.attributeNode("description").value());
|
|
|
|
TQToolTip::add(ckLabel,_eOpt.attributeNode("description").value());
|
|
|
@ -387,7 +394,8 @@ void k9MencoderCmdGen::addString(TQDomElement _eOpt) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
_eOpt.setAttribute("checkbox",ckLabel->name());
|
|
|
|
_eOpt.setAttribute("checkbox",ckLabel->name());
|
|
|
|
|
|
|
|
|
|
|
|
TQComboBox *cb=new TQComboBox(parent,TQString("string%1").arg(m_row++));
|
|
|
|
TQCString cbName = TQString("string%1").arg(m_row++).utf8();
|
|
|
|
|
|
|
|
TQComboBox *cb=new TQComboBox(parent,cbName);
|
|
|
|
|
|
|
|
|
|
|
|
TQDomNodeList values=_eOpt.elementsByTagName("value");
|
|
|
|
TQDomNodeList values=_eOpt.elementsByTagName("value");
|
|
|
|
int def=0;
|
|
|
|
int def=0;
|
|
|
|