示例#1
0
QuteWidget::QuteWidget(QWidget *parent):
	QWidget(parent)
{
	propertiesAct = new QAction(tr("&Properties"), this);
	propertiesAct->setStatusTip(tr("Open widget properties"));
	connect(propertiesAct, SIGNAL(triggered()), this, SLOT(openProperties()));

	m_value = 0.0;
	m_value2 = 0.0;
	m_stringValue = "";
	m_valueChanged = false;
	m_value2Changed = false;
	m_locked = false;

	this->setMinimumSize(2,2);
	this->setMouseTracking(true); // Necessary to pass mouse tracking to widget panel for _MouseX channels

	setProperty("QCS_x", 0);
	setProperty("QCS_y", 0);
	setProperty("width", 20);
	setProperty("height", 20);
	setProperty("QCS_uuid", QUuid::createUuid().toString());
	setProperty("QCS_visible", true);
	setProperty("QCS_midichan", 0);
	setProperty("QCS_midicc", -3);
}
示例#2
0
void KfmServIpc::parse_openProperties( char *_data, int _len )
{
	int pos = 0;

	// Parsing string
	const char* _url;
	_url = read_string( _data, pos, _len );
	// Calling function
	emit openProperties( _url );
	free( (void*)_url );
}
BOOL CBatchRunBtn::OnProperties()
{
	m_container->SetHotKey(0, HOTKEY_RUN);
	if(openProperties())
	{
		m_container->SetHotKey(m_hotKey, HOTKEY_RUN);
		m_container->UpdateTips();
		m_container->SaveButton();
		return TRUE;
	}
	m_container->SetHotKey(m_hotKey, HOTKEY_RUN);
	return FALSE;
}
BOOL CBatchRunBtn::OnCreate()
{
	return openProperties();
}