Lines Matching defs:cc

966     ConnectorTool *cc = SP_CONNECTOR_CONTEXT(
976 cc->active_handle = knot;
991 if (cc) {
992 cc->active_handle = NULL;
1013 endpt_handler(SPKnot */*knot*/, GdkEvent *event, ConnectorTool *cc)
1015 //g_assert( SP_IS_CONNECTOR_CONTEXT(cc) );
1021 g_assert( (cc->active_handle == cc->endpt_handle[0]) ||
1022 (cc->active_handle == cc->endpt_handle[1]) );
1023 if (cc->state == SP_CONNECTOR_CONTEXT_IDLE) {
1024 cc->clickeditem = cc->active_conn;
1025 cc->clickedhandle = cc->active_handle;
1026 cc->cc_clear_active_conn();
1027 cc->state = SP_CONNECTOR_CONTEXT_REROUTING;
1030 unsigned ind = (cc->active_handle == cc->endpt_handle[0]) ? 0 : 1;
1031 sp_conn_end_detach(cc->clickeditem, ind);
1034 if (cc->clickedhandle == cc->endpt_handle[0]) {
1035 origin = cc->endpt_handle[1]->pos;
1038 origin = cc->endpt_handle[0]->pos;
1042 cc->red_curve = SP_PATH(cc->clickeditem)->get_curve_for_edit();
1043 Geom::Affine i2d = (cc->clickeditem)->i2dt_affine();
1044 cc->red_curve->transform(i2d);
1045 sp_canvas_bpath_set_bpath(SP_CANVAS_BPATH(cc->red_bpath), cc->red_curve);
1047 cc->clickeditem->setHidden(true);
1237 void cc_create_connection_point(ConnectorTool* cc)
1239 if (cc->active_shape && cc->state == SP_CONNECTOR_CONTEXT_IDLE)
1241 if (cc->selected_handle)
1243 cc_deselect_handle( cc->selected_handle );
1246 SPKnot *knot = new SPKnot(cc->desktop, 0);
1255 cc->selected_handle = knot;
1256 cc->selected_handle->show();
1257 cc->state = SP_CONNECTOR_CONTEXT_NEWCONNPOINT;
1357 ConnectorTool *cc = SP_CONNECTOR_CONTEXT(data);
1359 if (child == cc->active_shape_repr) {
1361 cc->cc_clear_active_shape();
1372 ConnectorTool *cc = SP_CONNECTOR_CONTEXT(data);
1379 if (repr == cc->active_shape_repr) {
1381 cc->cc_clear_active_shape();
1383 else if (repr == cc->active_conn_repr) {
1386 cc->cc_set_active_conn(cc->active_conn);