|
|
@ -416,7 +416,7 @@ void MainWidget::readOptions() {
|
|
|
|
{ //pgm format
|
|
|
|
{ //pgm format
|
|
|
|
antialiasGamma->setValue(((**m_currentState)["antialiasGamma"]).toFloat());
|
|
|
|
antialiasGamma->setValue(((**m_currentState)["antialiasGamma"]).toFloat());
|
|
|
|
//Scale
|
|
|
|
//Scale
|
|
|
|
if(((**m_currentState)["scale"]).tqfind('x')==-1)
|
|
|
|
if(((**m_currentState)["scale"]).find('x')==-1)
|
|
|
|
{ //only one value
|
|
|
|
{ //only one value
|
|
|
|
scaleAll->setValue(((**m_currentState)["scale"]).toFloat());
|
|
|
|
scaleAll->setValue(((**m_currentState)["scale"]).toFloat());
|
|
|
|
scaleAllBTN->setChecked(true);
|
|
|
|
scaleAllBTN->setChecked(true);
|
|
|
@ -450,7 +450,7 @@ void MainWidget::readOptions() {
|
|
|
|
rotation->setValue(((**m_currentState)["rotation"]).toFloat());
|
|
|
|
rotation->setValue(((**m_currentState)["rotation"]).toFloat());
|
|
|
|
|
|
|
|
|
|
|
|
//Resolution
|
|
|
|
//Resolution
|
|
|
|
if(((**m_currentState)["resolution"]).tqfind('x')==-1)
|
|
|
|
if(((**m_currentState)["resolution"]).find('x')==-1)
|
|
|
|
{ //only one value
|
|
|
|
{ //only one value
|
|
|
|
resolutionAll->setValue(((**m_currentState)["resolution"]).toFloat());
|
|
|
|
resolutionAll->setValue(((**m_currentState)["resolution"]).toFloat());
|
|
|
|
resolutionAllBTN->setChecked(true);
|
|
|
|
resolutionAllBTN->setChecked(true);
|
|
|
@ -561,7 +561,7 @@ void MainWidget::getAutotraceOptions( ) {
|
|
|
|
|
|
|
|
|
|
|
|
//input output
|
|
|
|
//input output
|
|
|
|
TQString tmp=autotraceOutputFormat->currentText();
|
|
|
|
TQString tmp=autotraceOutputFormat->currentText();
|
|
|
|
tmp.truncate(tmp.tqfind(" "));
|
|
|
|
tmp.truncate(tmp.find(" "));
|
|
|
|
opt->setValue("outputFormat",tmp);
|
|
|
|
opt->setValue("outputFormat",tmp);
|
|
|
|
if(autotraceDpiCheckbox->isChecked() && autotraceDpiInput->value()!=0)
|
|
|
|
if(autotraceDpiCheckbox->isChecked() && autotraceDpiInput->value()!=0)
|
|
|
|
opt->setValue("dpi",TQString::number(autotraceDpiInput->value()));
|
|
|
|
opt->setValue("dpi",TQString::number(autotraceDpiInput->value()));
|
|
|
@ -750,7 +750,7 @@ TQStringList MainWidget::createPotraceCommandLine( ) {
|
|
|
|
//Margins
|
|
|
|
//Margins
|
|
|
|
if((**m_currentState)["margins"]!="0" && (**m_currentState)["margins"]!="0x0x0x0")
|
|
|
|
if((**m_currentState)["margins"]!="0" && (**m_currentState)["margins"]!="0x0x0x0")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if((**m_currentState)["margins"].tqfind('x')==-1)
|
|
|
|
if((**m_currentState)["margins"].find('x')==-1)
|
|
|
|
toReturn+="-M"+(**m_currentState)["margins"]+"cm";
|
|
|
|
toReturn+="-M"+(**m_currentState)["margins"]+"cm";
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|