Mercurial > hg > sonic-visualiser
comparison main/main.cpp @ 7:c3ef80114040
* Add zoom thumbwheels to Pane. Implement horizontal thumbwheel, and
vertical depending on layer type (supported for waveform and spectrogram,
though wrong for log-scale spectrogram at the moment).
* Add bare bones of a spectrum layer.
* Add window icon
* Add shortcut for "insert time instant" on laptops without keypad enter (";")
* Delete FFT processing thread when it exits (at least, next time we're asked
for something interesting)
* Get audio file extensions from the file readers, and thus from libsndfile for
the wave file reader -- leads to rather a wide combo box in file dialog though
* Better refresh order for spectrogram (redraw centre section first)
author | Chris Cannam |
---|---|
date | Fri, 04 Aug 2006 17:01:37 +0000 |
parents | d4487202d0e8 |
children | 0dbd08e365ce |
comparison
equal
deleted
inserted
replaced
6:d4487202d0e8 | 7:c3ef80114040 |
---|---|
26 #include <QDesktopWidget> | 26 #include <QDesktopWidget> |
27 #include <QMessageBox> | 27 #include <QMessageBox> |
28 #include <QTranslator> | 28 #include <QTranslator> |
29 #include <QLocale> | 29 #include <QLocale> |
30 #include <QSettings> | 30 #include <QSettings> |
31 #include <QIcon> | |
31 | 32 |
32 #include <iostream> | 33 #include <iostream> |
33 #include <signal.h> | 34 #include <signal.h> |
34 | 35 |
35 //!!! catch trappable signals, cleanup temporary directory etc | 36 //!!! catch trappable signals, cleanup temporary directory etc |
64 svSystemSpecificInitialisation(); | 65 svSystemSpecificInitialisation(); |
65 | 66 |
66 QApplication::setOrganizationName("sonic-visualiser"); | 67 QApplication::setOrganizationName("sonic-visualiser"); |
67 QApplication::setOrganizationDomain("sonicvisualiser.org"); | 68 QApplication::setOrganizationDomain("sonicvisualiser.org"); |
68 QApplication::setApplicationName("sonic-visualiser"); | 69 QApplication::setApplicationName("sonic-visualiser"); |
70 | |
71 QApplication::setWindowIcon(QIcon(":icons/waveform.png")); | |
69 | 72 |
70 QString language = QLocale::system().name(); | 73 QString language = QLocale::system().name(); |
71 | 74 |
72 QTranslator qtTranslator; | 75 QTranslator qtTranslator; |
73 QString qtTrName = QString("qt_%1").arg(language); | 76 QString qtTrName = QString("qt_%1").arg(language); |