コード例 #1
0
ファイル: AssembleDialog.cpp プロジェクト: bloodwrath/x64dbg
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);
    }
}
コード例 #2
0
void AMTimeoutActionInfo::setInstruction(const QString &newInstruction)
{
	if (instruction_ != newInstruction) {
		instruction_ = newInstruction;
		setModified(true);

		emit instructionChanged(instruction_);
	}
}
コード例 #3
0
ファイル: Navigation.cpp プロジェクト: PayalPradhan/marble
Navigation::Navigation( QObject* parent) :
    QObject( parent ), d( new NavigationPrivate )
{
    connect( &d->m_voiceNavigation, SIGNAL(instructionChanged()), this, SIGNAL(voiceNavigationAnnouncementChanged()) );
}
コード例 #4
0
ファイル: AudioOutput.cpp プロジェクト: calincru/marble
AudioOutputPrivate::AudioOutputPrivate( AudioOutput* parent ) :
    q( parent ), m_output( 0 ), m_muted( false )
{
    QObject::connect( &m_voiceNavigation, SIGNAL(instructionChanged()),
                      q, SLOT(playInstructions()) );
}