Exemple #1
0
ErrorModel::ErrorModel(sequencer::baseImporter* importer, QObject *parent)
     : QAbstractTableModel(parent)
{
    // load the events from the supplied importer (if one is suplied)
    events.clear();
    if (importer!=NULL) loadErrors(importer);

    // test code:
    /*sequencer::bi_event e;

    e.type=sequencer::biInfo;
    e.text="info message";
    e.num=0;
    e.position=1;
    e.time=-1;
    e.filename="test.sdff";
    events.push_back(e);

    e.type=sequencer::biError;
    e.text="error message\nwith two lines";
    e.num=2;
    e.position=2;
    e.time=5.548;
    e.filename="test2.sdff";
    events.push_back(e);

    e.type=sequencer::biWarning;
    e.text="warning message";
    e.num=3;
    e.position=3;
    e.time=8.54e-4;
    e.filename="test3.sdff";
    events.push_back(e);*/
}
Exemple #2
0
/*
 * Initialize the ES.  Read builtin data into ES.
 */
esinit()
{
	FILE	*f;
	int ret;
#ifndef OLMSG
	static char	esiErr[] =	"Error reading /config/abbuiltin";
#endif

	printt0("esinit()\n");

	allocES();			/* alloc segment and set ES */

	if ((f = fopen(ESBUILTIN, "r")) == NULL || loadBuiltin(f)
					|| loadStrings(f) || loadErrors(f))
		error(ER(57,esiErr));
	fclose(f);
	printt0( "es init finished\n" );

}