MCPcopy Create free account
hub / github.com/HertzDevil/0CC-FamiTracker / GetChannelColumns

Method GetChannelColumns

Source/PatternEditor.cpp:1820–1833  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1818}
1819
1820cursor_column_t CPatternEditor::GetChannelColumns(int Channel) const
1821{
1822 // Return number of available columns in a channel
1823 if (m_bCompactMode)
1824 return cursor_column_t::NOTE;
1825 CSongView *pSongView = m_pView->GetSongView(); // // //
1826 switch (pSongView->GetEffectColumnCount(Channel)) {
1827 case 1: return cursor_column_t::EFF1_PARAM2;
1828 case 2: return cursor_column_t::EFF2_PARAM2;
1829 case 3: return cursor_column_t::EFF3_PARAM2;
1830 case 4: return cursor_column_t::EFF4_PARAM2;
1831 default: return cursor_column_t::VOLUME; // // //
1832 }
1833}
1834
1835int CPatternEditor::GetChannelCount() const
1836{

Callers 2

~CSelectionGuardMethod · 0.80
OnEditSelectotherMethod · 0.80

Calls 2

GetSongViewMethod · 0.80
GetEffectColumnCountMethod · 0.45

Tested by

no test coverage detected