示例#1
0
	bool operator()(int a, int b) const
	{
		const CLocalListView::t_fileData &data1 = m_fileData[a];
		const CLocalListView::t_fileData &data2 = m_fileData[b];

		CMP(CmpDir, data1, data2);

		CMP_LESS(CmpName, data1, data2);
	}
示例#2
0
	bool operator()(int a, int b) const
	{
		const CDirentry& data1 = m_fileData[a].entry;
		const CDirentry& data2 = m_fileData[b].entry;

		CMP(CmpDir, data1, data2);

		CMP_LESS(CmpName, data1, data2);
	}
示例#3
0
	bool operator()(int a, int b) const
	{
		const CDirentry& data1 = m_fileData[a].entry;
		const CDirentry& data2 = m_fileData[b].entry;

		CMP(CmpDir, data1, data2);

		CMP(CmpStringNoCase, data1.ownerGroup, data2.ownerGroup);

		CMP_LESS(CmpName, data1, data2);
	}
示例#4
0
	bool operator()(int a, int b) const
	{
		const CDirentry& data1 = m_fileData[a].entry;
		const CDirentry& data2 = m_fileData[b].entry;

		if (m_fileData[a].path < m_fileData[b].path)
			return true;
		if (m_fileData[a].path != m_fileData[b].path)
			return false;

		CMP_LESS(CmpName, data1, data2);
	}
示例#5
0
	bool operator()(int a, int b) const
	{
		CLocalListView::t_fileData &data1 = m_fileData[a];
		CLocalListView::t_fileData &data2 = m_fileData[b];

		if (data1.fileType == _T(""))
			data1.fileType = m_pListView->GetType(data1.name, data1.dir);
		if (data2.fileType == _T(""))
			data2.fileType = m_pListView->GetType(data2.name, data2.dir);

		CMP(CmpDir, data1, data2);

		CMP(CmpType, data1, data2)

		CMP_LESS(CmpName, data1, data2);
	}
示例#6
0
	bool operator()(int a, int b) const
	{
		CSearchFileData &data1 = m_fileData[a];
		CSearchFileData &data2 = m_fileData[b];

		CMP(CmpDir, data1.entry, data2.entry);

		if (data1.fileType.IsEmpty())
			data1.fileType = m_pListCtrl->GetType(data1.entry.name, data1.entry.is_dir());
		if (data2.fileType.IsEmpty())
			data2.fileType = m_pListCtrl->GetType(data2.entry.name, data2.entry.is_dir());

		CMP(CmpStringNoCase, data1.fileType, data2.fileType);

		CMP_LESS(CmpName, data1.entry, data2.entry);
	}