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);
}
Esempio n. 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);
}
Esempio n. 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();
    }
}