void fitmode_choicehandler(Evas *e, Evas_Object *parent,int choice, bool lp) { if(get_fit_mode()!=choice) { set_fit_mode(choice); update_label(e,preferenceschoicebox,4,FIT_STRINGS[choice]); evas_object_focus_set(choicebox_get_parent(e,parent),1); fini_choicebox(e,parent,false); show_cur_page(); } }
//bottom trimming entrybox void bottomtrim_entryhandler(Evas *e, Evas_Object *obj,char *value) { if(value) { long numval=strtol(value,NULL,10); set_bottomtrim((int)numval); char *tempo; asprintf(&tempo,"%spx",value); update_label(e,trimmingchoicebox,3,tempo); free(tempo); free(value); show_cur_page(); } }
void preferences_choicehandler(Evas *e, Evas_Object *parent,int choice, bool lp) { if(choice==0) { char *startval; asprintf(&startval,"%d",(int)(get_hpan_inc()*100)); HPanEntry(e,parent,startval); free(startval); } else if(choice==1) { char *startval; asprintf(&startval,"%d",(int)(get_vpan_inc()*100)); VPanEntry(e,parent,startval); free(startval); } else if(choice==2) { TrimmingDialog(e,parent); } else if(choice==3) { char *startval; asprintf(&startval,"%d",(int)(get_zoom_inc()*100)); ZoomEntry(e,parent,startval); free(startval); } else if(choice==4) { FitModeDialog(e,parent); } else if(choice==5) { set_antialias_mode(!get_antialias_mode()); update_label(e,preferenceschoicebox,5,OFF_ON_STRINGS[get_antialias_mode()]); show_cur_page(); } else if(choice==6) { set_reader_mode(!get_reader_mode()); update_label(e,preferenceschoicebox,6,OFF_ON_STRINGS[get_reader_mode()]); } }
void tex::show_activities () { int a; int m; list *p; *nest_ptr = cur_list; print_nl(null_str); print_ln(); for (p = nest_ptr; p >= nest; decr(p)) { m = p->mode_field; a = p->aux_field; print_nl("### "); print_mode(m); print(" entered at line "); print_int(abs(p->ml_field)); if (m == HMODE) { if (p->lhm_field != 2 || p->rhm_field != 3) { print(" (hyphenmin "); print_int(p->lhm_field); print(","); print_int(p->rhm_field); print(")"); } } if (p->ml_field < 0) { print(" (\\output routine)"); } if (p == nest) { show_cur_page(); if (link(contrib_head) != null) print_nl("### recent contributions:"); } show_box(link(p->head_field)); switch (abs(m) / (MAX_COMMAND + 1)) { case 0: print_nl("prevdepth "); if (a <= IGNORE_DEPTH) { print("ignored"); } else { print_scaled(a); } if (p->pg_field != 0) { print(", prevgraf "); print_int(p->pg_field); print(" line"); if (p->pg_field != 1) print("s"); } break; case 1: print_nl("spacefactor "); print_int(a); if (m > 0 && p->clang_field > 0) { print(", current language "); print_int(p->clang_field); } break; case 2: if (a != null) { print_nl("this will be denominator of:"); show_box(a); } break; } } }