// Copyright (c) 2012 - 2026 kio@little-bat.de
// BSD-2-Clause license
// https://opensource.org/licenses/BSD-2-Clause

#include "Multiface128Insp.h"
#include "Multiface/Multiface128.h"
#include <QLabel>


namespace zxsp
{

Multiface128Insp::Multiface128Insp(QWidget* w, MachineController* mc, volatile Multiface128* i) :
	MultifaceInsp(w, mc, i, "Images/multiface128.jpg", QRect(220, 20, 30, 30)) // red button		x y w h
{
	label_visibility = new QLabel("Visible", this);

	label_visibility->move(l_x, l_y + 0 * l_d);
	label_nmi_pending->move(l_x, l_y + 1 * l_d);
	label_paged_in->move(l_x, l_y + 2 * l_d);
}


void Multiface128Insp::updateWidgets()
{
	// timer

	xxlogIn("Multiface128Inspector::updateWidgets");
	//assert(validReference(mf3));

	MultifaceInsp::updateWidgets();

	if (label_visibility->isVisible() != mf128->isEnabled()) label_visibility->setVisible(mf128->isEnabled());
}

} // namespace zxsp
