# HG changeset patch # User lbajardsilogic # Date 1179214543 0 # Node ID c14ebd0217af70d634863b8ee2b60b869713141a # Parent 50d04702da36a7c4190520141a039422932bb1e3 add a busy cursor and statusBar information during the decompression and loading of an audio file. diff -r 50d04702da36 -r c14ebd0217af data/model/WaveFileModel.cpp --- a/data/model/WaveFileModel.cpp Tue May 15 07:19:24 2007 +0000 +++ b/data/model/WaveFileModel.cpp Tue May 15 07:35:43 2007 +0000 @@ -32,6 +32,8 @@ //#define DEBUG_WAVE_FILE_MODEL 1 +#include "main/MainWindow.h" + using std::cerr; using std::endl; @@ -46,6 +48,8 @@ m_lastFillExtent(0), m_exiting(false) { + MainWindow::instance()->setCursor(Qt::BusyCursor); + MainWindow::instance()->statusBar()->showMessage(tr("Opening audio file...")); m_reader = AudioFileReaderFactory::createReader(path); setObjectName(QFileInfo(path).fileName()); if (isOK()) fillCache(); @@ -434,6 +438,8 @@ void WaveFileModel::cacheFilled() { + MainWindow::instance()->setCursor(Qt::ArrowCursor); + MainWindow::instance()->statusBar()->clearMessage(); m_mutex.lock(); delete m_fillThread; m_fillThread = 0;