MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) { cw = new QWidget(this); scope = new QMainCanvas(cw); setCentralWidget(cw); scope->xMinInd = 0; scope->xMaxInd = 1024; saveDir = ""; ConstructGUI(); SetValidators(); SetScales(channelScaleBox->currentData().toFloat()); SetOffsets(); ConnectSignalsSlots(); // display actual channels settings emit selectChannelBox->currentIndexChanged(selectChannelBox->currentIndex()); runIDLine->setText("1"); disableWhenAcquisitionRunning << triggerSourceBox << typeOfTriggerBox << triggerLevelBox << setTriggerLevelButton << channelHScaleBox << eventsRequiredBox << horizontalPositionBox << horizontalPositionButton << saveChannelsMenu << saveWfBox << runIDLine ; }
SpellcheckEditor::SpellcheckEditor(QWidget *parent) : QDialog(parent), m_Book(NULL), m_SpellcheckEditorModel(new QStandardItemModel(this)), m_ContextMenu(new QMenu(this)), m_MultipleSelection(false), m_SelectRow(-1), m_FilterSC(new QShortcut(QKeySequence(tr("f", "Filter")), this)), m_ShowAllSC(new QShortcut(QKeySequence(tr("s", "ShowAllWords")), this)), m_NoCaseSC(new QShortcut(QKeySequence(tr("c", "Case-InsensitiveSort")), this)), m_RefreshSC(new QShortcut(QKeySequence(tr("r", "Refresh")), this)) { ui.setupUi(this); ui.FilterText->installEventFilter(this); SetupSpellcheckEditorTree(); CreateContextMenuActions(); ConnectSignalsSlots(); UpdateDictionaries(); ReadSettings(); }