/* static glCompPanel *controlPanel; */
/* static glCompButton *rotatebutton; */
static glCompPanel *sel = NULL;
-static glCompLabel *selLabel=NULL;
static glCompButton *to3DBtn;
static glCompButton *to2DBtn;
-static glCompButton *rotateBtn;
static glCompButton *toFisheye;
static glCompButton *toNormal;
static glCompImage *imgFisheye;
static glCompButton *panBtn;
-static void menu_click_pan(void *obj, GLfloat x, GLfloat y,
+static void menu_click_pan(glCompObj *obj, GLfloat x, GLfloat y,
glMouseButtonType t)
{
deselect_all(view->g[view->activeGraph]);
#endif
-static void menu_click_zoom_minus(void *obj, GLfloat x, GLfloat y,
+static void menu_click_zoom_minus(glCompObj *obj, GLfloat x, GLfloat y,
glMouseButtonType t)
{
glmotion_zoom_inc(0);
}
-static void menu_click_zoom_plus(void *obj, GLfloat x, GLfloat y,
+static void menu_click_zoom_plus(glCompObj *obj, GLfloat x, GLfloat y,
glMouseButtonType t)
{
glmotion_zoom_inc(1);
}
-static void menu_switch_to_fisheye(void *obj, GLfloat x, GLfloat y,
+static void menu_switch_to_fisheye(glCompObj *obj, GLfloat x, GLfloat y,
glMouseButtonType t)
{
if (!view->Topview->is_top_fisheye == 1) {
-static void menu_click_center(void *obj, GLfloat x, GLfloat y,
+static void menu_click_center(glCompObj *obj, GLfloat x, GLfloat y,
glMouseButtonType t)
{
if (view->active_camera == -1) { /*2D mode */
}
}
-static void switch2D3D(void *obj, GLfloat x, GLfloat y,
+static void switch2D3D(glCompObj *obj, GLfloat x, GLfloat y,
glMouseButtonType t)
{
if (t == glMouseLeftButton) {
}
-void CBglCompMouseUp(void *obj, GLfloat x, GLfloat y, glMouseButtonType t)
+void CBglCompMouseUp(glCompObj *obj, GLfloat x, GLfloat y, glMouseButtonType t)
{
/* glCompMouse* m=&((glCompSet*)obj)->mouse; */
sel->common.visible = 0;
}
-void CBglCompMouseRightClick(void *obj, GLfloat x, GLfloat y,
+
+void CBglCompMouseRightClick(glCompObj *obj, GLfloat x, GLfloat y,
glMouseButtonType t)
{
if (t == glMouseRightButton)
}
}
-void attrList(void *obj, GLfloat x, GLfloat y, glMouseButtonType t)
+void attrList(glCompObj *obj, GLfloat x, GLfloat y, glMouseButtonType t)
{
showAttrsWidget(view->Topview);
}
-void glCompMouseMove(void *obj, GLfloat x, GLfloat y)
+void glCompMouseMove(glCompObj *obj, GLfloat x, GLfloat y)
{
glCompMouse *m = &((glCompSet *) obj)->mouse;
static void select_topview_node(topview_node * n)
{
static float x1,y1,x2,y2,x,y;
- static int sel_type=0; /*0:select all , 1:only nodes 2:only edges*/
x=n->distorted_x;
y=n->distorted_y;
if(view->mouse.GLfinalPos.x > view->mouse.GLinitPos.x)
static void select_topview_edge(topview_edge* e)
{
static float x1,y1,x2,y2,n1x,n1y,n2x,n2y;
- static int sel_type=0; /*0:select all , 1:only nodes 2:only edges*/
n1x=e->Node1->distorted_x;
n1y=e->Node1->distorted_y;
n2x=e->Node2->distorted_x;