124 |
QObject::connect(m_ui.InstrumentNamesCheckBox, |
QObject::connect(m_ui.InstrumentNamesCheckBox, |
125 |
SIGNAL(stateChanged(int)), |
SIGNAL(stateChanged(int)), |
126 |
SLOT(optionsChanged())); |
SLOT(optionsChanged())); |
127 |
|
QObject::connect(m_ui.BaseFontSizeComboBox, |
128 |
|
SIGNAL(editTextChanged(const QString&)), |
129 |
|
SLOT(optionsChanged())); |
130 |
QObject::connect(m_ui.OkPushButton, |
QObject::connect(m_ui.OkPushButton, |
131 |
SIGNAL(clicked()), |
SIGNAL(clicked()), |
132 |
SLOT(accept())); |
SLOT(accept())); |
211 |
m_ui.CompletePathCheckBox->setChecked(m_pOptions->bCompletePath); |
m_ui.CompletePathCheckBox->setChecked(m_pOptions->bCompletePath); |
212 |
m_ui.InstrumentNamesCheckBox->setChecked(m_pOptions->bInstrumentNames); |
m_ui.InstrumentNamesCheckBox->setChecked(m_pOptions->bInstrumentNames); |
213 |
m_ui.MaxRecentFilesSpinBox->setValue(m_pOptions->iMaxRecentFiles); |
m_ui.MaxRecentFilesSpinBox->setValue(m_pOptions->iMaxRecentFiles); |
214 |
|
if (m_pOptions->iBaseFontSize > 0) |
215 |
|
m_ui.BaseFontSizeComboBox->setEditText(QString::number(m_pOptions->iBaseFontSize)); |
216 |
|
else |
217 |
|
m_ui.BaseFontSizeComboBox->setCurrentIndex(0); |
218 |
|
|
219 |
#ifndef CONFIG_LIBGIG |
#ifndef CONFIG_LIBGIG |
220 |
m_ui.InstrumentNamesCheckBox->setEnabled(false); |
m_ui.InstrumentNamesCheckBox->setEnabled(false); |
258 |
m_pOptions->bCompletePath = m_ui.CompletePathCheckBox->isChecked(); |
m_pOptions->bCompletePath = m_ui.CompletePathCheckBox->isChecked(); |
259 |
m_pOptions->bInstrumentNames = m_ui.InstrumentNamesCheckBox->isChecked(); |
m_pOptions->bInstrumentNames = m_ui.InstrumentNamesCheckBox->isChecked(); |
260 |
m_pOptions->iMaxRecentFiles = m_ui.MaxRecentFilesSpinBox->value(); |
m_pOptions->iMaxRecentFiles = m_ui.MaxRecentFilesSpinBox->value(); |
261 |
|
m_pOptions->iBaseFontSize = m_ui.BaseFontSizeComboBox->currentText().toInt(); |
262 |
// Reset dirty flag. |
// Reset dirty flag. |
263 |
m_iDirtyCount = 0; |
m_iDirtyCount = 0; |
264 |
} |
} |