Mercurial > hg > tony
comparison src/MainWindow.cpp @ 156:8571ad52349a
rearragned son/viz controls
author | Justin Salamon <justin.salamon@nyu.edu> |
---|---|
date | Wed, 22 Jan 2014 17:08:00 -0500 |
parents | cdc9d5f7978c |
children | 752870e80dff |
comparison
equal
deleted
inserted
replaced
155:3a4bb7e3c582 | 156:8571ad52349a |
---|---|
703 toolbar->addWidget(m_playSpeed); | 703 toolbar->addWidget(m_playSpeed); |
704 toolbar->addWidget(m_fader); | 704 toolbar->addWidget(m_fader); |
705 | 705 |
706 toolbar = addToolBar(tr("Show and Play")); | 706 toolbar = addToolBar(tr("Show and Play")); |
707 | 707 |
708 /* ORIGINAL DESIGN | |
708 QLabel *eye = new QLabel; | 709 QLabel *eye = new QLabel; |
709 eye->setFixedWidth(40); | 710 eye->setFixedWidth(40); |
710 eye->setAlignment(Qt::AlignRight | Qt::AlignVCenter); | 711 eye->setAlignment(Qt::AlignRight | Qt::AlignVCenter); |
711 eye->setPixmap(il.loadPixmap("eye")); | 712 eye->setPixmap(il.loadPixmap("eye")); |
712 toolbar->addWidget(eye); | 713 toolbar->addWidget(eye); |
749 | 750 |
750 m_playNotes = toolbar->addAction(il.load("notes"), tr("Play Notes")); | 751 m_playNotes = toolbar->addAction(il.load("notes"), tr("Play Notes")); |
751 m_playNotes->setCheckable(true); | 752 m_playNotes->setCheckable(true); |
752 connect(m_playNotes, SIGNAL(triggered()), this, SLOT(playNotesToggled())); | 753 connect(m_playNotes, SIGNAL(triggered()), this, SLOT(playNotesToggled())); |
753 connect(this, SIGNAL(canPlay(bool)), m_playNotes, SLOT(setEnabled(bool))); | 754 connect(this, SIGNAL(canPlay(bool)), m_playNotes, SLOT(setEnabled(bool))); |
755 */ | |
756 | |
757 // Audio | |
758 QLabel *icon_audio = new QLabel; | |
759 icon_audio->setFixedWidth(40); | |
760 icon_audio->setAlignment(Qt::AlignRight | Qt::AlignVCenter); | |
761 icon_audio->setPixmap(il.loadPixmap("waveform")); | |
762 toolbar->addWidget(icon_audio); | |
763 | |
764 m_showAudio = toolbar->addAction(il.load("eye"), tr("Show Audio")); | |
765 m_showAudio->setCheckable(true); | |
766 connect(m_showAudio, SIGNAL(triggered()), this, SLOT(showAudioToggled())); | |
767 connect(this, SIGNAL(canPlay(bool)), m_showAudio, SLOT(setEnabled(bool))); | |
768 | |
769 m_playAudio = toolbar->addAction(il.load("speaker"), tr("Play Audio")); | |
770 m_playAudio->setCheckable(true); | |
771 connect(m_playAudio, SIGNAL(triggered()), this, SLOT(playAudioToggled())); | |
772 connect(this, SIGNAL(canPlay(bool)), m_playAudio, SLOT(setEnabled(bool))); | |
773 | |
774 // Pitch (f0) | |
775 QLabel *icon_pitch = new QLabel; | |
776 icon_pitch->setFixedWidth(40); | |
777 icon_pitch->setAlignment(Qt::AlignRight | Qt::AlignVCenter); | |
778 icon_pitch->setPixmap(il.loadPixmap("values")); | |
779 toolbar->addWidget(icon_pitch); | |
780 | |
781 m_showPitch = toolbar->addAction(il.load("eye"), tr("Show Pitch Track")); | |
782 m_showPitch->setCheckable(true); | |
783 connect(m_showPitch, SIGNAL(triggered()), this, SLOT(showPitchToggled())); | |
784 connect(this, SIGNAL(canPlay(bool)), m_showPitch, SLOT(setEnabled(bool))); | |
785 | |
786 m_playPitch = toolbar->addAction(il.load("speaker"), tr("Play Pitch Track")); | |
787 m_playPitch->setCheckable(true); | |
788 connect(m_playPitch, SIGNAL(triggered()), this, SLOT(playPitchToggled())); | |
789 connect(this, SIGNAL(canPlay(bool)), m_playPitch, SLOT(setEnabled(bool))); | |
790 | |
791 //toolbar->addWidget(m_volumePitch); | |
792 | |
793 // Notes | |
794 QLabel *icon_notes = new QLabel; | |
795 icon_notes->setFixedWidth(40); | |
796 icon_notes->setAlignment(Qt::AlignRight | Qt::AlignVCenter); | |
797 icon_notes->setPixmap(il.loadPixmap("notes")); | |
798 toolbar->addWidget(icon_notes); | |
799 | |
800 m_showNotes = toolbar->addAction(il.load("eye"), tr("Show Notes")); | |
801 m_showNotes->setCheckable(true); | |
802 connect(m_showNotes, SIGNAL(triggered()), this, SLOT(showNotesToggled())); | |
803 connect(this, SIGNAL(canPlay(bool)), m_showNotes, SLOT(setEnabled(bool))); | |
804 | |
805 m_playNotes = toolbar->addAction(il.load("speaker"), tr("Play Notes")); | |
806 m_playNotes->setCheckable(true); | |
807 connect(m_playNotes, SIGNAL(triggered()), this, SLOT(playNotesToggled())); | |
808 connect(this, SIGNAL(canPlay(bool)), m_playNotes, SLOT(setEnabled(bool))); | |
809 | |
810 // Spectrogram | |
811 QLabel *icon_spectrogram = new QLabel; | |
812 icon_spectrogram->setFixedWidth(40); | |
813 icon_spectrogram->setAlignment(Qt::AlignRight | Qt::AlignVCenter); | |
814 icon_spectrogram->setPixmap(il.loadPixmap("spectrogram")); | |
815 toolbar->addWidget(icon_spectrogram); | |
816 | |
817 m_showSpect = toolbar->addAction(il.load("eye"), tr("Show Spectrogram")); | |
818 m_showSpect->setCheckable(true); | |
819 connect(m_showSpect, SIGNAL(triggered()), this, SLOT(showSpectToggled())); | |
820 connect(this, SIGNAL(canPlay(bool)), m_showSpect, SLOT(setEnabled(bool))); | |
754 | 821 |
755 Pane::registerShortcuts(*m_keyReference); | 822 Pane::registerShortcuts(*m_keyReference); |
756 } | 823 } |
757 | 824 |
758 void | 825 void |