Beispiel #1
0
void Monitor::createMonitorFixture(Fixture* fxi)
{
	MonitorFixture* mof = new MonitorFixture(m_monitorWidget);
	mof->setFixture(fxi->id());
	mof->slotChannelStyleChanged(channelStyle());
	mof->slotValueStyleChanged(valueStyle());
	mof->show();

	/* Make mof listen to value & channel style changes */
	connect(this, SIGNAL(valueStyleChanged(Monitor::ValueStyle)),
		mof, SLOT(slotValueStyleChanged(Monitor::ValueStyle)));
	connect(this, SIGNAL(channelStyleChanged(Monitor::ChannelStyle)),
		mof, SLOT(slotChannelStyleChanged(Monitor::ChannelStyle)));

	m_monitorLayout->addItem(new MonitorLayoutItem(mof));
	m_monitorFixtures.append(mof);
}
Beispiel #2
0
void MonitorFixture::updateLabelStyles()
{
    slotChannelStyleChanged(m_channelStyle);
    slotValueStyleChanged(m_valueStyle);
}