aboutsummaryrefslogtreecommitdiff
path: root/src/mandelbrot-zoom.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mandelbrot-zoom.c')
-rw-r--r--src/mandelbrot-zoom.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mandelbrot-zoom.c b/src/mandelbrot-zoom.c
index 72b54ba..f009e10 100644
--- a/src/mandelbrot-zoom.c
+++ b/src/mandelbrot-zoom.c
@@ -22,6 +22,7 @@ int main(int argc, char **argv)
ui_settings.threadsSp = GTK_SPIN_BUTTON(gtk_builder_get_object(builder, "threadsSp"));
ui_settings.colorFromBtn = GTK_BUTTON(gtk_builder_get_object(builder, "colorFromBtn"));
ui_settings.colorToBtn = GTK_BUTTON(gtk_builder_get_object(builder, "colorToBtn"));
+ ui_settings.zoomSpecificCb = GTK_CHECK_BUTTON(gtk_builder_get_object(builder, "zoomSpecificCb"));
ui_settings.zoomToXEntry = GTK_ENTRY(gtk_builder_get_object(builder, "zoomToXEntry"));
ui_settings.zoomToYEntry = GTK_ENTRY(gtk_builder_get_object(builder, "zoomToYEntry"));
ui_settings.speedEntry = GTK_ENTRY(gtk_builder_get_object(builder, "speedEntry"));
@@ -40,6 +41,9 @@ int main(int argc, char **argv)
ui_settings.startBtn = GTK_BUTTON(gtk_builder_get_object(builder, "startBtn"));
ui_settings.exitBtn = GTK_BUTTON(gtk_builder_get_object(builder, "exitBtn"));
ui_settings.colorDialog = GTK_COLOR_SELECTION_DIALOG(gtk_builder_get_object(builder, "colorDialog"));
+ ui_settings.inCombo = GTK_COMBO_BOX_TEXT(gtk_builder_get_object(builder, "inCombo"));
+ ui_settings.incIterCombo = GTK_COMBO_BOX_TEXT(gtk_builder_get_object(builder, "incIterCombo"));
+ ui_settings.decIterCombo = GTK_COMBO_BOX_TEXT(gtk_builder_get_object(builder, "decIterCombo"));
gtk_spin_button_set_increments(ui_settings.iterationsSp, 1, 2);
gtk_spin_button_set_increments(ui_settings.threadsSp, 1, 2);
@@ -72,6 +76,8 @@ int main(int argc, char **argv)
gtk_combo_box_text_append(ui_settings.fpuCombo, NULL, "64 bit");
gtk_combo_box_text_append(ui_settings.fpuCombo, NULL, "128 bit");
+
+
g_signal_connect(ui_settings.colorFromBtn, "clicked", G_CALLBACK(on_colorFromBtn_clicked), NULL);
g_signal_connect(ui_settings.colorToBtn, "clicked", G_CALLBACK(on_colorToBtn_clicked), NULL);
g_signal_connect(ui_settings.startBtn, "clicked", G_CALLBACK(on_startBtn_clicked), NULL);
@@ -100,14 +106,18 @@ void on_startBtn_clicked()
config.config_cpu.iterations = gtk_spin_button_get_value(ui_settings.iterationsSp);
config.config_opencl.iterations = gtk_spin_button_get_value(ui_settings.iterationsSp);
+ config.zoomSpecific = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(ui_settings.zoomSpecificCb));
+
config.config_cpu.threads = gtk_spin_button_get_value(ui_settings.threadsSp);
config.config_opencl.fma = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(ui_settings.fmaCb));
config.video = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(ui_settings.exportCb));
+
config.path = CHAR_PTR(gtk_entry_get_text(ui_settings.exportTf));
+
config.width = gtk_spin_button_get_value(ui_settings.widthSp);
config.config_cpu.width = gtk_spin_button_get_value(ui_settings.widthSp);
config.config_opencl.width = gtk_spin_button_get_value(ui_settings.widthSp);