예제 #1
0
void CAAutoCollectionView::setCollectionViewOrientation(CACollectionViewOrientation var)
{
	m_pCollectionViewOrientation = var;
	bool bVertScroll = m_pCollectionViewOrientation == CACollectionViewOrientationVertical;

	setShowsVerticalScrollIndicator(bVertScroll);
	setBounceVertical(bVertScroll);
	setShowsHorizontalScrollIndicator(!bVertScroll);
	setBounceHorizontal(!bVertScroll);
	setHorizontalScrollEnabled(!bVertScroll);
	setVerticalScrollEnabled(bVertScroll);
}
예제 #2
0
void CAListView::setListViewOrientation(CAListViewOrientation var)
{
	m_pListViewOrientation = var;
	bool bVertScroll = m_pListViewOrientation == CAListViewOrientationVertical;
	
	setShowsVerticalScrollIndicator(bVertScroll);
	setBounceVertical(bVertScroll);
	setShowsHorizontalScrollIndicator(!bVertScroll);
	setBounceHorizontal(!bVertScroll);
	setTouchMovedListenHorizontal(!bVertScroll);
	setTouchMovedListenVertical(bVertScroll);
}
예제 #3
0
void CAListView::setOrientation(const CAListView::Orientation& var)
{
	m_eOrientation = var;
	bool bVertScroll = m_eOrientation == Vertical;
	
	setShowsVerticalScrollIndicator(bVertScroll);
	setBounceVertical(bVertScroll);
	setShowsHorizontalScrollIndicator(!bVertScroll);
	setBounceHorizontal(!bVertScroll);
	setHorizontalScrollEnabled(!bVertScroll);
	setVerticalScrollEnabled(bVertScroll);
    
    if(!m_mpUsedListCells.empty())
    {
        this->reloadData();
    }
}