Mercurial > hg > svgui
comparison layer/Layer.h @ 583:4c484636d5ec
Record and show any error that occurs during layer processing (e.g. spectrogram layer runs out of disc space for feature files)
author | Chris Cannam |
---|---|
date | Thu, 14 Apr 2011 15:21:21 +0100 |
parents | 2e8194a30f40 |
children | 7ebd5a21d74f 5b72899d692b |
comparison
equal
deleted
inserted
replaced
582:bde4aa56862b | 583:4c484636d5ec |
---|---|
337 * isReady(int *) call. The view may choose to show a progress | 337 * isReady(int *) call. The view may choose to show a progress |
338 * meter if it finds that this returns < 100 at any given moment. | 338 * meter if it finds that this returns < 100 at any given moment. |
339 */ | 339 */ |
340 virtual int getCompletion(View *) const { return 100; } | 340 virtual int getCompletion(View *) const { return 100; } |
341 | 341 |
342 /** | |
343 * Return an error string if any errors have occurred while | |
344 * loading or processing data for the given view. Return the | |
345 * empty string if no error has occurred. | |
346 */ | |
347 virtual QString getError(View *) const { return ""; } | |
348 | |
342 virtual void setObjectName(const QString &name); | 349 virtual void setObjectName(const QString &name); |
343 | 350 |
344 /** | 351 /** |
345 * Convert the layer's data (though not those of the model it | 352 * Convert the layer's data (though not those of the model it |
346 * refers to) into XML for file output. This class implements the | 353 * refers to) into XML for file output. This class implements the |