diff options
author | Leonard Kugis <leonardkugis@gmail.com> | 2018-01-13 22:56:35 +0100 |
---|---|---|
committer | Leonard Kugis <leonardkugis@gmail.com> | 2018-01-13 22:56:35 +0100 |
commit | 97b5922a75b6f0337c2d3ae4bc62dc18347f861e (patch) | |
tree | 9a11aa45941d35061cefd59e787e93696f5b35c7 /src/mandelbrot-zoom.h | |
parent | 78109333d989fa678c3c864defc4ef9d170f58ce (diff) |
Funktionierendes settings GUI
Diffstat (limited to 'src/mandelbrot-zoom.h')
-rw-r--r-- | src/mandelbrot-zoom.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/src/mandelbrot-zoom.h b/src/mandelbrot-zoom.h new file mode 100644 index 0000000..9f1b454 --- /dev/null +++ b/src/mandelbrot-zoom.h @@ -0,0 +1,56 @@ +/* + * mandelbrot-zoom.h + * + * Created on: 13.01.2018 + * Author: Superleo1810 + */ + +#ifndef MANDELBROT_ZOOM_H_ +#define MANDELBROT_ZOOM_H_ + +#include <gtk/gtk.h> +#include "defs.h" +#include "settings.h" +#include "conversion.h" + +typedef struct config { + bool video; + u8 filetype; + u16 width; + u16 height; + u8 renderFPS; + u8 videoFPS; + u32 bitrate; + const char *path; + // TODO: key mapping als option in die struct +} Config; + +typedef struct ui_settings { + GtkWidget *settings; + GtkWidget *exportCb; + GtkWidget *gifRd; + GtkWidget *widthSp; + GtkWidget *heightSp; + GtkWidget *fpsRenderSp; + GtkWidget *fpsVideoSp; + GtkWidget *bitrateSp; + GtkWidget *exportTf; + GtkWidget *startBtn; + GtkWidget *exitBtn; +} ui_settings; + +ui_settings ui; +Config config; + +int main(int argc, char **argv); +void on_exportCb_toggled(); +void on_exportTf_changed(); +void on_widthSp_valueChanged(); +void on_heightSp_valueChanged(); +void on_fpsRenderSp_valueChanged(); +void on_fpsVideoSp_valueChanged(); +void on_bitrateSp_valueChanged(); +void on_startBtn_clicked(); +void on_exitBtn_clicked(); + +#endif /* MANDELBROT_ZOOM_H_ */ |