mirror of
https://github.com/lostjared/Acid.Cam.v2.Qt.git
synced 2025-12-13 18:30:02 +01:00
added custom cycle mode
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user