added custom cycle mode

This commit is contained in:
Jared Bruni
2020-01-07 07:35:31 -08:00
parent 003ca28065
commit a55e6953d9
6 changed files with 67 additions and 9 deletions

View File

@@ -425,13 +425,17 @@ void AC_MainWindow::createMenu() {
repeat_v->setCheckable(true);
repeat_v->setChecked(false);
cycle_custom = new QAction(tr("Cycle Custom"), this);
cycle_custom->setCheckable(true);
cycle_custom->setChecked(false);
fade_on = new QAction(tr("Fade"), this);
fade_on->setCheckable(true);
fade_on->setChecked(true);
options->addAction(fade_on);
options->addAction(repeat_v);
options->addAction(cycle_custom);
connect(cycle_custom, SIGNAL(triggered()), this, SLOT(setCustomCycle_Menu()));
connect(fade_on, SIGNAL(triggered()), this, SLOT(setFade()));
connect(repeat_v, SIGNAL(triggered()), this, SLOT(repeat_vid()));
connect(clear_image, SIGNAL(triggered()), this, SLOT(clear_img()));
@@ -1685,3 +1689,8 @@ void AC_MainWindow::setRandomFilterValue() {
int filter_index = ac::filter_map[filter_name];
filters->setCurrentIndex(filter_index);
}
void AC_MainWindow::setCustomCycle_Menu() {
bool chk = cycle_custom->isChecked();
playback->setCustomCycle(chk);
}