예제 #1
0
파일: VTable.cpp 프로젝트: alex3696/wh3
//-----------------------------------------------------------------------------
void VTable::OnRowAfterInsert(const IModel& vec, const std::vector<SptrIModel>& newItems
	, const SptrIModel& itemBefore)
{
	wxBusyCursor			busyCursor;
	wxWindowUpdateLocker	wndLockUpdater(this);

	if (itemBefore)
	{
		size_t pos;
		if (vec.GetItemPosition(itemBefore, pos))
		{
			for (const auto& curr : newItems)
				mDataViewModel->RowInserted(pos++);
		}
	}
	else
	{
		for (const auto& curr : newItems)
			mDataViewModel->RowAppended();
	}
	OnChangeVecState(vec.GetState());
}//OnAppend
예제 #2
0
파일: VTable.cpp 프로젝트: alex3696/wh3
//-----------------------------------------------------------------------------
void VTable::OnRowAfterRemove(const IModel& vec, const std::vector<SptrIModel>& remVec)
{
	OnChangeVecState(vec.GetState());
}