dc_viewer::dc_viewer(QWidget *parent, Qt::WFlags flags)
	: QMainWindow(parent, flags)
{
	ui.setupUi(this);

	//connect signals
	connect(this->ui.actionSetRoot, SIGNAL(triggered()), this, SLOT(setRootPath()));
	connect(this->ui.actionSetTemppath, SIGNAL(triggered()), this, SLOT(setTemppath()));
	connect(this->ui.fileTreeView, SIGNAL(doubleClicked(QModelIndex)), this, SLOT(onFileItemDoubleClicked(QModelIndex)));
	connect(this->ui.colorLabel, SIGNAL(labelDoubleClicked()), this, SLOT(onColorLabelDoubleClicked()));
	connect(this->ui.depthLabel, SIGNAL(labelDoubleClicked()),this, SLOT(onDepthLabelDoubleClicked()));
	connect(this->ui.edgeLabel, SIGNAL(labelDoubleClicked()), this, SLOT(onEdgeLabelDoubleClicked()));
	connect(this->ui.tempLabel, SIGNAL(labelDoubleClicked()), this, SLOT(onTempLabelDoubleClicked()));
	connect(this->ui.normalLabel, SIGNAL(labelDoubleClicked()),this, SLOT(onNormalLabelDoubleClicked()));

	//set parameters
	this->colorImage = NULL;
	this->depthImage = NULL;
	this->captureImage = NULL;
	this->pointData = NULL;
	this->normalData = NULL;
	this->fileModel = new QFileSystemModel(this);
	this->rootPath = QDir::currentPath();
	this->fileModel->setRootPath(this->rootPath);
	this->boundingBox.setX(0);
	this->boundingBox.setY(0);
	this->focusLength = 1;
	this->pixelSize = 1;
	this->initializeColorMap();
	//QStringList roiNameFilter;
	//roiNameFilter << "png";
	//this->fileModel->setNameFilters(roiNameFilter);
	this->ui.fileTreeView->setModel(fileModel);
	this->ui.fileTreeView->hideColumn(1);
	this->ui.fileTreeView->hideColumn(2);
	this->ui.fileTreeView->hideColumn(3);
	this->ui.fileTreeView->hideColumn(4);
	this->ui.fileTreeView->setCurrentIndex(fileModel->index(this->rootPath));
}
Exemple #2
0
void ListingTracePane::mouseDoubleClickEvent(QMouseEvent *)
{
    emit labelDoubleClicked(Enu::EListingTrace);
}
/*
 *	Modify mouse press event
 */
void XlLabelDisplay::mouseDoubleClickEvent(QMouseEvent *ev)
{
	if(ev->button() == Qt::LeftButton)
		emit labelDoubleClicked();
}
Exemple #4
0
void MemoryTracePane::mouseDoubleClickEvent(QMouseEvent *)
{
    emit labelDoubleClicked(Enu::EMemoryTrace);
}
Exemple #5
0
void ObjectCodePane::mouseDoubleClickEvent(QMouseEvent *)
{
    emit labelDoubleClicked(Enu::EObject);
}
void AssemblerListingPane::mouseDoubleClickEvent(QMouseEvent *)
{
    emit labelDoubleClicked(Enu::EListing);
}