Mercurial > hg > sonic-visualiser
comparison main/MainWindow.cpp @ 261:2b4a4b8c465a
* A bit more work on the data editor
author | Chris Cannam |
---|---|
date | Wed, 11 Jun 2008 12:54:18 +0000 |
parents | 1a1c764ea636 |
children | d55e4c0f7d9e |
comparison
equal
deleted
inserted
replaced
260:1a1c764ea636 | 261:2b4a4b8c465a |
---|---|
41 #include "widgets/PropertyBox.h" | 41 #include "widgets/PropertyBox.h" |
42 #include "widgets/PropertyStack.h" | 42 #include "widgets/PropertyStack.h" |
43 #include "widgets/AudioDial.h" | 43 #include "widgets/AudioDial.h" |
44 #include "widgets/IconLoader.h" | 44 #include "widgets/IconLoader.h" |
45 #include "widgets/LayerTreeDialog.h" | 45 #include "widgets/LayerTreeDialog.h" |
46 #include "widgets/ModelDataTableDialog.h" | |
47 #include "widgets/ListInputDialog.h" | 46 #include "widgets/ListInputDialog.h" |
48 #include "widgets/SubdividingMenu.h" | 47 #include "widgets/SubdividingMenu.h" |
49 #include "widgets/NotifyingPushButton.h" | 48 #include "widgets/NotifyingPushButton.h" |
50 #include "widgets/KeyReference.h" | 49 #include "widgets/KeyReference.h" |
51 #include "widgets/LabelCounterInputDialog.h" | 50 #include "widgets/LabelCounterInputDialog.h" |
208 | 207 |
209 m_playSpeed = new AudioDial(frame); | 208 m_playSpeed = new AudioDial(frame); |
210 m_playSpeed->setMinimum(0); | 209 m_playSpeed->setMinimum(0); |
211 m_playSpeed->setMaximum(200); | 210 m_playSpeed->setMaximum(200); |
212 m_playSpeed->setValue(100); | 211 m_playSpeed->setValue(100); |
213 m_playSpeed->setFixedWidth(24); | 212 m_playSpeed->setFixedWidth(32); |
214 m_playSpeed->setFixedHeight(24); | 213 m_playSpeed->setFixedHeight(32); |
215 m_playSpeed->setNotchesVisible(true); | 214 m_playSpeed->setNotchesVisible(true); |
216 m_playSpeed->setPageStep(10); | 215 m_playSpeed->setPageStep(10); |
217 m_playSpeed->setObjectName(tr("Playback Speedup")); | 216 m_playSpeed->setObjectName(tr("Playback Speedup")); |
218 m_playSpeed->setDefaultValue(100); | 217 m_playSpeed->setDefaultValue(100); |
219 m_playSpeed->setRangeMapper(new PlaySpeedRangeMapper(0, 200)); | 218 m_playSpeed->setRangeMapper(new PlaySpeedRangeMapper(0, 200)); |
3039 if (ok) { | 3038 if (ok) { |
3040 layer->setPresentationName(newName); | 3039 layer->setPresentationName(newName); |
3041 setupExistingLayersMenus(); | 3040 setupExistingLayersMenus(); |
3042 } | 3041 } |
3043 } | 3042 } |
3044 } | |
3045 } | |
3046 | |
3047 void | |
3048 MainWindow::editCurrentLayer() | |
3049 { | |
3050 //!!! maintain one per layer only | |
3051 | |
3052 Pane *pane = m_paneStack->getCurrentPane(); | |
3053 if (pane) { | |
3054 Layer *layer = pane->getSelectedLayer(); | |
3055 if (layer) { | |
3056 Model *model = layer->getModel(); | |
3057 if (model) { | |
3058 | |
3059 ModelDataTableDialog *dialog = new ModelDataTableDialog(model); | |
3060 dialog->setAttribute(Qt::WA_DeleteOnClose); | |
3061 connect(m_viewManager, | |
3062 SIGNAL(globalCentreFrameChanged(unsigned long)), | |
3063 dialog, SLOT(scrollToFrame(unsigned long))); | |
3064 connect(m_viewManager, | |
3065 SIGNAL(playbackFrameChanged(unsigned long)), | |
3066 dialog, SLOT(scrollToFrame(unsigned long))); | |
3067 dialog->show(); | |
3068 return; | |
3069 } | |
3070 } | |
3071 } | 3043 } |
3072 } | 3044 } |
3073 | 3045 |
3074 void | 3046 void |
3075 MainWindow::playSoloToggled() | 3047 MainWindow::playSoloToggled() |