Exemplo n.º 1
0
void
JXPathHistoryMenu::JXPathHistoryMenuX()
{
	JXImage* icon = new JXImage(GetDisplay(), GetColormap(), jx_folder_small);
	assert( icon != NULL );
	SetDefaultIcon(icon, kJTrue);
}
void
CBFileHistoryMenu::CBFileHistoryMenuX
	(
	const CBDocumentManager::FileHistoryType type
	)
{
	if (type == CBDocumentManager::kProjectFileHistory)
		{
		JXImage* icon = new JXImage(GetDisplay(), jcc_project_file);
		assert( icon != NULL );
		SetDefaultIcon(icon, kJTrue);
		}

	CBFileHistoryMenu* master =
		(CBGetDocumentManager())->GetFileHistoryMenu(itsDocType);
	if (master != NULL)
		{
		std::ostringstream data;
		master->WriteSetup(data);
		const std::string s = data.str();
		std::istringstream input(s);
		ReadSetup(input);
		}

	ListenTo(this);
	ListenTo(CBGetDocumentManager());
}
void
JXFSCommandHistoryMenu::JFSCommandHistoryMenuX()
{
	JXImage* icon = jnew JXImage(GetDisplay(), jx_executable_small);
	assert( icon != NULL );
	SetDefaultIcon(icon, kJTrue);
}
void
JXFileHistoryMenu::JXFileHistoryMenuX()
{
	JXImage* icon = new JXImage(GetDisplay(), jx_plain_file_small);
	assert( icon != NULL );
	SetDefaultIcon(icon, kJTrue);
}
Exemplo n.º 5
0
void CGraphListCtrl::ResetDefaultIcon()
{
	AcDbObjectId blkId;
	if (!GetDefaultIconId(blkId))
	{
		return;
	}

	AcDbBlockReference* pRef = new AcDbBlockReference(AcGePoint3d::kOrigin, blkId);
	m_DefDb->addAcDbObject(pRef);

	SetDefaultIcon(AcDbEntity::cast(pRef->clone()));
}