コード例 #1
0
ファイル: vscmainwindows.cpp プロジェクト: bshawk/vdc
void VSCMainWindows::EditDisk()
{
    VDC_DEBUG( "%s\n",__FUNCTION__);
    VSCHddEdit *pDiskEdit = new VSCHddEdit(this);

    m_pMainArea->addTab(pDiskEdit, QIcon(tr(":/device/resources/harddisk.png")), tr("Disk"));
    m_pMainArea->setCurrentWidget(pDiskEdit);
    connect(pDiskEdit, SIGNAL(DiskTreeUpdated()), m_pDeviceList, SLOT(DiskTreeUpdated()));
}
コード例 #2
0
ファイル: vscdevicelist.cpp プロジェクト: KennyDark/opencvr
VSCDeviceList::VSCDeviceList(QWidget *parent)
    : QWidget(parent)
{
	ui.setupUi(this);
	/* Add Group first */
	VGroupTreeUpdated();
	CameraTreeUpdated();
	DiskTreeUpdated();
	VmsTreeUpdated();
	ViewTreeUpdated();
	VIPCTreeUpdated();

	SetupConnections();
	m_Timer = new QTimer(this);
	//connect(m_Timer,SIGNAL(timeout()),this,SLOT(UpdateOnline()));  
	//m_Timer->start(1000 * 3); 

	m_TimerDisk = new QTimer(this);
	connect(m_TimerDisk,SIGNAL(timeout()),this,SLOT(DiskTreeUpdated()));
	/* Disk 60s update */
	m_TimerDisk->start(1000 * 15);
	gFactory->RegDeviceChangeNotify((void *)this, 
				(FactoryDeviceChangeNotify)(VSCDeviceList::DeviceChangeCallbackFunc));


	//ui.pbRecorder->hide();
	//ui.lbRecorder->hide();
	
	//ui.pbDmining->hide();
	//ui.lbMining->hide();
	
	//ui.pbEmap->hide();
	//ui.lbEmap->hide();


}