void doFigure ( char *pList ) { char name[ NAME_SIZE ]; int params; char flag[ FLAG_SIZE ]; Coord size; char line[ LINE_LEN ]; StrList *slp = allocStrList(); int l; sscanf ( pList, "%s %lf %lf %s %d", name, &size.x, &size.y, flag, ¶ms ); while ( readline_infile ( line, LINE_LEN ) != NULL ) { if ( isspace ( line[ 0 ] ) ) { appendStrList ( slp, line + 1 ); } else { unget_infile ( line ); break; } } if ( top == NULL ) { top = allocFigureList(); } insertFigureList ( top, allocFigure ( name, allocFlowCom ( name, params, size, str2bool(flag), DRAW ), slp ) ); }
void TodoView::sortCompleted() { QStrList tmpList = makeStrList(COMPLETED); clear(); appendStrList(&tmpList); }
void TodoView::sortDescription() { QStrList tmpList = makeStrList(DESCRIPTION); clear(); appendStrList(&tmpList); }
void TodoView::sortPriority() { QStrList tmpList = makeStrList(PRIORITY); clear(); appendStrList(&tmpList); }