noinst_HEADERS = btree.h draw.h filter.h glexpose.h glmotion.h gltemplate.h \
hier.h materials.h selection.h smyrnadefs.h support.h topview.h \
- topviewdata.h topviewdefs.h trackball.h tvnodes.h viewport.h \
+ topviewdata.h topviewdefs.h trackball.h tvnodes.h viewport.h hotkeymap.h \
topfisheyeview.h viewportcamera.h gvprpipe.h md5.h drawxdot.h arcball.h \
gui/beacon.h gui/callbacks.h gui/datalistcallbacks.h gui/filterscallbacks.h \
gui/frmobjectui.h gui/glcompui.h gui/gui.h gui/menucallbacks.h \
- gui/toolboxcallbacks.h gui/topviewsettings.h gui/appmouse.h hotkeymap.h
+ gui/toolboxcallbacks.h gui/topviewsettings.h gui/appmouse.h
smyrna_SOURCES = btree.c draw.c filter.c glexpose.c glmotion.c gltemplate.c \
hier.c main.c selection.c support.c template.c topview.c topviewdata.c \
topfisheyeview.c trackball.c tvnodes.c viewport.c viewportcamera.c \
- gvprpipe.c md5.c drawxdot.c arcball.c \
+ gvprpipe.c md5.c drawxdot.c arcball.c hotkeymap.c \
gui/beacon.c gui/callbacks.c gui/datalistcallbacks.c gui/filterscallbacks.c \
gui/frmobjectui.c gui/glcompui.c gui/gui.c gui/menucallbacks.c \
- gui/toolboxcallbacks.c gui/topviewsettings.c gui/appmouse.c hotkeymap.c
+ gui/toolboxcallbacks.c gui/topviewsettings.c gui/appmouse.c
smyrna_LDADD = $(top_builddir)/lib/cgraph/libcgraph_C.la \
$(top_builddir)/lib/cdt/libcdt_C.la \
}
-int sample_tree()
+int sample_tree(void)
{
btree_node *root;
btree_node *n;
char *b_cursor = 0;
char *c_cursor;
char op = '\0';
- char last_char;
+ char last_char = '\0';
root = new_node("R", "", 0, 0);
cursor = root;
c_cursor = filter_string;
#include "viewport.h"
#include "topfisheyeview.h"
#include "appmouse.h"
+#include "hotkeymap.h"
//delta values
static float dx = 0.0;
#include "topfisheyeview.h"
#include "gui/toolboxcallbacks.h"
#include "arcball.h"
+#include "hotkeymap.h"
void drawRotatingAxis(void);
void draw_cube()
}
}
else
- return;
+ return 0;
glexpose_grid(view);
draw_fisheye_magnifier(view);
}
}
-*/
\ No newline at end of file
+*/
#include "draw.h"
#include "topview.h"
#include "glutils.h"
+#include "hotkeymap.h"
gboolean redraw = FALSE;
#include "topview.h"
#include "glmotion.h"
#include "beacon.h"
+#include "hotkeymap.h"
+#include "selection.h"
static float prevX=0;
else
return strdup(src);
}
-static int get_object_type()
+static int get_object_type(void)
{
if(gtk_toggle_button_get_active((GtkToggleButton*)glade_xml_get_widget(xml, "attrRB0")))
return AGRAPH;
}
-attr_t* new_attr()
+attr_t* new_attr(void)
{
attr_t* attr=malloc(sizeof(attr_t));
attr->defValG=(char*)0;
}
/**/
-static void set_header_text()
+static void set_header_text(void)
{
int nodeCnt;
int edgeCnt;
extern attr_list* attr_list_new(Agraph_t * g,int with_widgets );
extern void attr_list_add(attr_list* l,attr_t* a);
extern void free_attr_list(attr_list* l);
-extern attr_list* load_attr_list();
extern void filter_attributes(char* prefix,topview* t);
_BB void on_txtAttr_changed(GtkWidget * widget, gpointer user_data);
#include "topfisheyeview.h"
#include "toolboxcallbacks.h"
#include "viewportcamera.h"
+#include "selection.h"
#include "frmobjectui.h"
extern int load_settings_from_graph(Agraph_t * g);
extern int update_graph_from_settings(Agraph_t * g);
- extern int show_settings_form();
+ extern int show_settings_form(void);
#ifdef __cplusplus
} /* end extern "C" */
if ((view->mouse.t==MOUSE_BUTTON_2)&&(view->mouse.down) )
return MM_RECTANGULAR_SELECT;
+ return 0;
}
#include "colorprocs.h"
#include <assert.h>
#include "frmobjectui.h"
+#include "hotkeymap.h"
static float dx = 0.0;
static float dy = 0.0;
static float dz = 0.0;
{
float delX,delY;
topview_node *v;
- static flag=0;
+ static int flag=0;
int ind = 0;
if (!flag)
{
// printf ("dragx:%f dragy:%f\n",view->mouse.dragX,view->mouse.dragY);
flag=1;
- return;
+ return 0;
}
delX = GetOGLDistance((int) view->mouse.dragX);
extern "C" {
#endif
- void cleartopview(topview * t);
- void preparetopview(Agraph_t * g, topview * t);
- void update_topview(Agraph_t * g, topview * t, int init);
- void drawTopViewGraph(Agraph_t * g);
- int move_TVnodes(void);
- void local_zoom(topview * t);
- void originate_distorded_coordinates(topview * t);
- float calcfontsize(float totaledgelength, int totallabelsize,
+ extern void cleartopview(topview * t);
+ extern void preparetopview(Agraph_t * g, topview * t);
+ extern void update_topview(Agraph_t * g, topview * t, int init);
+ extern void drawTopViewGraph(Agraph_t * g);
+ extern int move_TVnodes(void);
+ extern void local_zoom(topview * t);
+ extern void originate_distorded_coordinates(topview * t);
+ extern float calcfontsize(float totaledgelength, int totallabelsize,
int edgecount, int totalnodecount);
- void select_with_regex(char *exp);
- void settvcolorinfo(Agraph_t * g, topview * t);
- void setMultiedges(Agraph_t * g, char *attrname);
+ extern void select_with_regex(char *exp);
+ extern void settvcolorinfo(Agraph_t * g, topview * t);
+ extern void setMultiedges(Agraph_t * g, char *attrname);
#ifdef __cplusplus
} /* end extern "C" */
return 1;
}
-static void get_data_dir()
+static void get_data_dir(void)
{
if (view->template_file) {
free(view->template_file);
}
-void test_color_pallete()
+void test_color_pallete(void)
{
int ind = 0;
float xGAP = 5;