Exemple #1
0
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, &params );

	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
		)
	 );

}
Exemple #2
0
void TodoView::sortCompleted()
{
  QStrList tmpList = makeStrList(COMPLETED);
  clear();
  appendStrList(&tmpList);
}
Exemple #3
0
void TodoView::sortDescription()
{
  QStrList tmpList = makeStrList(DESCRIPTION);
  clear();
  appendStrList(&tmpList);
}
Exemple #4
0
void TodoView::sortPriority()
{
  QStrList tmpList = makeStrList(PRIORITY);
  clear();
  appendStrList(&tmpList);
}