File: settings.h

package info (click to toggle)
xmorph 1%3A20060817
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 5,688 kB
  • ctags: 2,022
  • sloc: ansic: 19,988; sh: 9,418; cpp: 1,230; makefile: 560; sed: 16
file content (48 lines) | stat: -rw-r--r-- 1,173 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef _SETTINGS_H_
#define _SETTINGS_H_


//typedef enum _editview_t editview_t;


/* this reflects the optionmenu by the same name */

typedef enum   {  
  EDITVIEW_EDIT=0, /* edit mesh on loaded image */
  EDITVIEW_SHOW=1, /* show warped image without meshes
                      dont edit (unless we arein the resulting image)*/
  //EDITVIEW_FEATURES=4, /* edit features */
  EDITVIEW_SHOWMESHES=2, /* show warped image with both meshes
                            dont edit*/
  //EDITVIEW_SHOWANIM=5,
  /* animate mesh from normal
     to warped, on fixed  images;
     dont edit (NOT IMPLEMENTED)*/

  /* this one has a different meaning in the "resulting image" window */
  EDITVIEW_EYES=3  /*change the position of the eyes points, or, 
		    select subimage*/
} editview_t;


GtkWidget*
create_gtkmorph_menuSettings (void);

int
settings_get_value(char *name);
int
settings_set_value(char *name, int val);

GtkWidget*
create_image_menu_settings (int i);

int
image_settings_get_value(char *name, int i);

int
image_settings_set_value(char *name, int i, int value);

void
gtkmorph_settings_callback(GtkWidget* thismenu, gpointer userdata);

#endif //_SETTINGS_H_