Example #1
0
void MainWindow::addToView(Rom *currentRom, int count)
{
    if (SETTINGS.value("View/layout", "none") == "table")
        addToTableView(currentRom);
    else if (SETTINGS.value("View/layout", "none") == "grid")
        addToGridView(currentRom, count);
    else if (SETTINGS.value("View/layout", "none") == "list")
        addToListView(currentRom, count);
}
Example #2
0
unsigned char SelectLoopCallback(LPSKYETEK_TAG lpTag, void *user)
{
	int i, x;
	std::string friendly;
	std::string tag;
	OutputDebugString("SELECTLOOPCALLBACK WORKS\n");

	if (!isStop && lpTag != NULL)
	{
		for (x = 0; x < sizeof(lpTag->friendly); x++)
		{
			friendly += (lpTag->friendly + x);		//store tag friendly information into a string
		}
		for (i = 0; i < (sizeof(SkyeTek_GetTagTypeNameFromType(lpTag->type)) * 16); i++)
		{
			tag += (SkyeTek_GetTagTypeNameFromType(lpTag->type) + i);		//store tag type information into a string
		}
		strcpy_s(tagInfo.friendly, friendly.c_str());		//copy friendly string information into our structure
		strcpy_s(tagInfo.type, tag.c_str());				//copy type string information into our structure
		addToListView(hWndList);							//print stucture to listview
	}
	return !isStop;
}