[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: CVS update: defines.h
User: cnieves
Date: 05/10/28 18:26:33
Modified: . defines.h prototype.h struct.h
Log:
Added support for backup copies and autosaving.
Autosaving is done every "interval" seconds (configurable
through system-gschemrc).
Revision Changes Path
1.50 +3 -0 eda/geda/devel/libgeda/include/defines.h
(In the diff below, changes in quantity of whitespace are not shown.)
Index: defines.h
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/libgeda/include/defines.h,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -b -r1.49 -r1.50
--- defines.h 15 Aug 2005 01:26:51 -0000 1.49
+++ defines.h 28 Oct 2005 22:26:33 -0000 1.50
@@ -357,6 +357,9 @@
#define FLOAT_PIN 2
#define DUP_NET_NAME 4
+/* Max level of symlinks */
+#define MAX_LINK_LEVEL 256
+
#if defined(__MINGW32__) && !defined(M_PI)
#define M_PI 3.14159265358979323846
#endif
1.98 +2 -0 eda/geda/devel/libgeda/include/prototype.h
(In the diff below, changes in quantity of whitespace are not shown.)
Index: prototype.h
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/libgeda/include/prototype.h,v
retrieving revision 1.97
retrieving revision 1.98
diff -u -b -r1.97 -r1.98
--- prototype.h 30 Sep 2005 22:01:52 -0000 1.97
+++ prototype.h 28 Oct 2005 22:26:33 -0000 1.98
@@ -12,6 +12,7 @@
int f_save(TOPLEVEL *w_current, const char *filename);
char* f_get_directory_from_path(char *path);
char* f_normalize_filename(const gchar *filename);
+char *follow_symlinks (const gchar *filename, GError **error);
/* f_image.c */
void f_image_write_objects(TOPLEVEL *w_current, OBJECT *head, int start_x, int start_y, float scale, int color_mode);
@@ -559,6 +560,7 @@
gint s_page_save_all (TOPLEVEL *toplevel);
gboolean s_page_check_changed (PAGE *head);
void s_page_clear_changed (PAGE *head);
+gint s_page_autosave (TOPLEVEL *w_current);
/* s_papersizes.c */
int s_papersizes_add_entry(char *new_papersize, int width, int height);
1.77 +10 -0 eda/geda/devel/libgeda/include/struct.h
(In the diff below, changes in quantity of whitespace are not shown.)
Index: struct.h
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/libgeda/include/struct.h,v
retrieving revision 1.76
retrieving revision 1.77
diff -u -b -r1.76 -r1.77
--- struct.h 5 Oct 2005 17:46:58 -0000 1.76
+++ struct.h 28 Oct 2005 22:26:33 -0000 1.77
@@ -393,6 +393,11 @@
/* used to control which pages are viewable when moving around */
int page_control;
+ /* backup variables */
+ GTimeVal last_load_or_save_time;
+ char saved_since_first_loaded;
+ gint ops_since_last_backup;
+
/* left to right movement */
PAGE *prev;
PAGE *next;
@@ -665,6 +670,11 @@
int pin_color;
int text_color;
+ /* backup variables */
+ int auto_save_interval;
+ gint auto_save_timeout;
+
+
/* not used anywhere yet, but will be */
int logic_bubble_color;
int zoom_box_color;