Esempio n. 1
0
void ActionDialog::loadSettings()
{
    ConfigurationManager *cm = ConfigurationManager::instance();

    restoreHistory();

    ui->comboBoxInputFormat->clear();
    ui->comboBoxInputFormat->addItems(standardFormats);
    ui->comboBoxInputFormat->setCurrentIndex(cm->value("action_has_input").toBool() ? 1 : 0);

    ui->comboBoxOutputFormat->clear();
    ui->comboBoxOutputFormat->addItems(standardFormats);
    ui->comboBoxOutputFormat->setCurrentIndex(cm->value("action_has_output").toBool() ? 1 : 0);

    ui->separatorEdit->setText(cm->value("action_separator").toString());
    ui->comboBoxOutputTab->setEditText(cm->value("action_output_tab").toString());
}
Esempio n. 2
0
void ActionDialog::loadSettings()
{
    initFormatComboBox(ui->comboBoxInputFormat);
    initFormatComboBox(ui->comboBoxOutputFormat);
    restoreHistory();
}