AssembleDialog::AssembleDialog(QWidget* parent) : QDialog(parent), ui(new Ui::AssembleDialog) { ui->setupUi(this); setModal(true); setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint | Qt::MSWindowsFixedSizeDialogHint); mSelectedInstrVa = 0; bKeepSizeChecked = false; bFillWithNopsChecked = false; setKeepSizeLabel(""); mValidateThread = new ValidateExpressionThread(this); mValidateThread->setOnExpressionChangedCallback(std::bind(&AssembleDialog::validateInstruction, this, std::placeholders::_1)); connect(ui->lineEdit, SIGNAL(textChanged(QString)), this, SLOT(textChangedSlot(QString))); connect(mValidateThread, SIGNAL(instructionChanged(dsint, QString)), this, SLOT(instructionChangedSlot(dsint, QString))); mValidateThread->start(); duint setting; if(BridgeSettingGetUint("Engine", "Assembler", &setting)) { if(setting == 1) ui->radioKeystone->setChecked(true); else if(setting == 2) ui->radioAsmjit->setChecked(true); } }
void AMTimeoutActionInfo::setInstruction(const QString &newInstruction) { if (instruction_ != newInstruction) { instruction_ = newInstruction; setModified(true); emit instructionChanged(instruction_); } }
Navigation::Navigation( QObject* parent) : QObject( parent ), d( new NavigationPrivate ) { connect( &d->m_voiceNavigation, SIGNAL(instructionChanged()), this, SIGNAL(voiceNavigationAnnouncementChanged()) ); }
AudioOutputPrivate::AudioOutputPrivate( AudioOutput* parent ) : q( parent ), m_output( 0 ), m_muted( false ) { QObject::connect( &m_voiceNavigation, SIGNAL(instructionChanged()), q, SLOT(playInstructions()) ); }