usePauseButton = controlsSource.booleanAttribute("pause");
autorepeat = controlsSource.booleanAttribute("autorepeat");
}
int controls = ControlButtons.CONTROL_PLAY | (useStopButton ? ControlButtons.CONTROL_STOP : 0) | (usePauseButton ? ControlButtons.CONTROL_PAUSE : 0) | (autorepeat ? ControlButtons.CONTROL_REPLAY : 0);
int stimuliPerPage = main.intAttribute("stimuliPerPage");
myFolderParser = new FolderParser(stimuliDimension, stimuliPerPage, sequences, controls);
if (!myFolderParser.setSource(myStimuliFolder))
throw new TestException(myStimuliFolder.getAbsolutePath() + " Cannot be used as the source folder.");
visitedPages = new boolean[myFolderParser.getInnerStimuliCount()];
Arrays.fill(visitedPages, false);
myFolderParser.setInnerStimuli(0);