Esempio n. 1
0
 void moveDemoPages (int numPagesToMove)
 {
     const int newIndex = negativeAwareModulo (getCurrentPageIndex() + numPagesToMove,
                                               JuceDemoTypeBase::getDemoTypeList().size());
     demoList.selectRow (newIndex);
     // we have to go through our demo list here or it won't be updated to reflect the current demo
 }
 //--------------------------------------------------------------
 void Gui::nextPage() {
     setPage(getCurrentPageIndex() + 1);
 }
 //--------------------------------------------------------------
 void Gui::prevPage() {
     setPage(getCurrentPageIndex() - 1);
 }
 //--------------------------------------------------------------
 Page& Gui::getCurrentPage() {
     return getPage(getCurrentPageIndex());
 }