Mercurial > geeqie
diff src/typedefs.h @ 127:271afad04d07
implemented split windows
TODO: menus and hotkeys, connected zoom, activating on drag
author | nadvornik |
---|---|
date | Fri, 29 Jun 2007 15:16:46 +0000 |
parents | e2a8b7f2165b |
children | 98e2632b5d3d |
line wrap: on
line diff
--- a/src/typedefs.h Wed Jan 17 21:52:24 2007 +0000 +++ b/src/typedefs.h Fri Jun 29 15:16:46 2007 +0000 @@ -53,6 +53,15 @@ IMAGE_STATE_DELAY_FLIP = 1 << 6 } ImageState; +typedef enum { + SPLIT_NONE = 0, + SPLIT_VERT, + SPLIT_HOR, + SPLIT_QUAD, +} ImageSplitMode; + +#define MAX_SPLIT_IMAGES 4 + typedef struct _ImageLoader ImageLoader; typedef struct _ThumbLoader ThumbLoader; @@ -233,6 +242,7 @@ GtkWidget *widget; /* use this to add it and show it */ GtkWidget *pr; GtkWidget *frame; + GtkWidget *inner_frame; gchar *image_path; const gchar *image_name; @@ -343,6 +353,14 @@ ImageWindow *image; + ImageWindow *split_images[MAX_SPLIT_IMAGES]; + ImageSplitMode split_mode; + gint active_split_image; + + GtkWidget *split_image_widget; + + gint connect_zoom, connect_scroll; + /* tools window (float) */ GtkWidget *tools;