Exemplo n.º 1
0
void
Il2cfgSuifPass::do_procedure_definition(ProcedureDefinition *pd)
{
    focus(pd);
    il2cfg.do_opt_unit(pd);
    defocus(pd);
}
Exemplo n.º 2
0
void
Ex1SuifPass::do_procedure_definition(ProcedureDefinition *pd)
{
    focus(pd);
    ex1.do_opt_unit(pd);
    defocus(pd);
}
Exemplo n.º 3
0
void TabList::logic() {
	if (locked) return;
	if (scrolltype == VERTICAL || scrolltype == TWO_DIRECTIONS) {
		if (inpt->pressing[DOWN] && !inpt->lock[DOWN]) {
			inpt->lock[DOWN] = true;
			getNext();
		}
		else if (inpt->pressing[UP] && !inpt->lock[UP]) {
			inpt->lock[UP] = true;
			getPrev();
		}
	}

	if (scrolltype == HORIZONTAL || scrolltype == TWO_DIRECTIONS) {
		if (inpt->pressing[MV_LEFT] && !inpt->lock[MV_LEFT]) {
			inpt->lock[MV_LEFT] = true;
			getPrev(false);
		}
		else if (inpt->pressing[MV_RIGHT] && !inpt->lock[MV_RIGHT]) {
			inpt->lock[MV_RIGHT] = true;
			getNext(false);
		}
	}

	if (inpt->pressing[ACTIVATE] && !inpt->lock[ACTIVATE]) {
		inpt->lock[ACTIVATE] = true;
		deactivatePrevious(); //Deactivate previously activated item
		activate();	// Activate the currently infocus item
	}

	// If mouse is clicked, defocus current tabindex item
	if (inpt->pressing[MAIN1] && !inpt->lock[MAIN1]) {
		defocus();
	}
}
Exemplo n.º 4
0
void
M2aSuifPass::do_procedure_definition(ProcedureDefinition* pd)
{
    focus(pd);
    m2a.do_proc_def(pd);
    defocus(pd);
}
Exemplo n.º 5
0
void TabList::logic(bool allow_keyboard) {
	if (locked) return;
	if (NO_MOUSE || allow_keyboard) {
		if (scrolltype == VERTICAL || scrolltype == TWO_DIRECTIONS) {
			if (inpt->pressing[DOWN] && !inpt->lock[DOWN]) {
				inpt->lock[DOWN] = true;
				getNext();
			}
			else if (inpt->pressing[UP] && !inpt->lock[UP]) {
				inpt->lock[UP] = true;
				getPrev();
			}
		}

		if (scrolltype == HORIZONTAL || scrolltype == TWO_DIRECTIONS) {
			if (inpt->pressing[MV_LEFT] && !inpt->lock[MV_LEFT]) {
				inpt->lock[MV_LEFT] = true;
				getPrev(false);
			}
			else if (inpt->pressing[MV_RIGHT] && !inpt->lock[MV_RIGHT]) {
				inpt->lock[MV_RIGHT] = true;
				getNext(false);
			}
		}

		if (inpt->pressing[ACTIVATE] && !inpt->lock[ACTIVATE]) {
			inpt->lock[ACTIVATE] = true;
			deactivatePrevious(); //Deactivate previously activated item
			activate();	// Activate the currently infocus item
		}
	}

	// If mouse is clicked, defocus current tabindex item
	if (inpt->pressing[MAIN1] && !inpt->lock[MAIN1] && current_is_valid() && !isWithin(widgets[getCurrent()]->pos, inpt->mouse)) {
		defocus();
	}
}