#include "color.h"
#include <glade/glade.h>
#include "gui.h"
+#include "menucallbacks.h"
#include "string.h"
#include "topview.h"
#include "gltemplate.h"
/* Forward declarations */
+#ifdef UNUSED
static int init_object_custom_data(Agraph_t * graph, void *obj);
static void refresh_borders(Agraph_t* g);
+#endif
#define countof( array ) ( sizeof( array )/sizeof( array[0] ) )
GtkMessageDialog *Dlg;
int respond;
+#ifdef UNUSED
static int mapbool(char *p)
{
if (p == NULL)
return TRUE;
return atoi(p);
}
+#endif
void clear_viewport(ViewInfo * view)
{
- int ind = 0;
/*free topview if there is one */
if (view->activeGraph >= 0)
cleartopview(view->Topview);
int close_graph(ViewInfo * view,int graphid)
{
- int ind=0;
- int modified=0;
if (view->activeGraph < 0)
return 1;
fill_key(view->final_key,get_md5_key(view->g[graphid]));
#endif
}
+static gboolean gl_main_expose(gpointer data) {
+ if (view->activeGraph >= 0)
+ {
+ if(view->Topview->animate==1)
+ expose_event(view->drawing_area, NULL, NULL);
+ return 1;
+ }
+ return 0;
+}
+
void init_viewport(ViewInfo * view)
{
char *template_file;
agattr(graph, AGRAPH, "GraphFileName",view->Topview->Graphdata.GraphFileName);
}
+#ifdef UNUSED
/* clear_object_xdot:
* clear single object's xdot info
*/
}
+#endif
/* create_xdot_for_graph:
* Returns temp filename for output data
* or NULL on error.
#define DOTTEMP "/tmp/_dotXXXXXX"
#define XDOTTEMP "/tmp/_xdotXXXXXX"
+#ifdef UNUSED
/* mkTemp:
* Given a template string buf of the form abcdXXXXX,
* and its size bufsz, replace the X's by characters creating
return 0;
}
}
+#endif
#endif
preparetopview(g, view->Topview);
return g;
}
+#ifdef UNUSED
static void refresh_borders(Agraph_t* g)
{
sscanf(agget(g,"bb"),"%f,%f,%f,%f",&(view->bdxLeft),&(view->bdyBottom),&(view->bdxRight),&(view->bdyTop));
}
+#endif
int append_to_md5(void *chan, char *str)
{
- md5_append(&pms,str,(int)strlen(str));
+ md5_append(&pms,(unsigned char*)str,(int)strlen(str));
return 1;
}
}
}
+#ifdef UNUSED
static char *move_xdot(void *obj, xdot * x, int dx, int dy, int dz)
{
int i = 0;
}
-#ifdef UNUSED
static char *offset_spline(xdot * x, float dx, float dy, float headx,
float heady)
{
void glexpose(void) {
expose_event(view->drawing_area, NULL, NULL);
}
-int gl_main_expose(void) {
- if (view->activeGraph >= 0)
- {
- if(view->Topview->animate==1)
- expose_event(view->drawing_area, NULL, NULL);
- return 1;
- }
-}
-
/*following code does not do what i like it to do*/
/*I liked to have a please wait window on the screen all i got was the outer borders of the window