@ -173,14 +173,14 @@ MatrixView::MatrixView(RosegardenGUIDoc *doc,
KDockWidget : : DockLeft , // dock site
KDockWidget : : DockLeft , // dock site
20 ) ; // relation target/this (in percent)
20 ) ; // relation target/this (in percent)
connect ( m_dockLeft , TQ T _SIGNAL( iMBeingClosed ( ) ) ,
connect ( m_dockLeft , TQ _SIGNAL( iMBeingClosed ( ) ) ,
this , TQ T _SLOT( slotParametersClosed ( ) ) ) ;
this , TQ _SLOT( slotParametersClosed ( ) ) ) ;
connect ( m_dockLeft , TQ T _SIGNAL( hasUndocked ( ) ) ,
connect ( m_dockLeft , TQ _SIGNAL( hasUndocked ( ) ) ,
this , TQ T _SLOT( slotParametersClosed ( ) ) ) ;
this , TQ _SLOT( slotParametersClosed ( ) ) ) ;
// Apparently, hasUndocked() is emitted when the dock widget's
// Apparently, hasUndocked() is emitted when the dock widget's
// 'close' button on the dock handle is clicked.
// 'close' button on the dock handle is clicked.
connect ( m_mainDockWidget , TQ T _SIGNAL( docking ( KDockWidget * , KDockWidget : : DockPosition ) ) ,
connect ( m_mainDockWidget , TQ _SIGNAL( docking ( KDockWidget * , KDockWidget : : DockPosition ) ) ,
this , TQ T _SLOT( slotParametersDockedBack ( KDockWidget * , KDockWidget : : DockPosition ) ) ) ;
this , TQ _SLOT( slotParametersDockedBack ( KDockWidget * , KDockWidget : : DockPosition ) ) ) ;
Composition & comp = doc - > getComposition ( ) ;
Composition & comp = doc - > getComposition ( ) ;
@ -188,8 +188,8 @@ MatrixView::MatrixView(RosegardenGUIDoc *doc,
initStatusBar ( ) ;
initStatusBar ( ) ;
connect ( m_toolBox , TQ T _SIGNAL( showContextHelp ( const TQString & ) ) ,
connect ( m_toolBox , TQ _SIGNAL( showContextHelp ( const TQString & ) ) ,
this , TQ T _SLOT( slotToolHelpChanged ( const TQString & ) ) ) ;
this , TQ _SLOT( slotToolHelpChanged ( const TQString & ) ) ) ;
TQCanvas * tCanvas = new TQCanvas ( this ) ;
TQCanvas * tCanvas = new TQCanvas ( this ) ;
@ -276,33 +276,33 @@ MatrixView::MatrixView(RosegardenGUIDoc *doc,
RosegardenGUIApp * app = RosegardenGUIApp : : self ( ) ;
RosegardenGUIApp * app = RosegardenGUIApp : : self ( ) ;
connect ( app ,
connect ( app ,
TQ T _SIGNAL( pluginSelected ( InstrumentId , int , int ) ) ,
TQ _SIGNAL( pluginSelected ( InstrumentId , int , int ) ) ,
m_parameterBox ,
m_parameterBox ,
TQ T _SLOT( slotPluginSelected ( InstrumentId , int , int ) ) ) ;
TQ _SLOT( slotPluginSelected ( InstrumentId , int , int ) ) ) ;
connect ( app ,
connect ( app ,
TQ T _SIGNAL( pluginBypassed ( InstrumentId , int , bool ) ) ,
TQ _SIGNAL( pluginBypassed ( InstrumentId , int , bool ) ) ,
m_parameterBox ,
m_parameterBox ,
TQ T _SLOT( slotPluginBypassed ( InstrumentId , int , bool ) ) ) ;
TQ _SLOT( slotPluginBypassed ( InstrumentId , int , bool ) ) ) ;
connect ( app ,
connect ( app ,
TQ T _SIGNAL( instrumentParametersChanged ( InstrumentId ) ) ,
TQ _SIGNAL( instrumentParametersChanged ( InstrumentId ) ) ,
m_parameterBox ,
m_parameterBox ,
TQ T _SLOT( slotInstrumentParametersChanged ( InstrumentId ) ) ) ;
TQ _SLOT( slotInstrumentParametersChanged ( InstrumentId ) ) ) ;
connect ( m_parameterBox ,
connect ( m_parameterBox ,
TQ T _SIGNAL( instrumentParametersChanged ( InstrumentId ) ) ,
TQ _SIGNAL( instrumentParametersChanged ( InstrumentId ) ) ,
app ,
app ,
TQ T _SIGNAL( instrumentParametersChanged ( InstrumentId ) ) ) ;
TQ _SIGNAL( instrumentParametersChanged ( InstrumentId ) ) ) ;
connect ( m_parameterBox ,
connect ( m_parameterBox ,
TQ T _SIGNAL( selectPlugin ( TQWidget * , InstrumentId , int ) ) ,
TQ _SIGNAL( selectPlugin ( TQWidget * , InstrumentId , int ) ) ,
app ,
app ,
TQ T _SLOT( slotShowPluginDialog ( TQWidget * , InstrumentId , int ) ) ) ;
TQ _SLOT( slotShowPluginDialog ( TQWidget * , InstrumentId , int ) ) ) ;
connect ( m_parameterBox ,
connect ( m_parameterBox ,
TQ T _SIGNAL( showPluginGUI ( InstrumentId , int ) ) ,
TQ _SIGNAL( showPluginGUI ( InstrumentId , int ) ) ,
app ,
app ,
TQ T _SLOT( slotShowPluginGUI ( InstrumentId , int ) ) ) ;
TQ _SLOT( slotShowPluginGUI ( InstrumentId , int ) ) ) ;
connect ( parent , // RosegardenGUIView
connect ( parent , // RosegardenGUIView
TQ T _SIGNAL( checkTrackAssignments ( ) ) ,
TQ _SIGNAL( checkTrackAssignments ( ) ) ,
this ,
this ,
TQ T _SLOT( slotCheckTrackAssignments ( ) ) ) ;
TQ _SLOT( slotCheckTrackAssignments ( ) ) ) ;
// Assign the instrument
// Assign the instrument
//
//
@ -310,9 +310,9 @@ MatrixView::MatrixView(RosegardenGUIDoc *doc,
if ( m_drumMode ) {
if ( m_drumMode ) {
connect ( m_parameterBox ,
connect ( m_parameterBox ,
TQ T _SIGNAL( instrumentPercussionSetChanged ( Instrument * ) ) ,
TQ _SIGNAL( instrumentPercussionSetChanged ( Instrument * ) ) ,
this ,
this ,
TQ T _SLOT( slotPercussionSetChanged ( Instrument * ) ) ) ;
TQ _SLOT( slotPercussionSetChanged ( Instrument * ) ) ) ;
}
}
// Set the snap grid from the stored size in the segment
// Set the snap grid from the stored size in the segment
@ -350,83 +350,83 @@ MatrixView::MatrixView(RosegardenGUIDoc *doc,
// Connect vertical scrollbars between matrix and piano
// Connect vertical scrollbars between matrix and piano
//
//
connect ( m_canvasView - > verticalScrollBar ( ) , TQ T _SIGNAL( valueChanged ( int ) ) ,
connect ( m_canvasView - > verticalScrollBar ( ) , TQ _SIGNAL( valueChanged ( int ) ) ,
this , TQ T _SLOT( slotVerticalScrollPianoKeyboard ( int ) ) ) ;
this , TQ _SLOT( slotVerticalScrollPianoKeyboard ( int ) ) ) ;
connect ( m_canvasView - > verticalScrollBar ( ) , TQ T _SIGNAL( sliderMoved ( int ) ) ,
connect ( m_canvasView - > verticalScrollBar ( ) , TQ _SIGNAL( sliderMoved ( int ) ) ,
this , TQ T _SLOT( slotVerticalScrollPianoKeyboard ( int ) ) ) ;
this , TQ _SLOT( slotVerticalScrollPianoKeyboard ( int ) ) ) ;
connect ( m_canvasView , TQ T _SIGNAL( zoomIn ( ) ) , this , TQ T _SLOT( slotZoomIn ( ) ) ) ;
connect ( m_canvasView , TQ _SIGNAL( zoomIn ( ) ) , this , TQ _SLOT( slotZoomIn ( ) ) ) ;
connect ( m_canvasView , TQ T _SIGNAL( zoomOut ( ) ) , this , TQ T _SLOT( slotZoomOut ( ) ) ) ;
connect ( m_canvasView , TQ _SIGNAL( zoomOut ( ) ) , this , TQ _SLOT( slotZoomOut ( ) ) ) ;
connect ( m_pianoView , TQ T _SIGNAL( gotWheelEvent ( TQWheelEvent * ) ) ,
connect ( m_pianoView , TQ _SIGNAL( gotWheelEvent ( TQWheelEvent * ) ) ,
m_canvasView , TQ T _SLOT( slotExternalWheelEvent ( TQWheelEvent * ) ) ) ;
m_canvasView , TQ _SLOT( slotExternalWheelEvent ( TQWheelEvent * ) ) ) ;
// ensure the piano keyb keeps the right margins when the user toggles
// ensure the piano keyb keeps the right margins when the user toggles
// the canvas view rulers
// the canvas view rulers
//
//
connect ( m_canvasView , TQ T _SIGNAL( bottomWidgetHeightChanged ( int ) ) ,
connect ( m_canvasView , TQ _SIGNAL( bottomWidgetHeightChanged ( int ) ) ,
this , TQ T _SLOT( slotCanvasBottomWidgetHeightChanged ( int ) ) ) ;
this , TQ _SLOT( slotCanvasBottomWidgetHeightChanged ( int ) ) ) ;
connect ( m_canvasView , TQ T _SIGNAL( mouseEntered ( ) ) ,
connect ( m_canvasView , TQ _SIGNAL( mouseEntered ( ) ) ,
this , TQ T _SLOT( slotMouseEnteredCanvasView ( ) ) ) ;
this , TQ _SLOT( slotMouseEnteredCanvasView ( ) ) ) ;
connect ( m_canvasView , TQ T _SIGNAL( mouseLeft ( ) ) ,
connect ( m_canvasView , TQ _SIGNAL( mouseLeft ( ) ) ,
this , TQ T _SLOT( slotMouseLeftCanvasView ( ) ) ) ;
this , TQ _SLOT( slotMouseLeftCanvasView ( ) ) ) ;
/*
/*
TQObject : : connect
TQObject : : connect
( getCanvasView ( ) , TQ T _SIGNAL( activeItemPressed ( TQMouseEvent * , TQCanvasItem * ) ) ,
( getCanvasView ( ) , TQ _SIGNAL( activeItemPressed ( TQMouseEvent * , TQCanvasItem * ) ) ,
this , TQ T _SLOT ( activeItemPressed ( TQMouseEvent * , TQCanvasItem * ) ) ) ;
this , TQ _SLOT ( activeItemPressed ( TQMouseEvent * , TQCanvasItem * ) ) ) ;
*/
*/
TQObject : : connect
TQObject : : connect
( getCanvasView ( ) ,
( getCanvasView ( ) ,
TQ T _SIGNAL( mousePressed ( timeT ,
TQ _SIGNAL( mousePressed ( timeT ,
int , TQMouseEvent * , MatrixElement * ) ) ,
int , TQMouseEvent * , MatrixElement * ) ) ,
this ,
this ,
TQ T _SLOT( slotMousePressed ( timeT ,
TQ _SLOT( slotMousePressed ( timeT ,
int , TQMouseEvent * , MatrixElement * ) ) ) ;
int , TQMouseEvent * , MatrixElement * ) ) ) ;
TQObject : : connect
TQObject : : connect
( getCanvasView ( ) ,
( getCanvasView ( ) ,
TQ T _SIGNAL( mouseMoved ( timeT , int , TQMouseEvent * ) ) ,
TQ _SIGNAL( mouseMoved ( timeT , int , TQMouseEvent * ) ) ,
this ,
this ,
TQ T _SLOT( slotMouseMoved ( timeT , int , TQMouseEvent * ) ) ) ;
TQ _SLOT( slotMouseMoved ( timeT , int , TQMouseEvent * ) ) ) ;
TQObject : : connect
TQObject : : connect
( getCanvasView ( ) ,
( getCanvasView ( ) ,
TQ T _SIGNAL( mouseReleased ( timeT , int , TQMouseEvent * ) ) ,
TQ _SIGNAL( mouseReleased ( timeT , int , TQMouseEvent * ) ) ,
this ,
this ,
TQ T _SLOT( slotMouseReleased ( timeT , int , TQMouseEvent * ) ) ) ;
TQ _SLOT( slotMouseReleased ( timeT , int , TQMouseEvent * ) ) ) ;
TQObject : : connect
TQObject : : connect
( getCanvasView ( ) , TQ T _SIGNAL( hoveredOverNoteChanged ( int , bool , timeT ) ) ,
( getCanvasView ( ) , TQ _SIGNAL( hoveredOverNoteChanged ( int , bool , timeT ) ) ,
this , TQ T _SLOT( slotHoveredOverNoteChanged ( int , bool , timeT ) ) ) ;
this , TQ _SLOT( slotHoveredOverNoteChanged ( int , bool , timeT ) ) ) ;
TQObject : : connect
TQObject : : connect
( m_pitchRuler , TQ T _SIGNAL( hoveredOverKeyChanged ( unsigned int ) ) ,
( m_pitchRuler , TQ _SIGNAL( hoveredOverKeyChanged ( unsigned int ) ) ,
this , TQ T _SLOT ( slotHoveredOverKeyChanged ( unsigned int ) ) ) ;
this , TQ _SLOT ( slotHoveredOverKeyChanged ( unsigned int ) ) ) ;
TQObject : : connect
TQObject : : connect
( m_pitchRuler , TQ T _SIGNAL( keyPressed ( unsigned int , bool ) ) ,
( m_pitchRuler , TQ _SIGNAL( keyPressed ( unsigned int , bool ) ) ,
this , TQ T _SLOT ( slotKeyPressed ( unsigned int , bool ) ) ) ;
this , TQ _SLOT ( slotKeyPressed ( unsigned int , bool ) ) ) ;
TQObject : : connect
TQObject : : connect
( m_pitchRuler , TQ T _SIGNAL( keySelected ( unsigned int , bool ) ) ,
( m_pitchRuler , TQ _SIGNAL( keySelected ( unsigned int , bool ) ) ,
this , TQ T _SLOT ( slotKeySelected ( unsigned int , bool ) ) ) ;
this , TQ _SLOT ( slotKeySelected ( unsigned int , bool ) ) ) ;
TQObject : : connect
TQObject : : connect
( m_pitchRuler , TQ T _SIGNAL( keyReleased ( unsigned int , bool ) ) ,
( m_pitchRuler , TQ _SIGNAL( keyReleased ( unsigned int , bool ) ) ,
this , TQ T _SLOT ( slotKeyReleased ( unsigned int , bool ) ) ) ;
this , TQ _SLOT ( slotKeyReleased ( unsigned int , bool ) ) ) ;
TQObject : : connect
TQObject : : connect
( getCanvasView ( ) , TQ T _SIGNAL( hoveredOverAbsoluteTimeChanged ( unsigned int ) ) ,
( getCanvasView ( ) , TQ _SIGNAL( hoveredOverAbsoluteTimeChanged ( unsigned int ) ) ,
this , TQ T _SLOT ( slotHoveredOverAbsoluteTimeChanged ( unsigned int ) ) ) ;
this , TQ _SLOT ( slotHoveredOverAbsoluteTimeChanged ( unsigned int ) ) ) ;
TQObject : : connect
TQObject : : connect
( doc , TQ T _SIGNAL( pointerPositionChanged ( timeT ) ) ,
( doc , TQ _SIGNAL( pointerPositionChanged ( timeT ) ) ,
this , TQ T _SLOT( slotSetPointerPosition ( timeT ) ) ) ;
this , TQ _SLOT( slotSetPointerPosition ( timeT ) ) ) ;
MATRIX_DEBUG < < " MatrixView : applying layout \n " ;
MATRIX_DEBUG < < " MatrixView : applying layout \n " ;
@ -463,32 +463,32 @@ MatrixView::MatrixView(RosegardenGUIDoc *doc,
TQObject : : disconnect
TQObject : : disconnect
( topStandardRuler - > getLoopRuler ( ) ,
( topStandardRuler - > getLoopRuler ( ) ,
TQ T _SIGNAL( setPointerPosition ( timeT ) ) , 0 , 0 ) ;
TQ _SIGNAL( setPointerPosition ( timeT ) ) , 0 , 0 ) ;
TQObject : : connect
TQObject : : connect
( topStandardRuler - > getLoopRuler ( ) ,
( topStandardRuler - > getLoopRuler ( ) ,
TQ T _SIGNAL( setPointerPosition ( timeT ) ) ,
TQ _SIGNAL( setPointerPosition ( timeT ) ) ,
this , TQ T _SLOT( slotSetInsertCursorPosition ( timeT ) ) ) ;
this , TQ _SLOT( slotSetInsertCursorPosition ( timeT ) ) ) ;
TQObject : : connect
TQObject : : connect
( topStandardRuler ,
( topStandardRuler ,
TQ T _SIGNAL( dragPointerToPosition ( timeT ) ) ,
TQ _SIGNAL( dragPointerToPosition ( timeT ) ) ,
this , TQ T _SLOT( slotSetInsertCursorPosition ( timeT ) ) ) ;
this , TQ _SLOT( slotSetInsertCursorPosition ( timeT ) ) ) ;
topStandardRuler - > getLoopRuler ( ) - > setBackgroundColor
topStandardRuler - > getLoopRuler ( ) - > setBackgroundColor
( GUIPalette : : getColour ( GUIPalette : : InsertCursorRuler ) ) ;
( GUIPalette : : getColour ( GUIPalette : : InsertCursorRuler ) ) ;
connect ( topStandardRuler - > getLoopRuler ( ) , TQ T _SIGNAL( startMouseMove ( int ) ) ,
connect ( topStandardRuler - > getLoopRuler ( ) , TQ _SIGNAL( startMouseMove ( int ) ) ,
m_canvasView , TQ T _SLOT( startAutoScroll ( int ) ) ) ;
m_canvasView , TQ _SLOT( startAutoScroll ( int ) ) ) ;
connect ( topStandardRuler - > getLoopRuler ( ) , TQ T _SIGNAL( stopMouseMove ( ) ) ,
connect ( topStandardRuler - > getLoopRuler ( ) , TQ _SIGNAL( stopMouseMove ( ) ) ,
m_canvasView , TQ T _SLOT( stopAutoScroll ( ) ) ) ;
m_canvasView , TQ _SLOT( stopAutoScroll ( ) ) ) ;
connect ( bottomStandardRuler - > getLoopRuler ( ) , TQ T _SIGNAL( startMouseMove ( int ) ) ,
connect ( bottomStandardRuler - > getLoopRuler ( ) , TQ _SIGNAL( startMouseMove ( int ) ) ,
m_canvasView , TQ T _SLOT( startAutoScroll ( int ) ) ) ;
m_canvasView , TQ _SLOT( startAutoScroll ( int ) ) ) ;
connect ( bottomStandardRuler - > getLoopRuler ( ) , TQ T _SIGNAL( stopMouseMove ( ) ) ,
connect ( bottomStandardRuler - > getLoopRuler ( ) , TQ _SIGNAL( stopMouseMove ( ) ) ,
m_canvasView , TQ T _SLOT( stopAutoScroll ( ) ) ) ;
m_canvasView , TQ _SLOT( stopAutoScroll ( ) ) ) ;
connect ( m_bottomStandardRuler , TQ T _SIGNAL( dragPointerToPosition ( timeT ) ) ,
connect ( m_bottomStandardRuler , TQ _SIGNAL( dragPointerToPosition ( timeT ) ) ,
this , TQ T _SLOT( slotSetPointerPosition ( timeT ) ) ) ;
this , TQ _SLOT( slotSetPointerPosition ( timeT ) ) ) ;
// Force height for the moment
// Force height for the moment
//
//
@ -637,148 +637,148 @@ void MatrixView::setupActions()
TQIconSet icon ( TQPixmap ( pixmapDir + " /toolbar/select.xpm " ) ) ;
TQIconSet icon ( TQPixmap ( pixmapDir + " /toolbar/select.xpm " ) ) ;
toolAction = new TDERadioAction ( i18n ( " &Select and Edit " ) , icon , Key_F2 ,
toolAction = new TDERadioAction ( i18n ( " &Select and Edit " ) , icon , Key_F2 ,
this , TQ T _SLOT( slotSelectSelected ( ) ) ,
this , TQ _SLOT( slotSelectSelected ( ) ) ,
actionCollection ( ) , " select " ) ;
actionCollection ( ) , " select " ) ;
toolAction - > setExclusiveGroup ( " tools " ) ;
toolAction - > setExclusiveGroup ( " tools " ) ;
toolAction = new TDERadioAction ( i18n ( " &Draw " ) , " pencil " , Key_F3 ,
toolAction = new TDERadioAction ( i18n ( " &Draw " ) , " pencil " , Key_F3 ,
this , TQ T _SLOT( slotPaintSelected ( ) ) ,
this , TQ _SLOT( slotPaintSelected ( ) ) ,
actionCollection ( ) , " draw " ) ;
actionCollection ( ) , " draw " ) ;
toolAction - > setExclusiveGroup ( " tools " ) ;
toolAction - > setExclusiveGroup ( " tools " ) ;
toolAction = new TDERadioAction ( i18n ( " &Erase " ) , " eraser " , Key_F4 ,
toolAction = new TDERadioAction ( i18n ( " &Erase " ) , " eraser " , Key_F4 ,
this , TQ T _SLOT( slotEraseSelected ( ) ) ,
this , TQ _SLOT( slotEraseSelected ( ) ) ,
actionCollection ( ) , " erase " ) ;
actionCollection ( ) , " erase " ) ;
toolAction - > setExclusiveGroup ( " tools " ) ;
toolAction - > setExclusiveGroup ( " tools " ) ;
toolAction = new TDERadioAction ( i18n ( " &Move " ) , " move " , Key_F5 ,
toolAction = new TDERadioAction ( i18n ( " &Move " ) , " move " , Key_F5 ,
this , TQ T _SLOT( slotMoveSelected ( ) ) ,
this , TQ _SLOT( slotMoveSelected ( ) ) ,
actionCollection ( ) , " move " ) ;
actionCollection ( ) , " move " ) ;
toolAction - > setExclusiveGroup ( " tools " ) ;
toolAction - > setExclusiveGroup ( " tools " ) ;
TQCanvasPixmap pixmap ( pixmapDir + " /toolbar/resize.xpm " ) ;
TQCanvasPixmap pixmap ( pixmapDir + " /toolbar/resize.xpm " ) ;
icon = TQIconSet ( pixmap ) ;
icon = TQIconSet ( pixmap ) ;
toolAction = new TDERadioAction ( i18n ( " Resi&ze " ) , icon , Key_F6 ,
toolAction = new TDERadioAction ( i18n ( " Resi&ze " ) , icon , Key_F6 ,
this , TQ T _SLOT( slotResizeSelected ( ) ) ,
this , TQ _SLOT( slotResizeSelected ( ) ) ,
actionCollection ( ) , " resize " ) ;
actionCollection ( ) , " resize " ) ;
toolAction - > setExclusiveGroup ( " tools " ) ;
toolAction - > setExclusiveGroup ( " tools " ) ;
icon = TQIconSet ( NotePixmapFactory : : toTQPixmap ( NotePixmapFactory : : makeToolbarPixmap ( " chord " ) ) ) ;
icon = TQIconSet ( NotePixmapFactory : : toTQPixmap ( NotePixmapFactory : : makeToolbarPixmap ( " chord " ) ) ) ;
( new TDEToggleAction ( i18n ( " C&hord Insert Mode " ) , icon , Key_H ,
( new TDEToggleAction ( i18n ( " C&hord Insert Mode " ) , icon , Key_H ,
this , TQ T _SLOT( slotUpdateInsertModeStatus ( ) ) ,
this , TQ _SLOT( slotUpdateInsertModeStatus ( ) ) ,
actionCollection ( ) , " chord_mode " ) ) - >
actionCollection ( ) , " chord_mode " ) ) - >
setChecked ( false ) ;
setChecked ( false ) ;
pixmap . load ( pixmapDir + " /toolbar/step_by_step.xpm " ) ;
pixmap . load ( pixmapDir + " /toolbar/step_by_step.xpm " ) ;
icon = TQIconSet ( pixmap ) ;
icon = TQIconSet ( pixmap ) ;
new TDEToggleAction ( i18n ( " Ste&p Recording " ) , icon , 0 , this ,
new TDEToggleAction ( i18n ( " Ste&p Recording " ) , icon , 0 , this ,
TQ T _SLOT( slotToggleStepByStep ( ) ) , actionCollection ( ) ,
TQ _SLOT( slotToggleStepByStep ( ) ) , actionCollection ( ) ,
" toggle_step_by_step " ) ;
" toggle_step_by_step " ) ;
pixmap . load ( pixmapDir + " /toolbar/quantize.png " ) ;
pixmap . load ( pixmapDir + " /toolbar/quantize.png " ) ;
icon = TQIconSet ( pixmap ) ;
icon = TQIconSet ( pixmap ) ;
new TDEAction ( EventQuantizeCommand : : getGlobalName ( ) , icon , Key_Equal , this ,
new TDEAction ( EventQuantizeCommand : : getGlobalName ( ) , icon , Key_Equal , this ,
TQ T _SLOT( slotTransformsQuantize ( ) ) , actionCollection ( ) ,
TQ _SLOT( slotTransformsQuantize ( ) ) , actionCollection ( ) ,
" quantize " ) ;
" quantize " ) ;
new TDEAction ( i18n ( " Repeat Last Quantize " ) , Key_Plus , this ,
new TDEAction ( i18n ( " Repeat Last Quantize " ) , Key_Plus , this ,
TQ T _SLOT( slotTransformsRepeatQuantize ( ) ) , actionCollection ( ) ,
TQ _SLOT( slotTransformsRepeatQuantize ( ) ) , actionCollection ( ) ,
" repeat_quantize " ) ;
" repeat_quantize " ) ;
new TDEAction ( CollapseNotesCommand : : getGlobalName ( ) , Key_Equal + CTRL , this ,
new TDEAction ( CollapseNotesCommand : : getGlobalName ( ) , Key_Equal + CTRL , this ,
TQ T _SLOT( slotTransformsCollapseNotes ( ) ) , actionCollection ( ) ,
TQ _SLOT( slotTransformsCollapseNotes ( ) ) , actionCollection ( ) ,
" collapse_notes " ) ;
" collapse_notes " ) ;
new TDEAction ( i18n ( " &Legato " ) , Key_Minus , this ,
new TDEAction ( i18n ( " &Legato " ) , Key_Minus , this ,
TQ T _SLOT( slotTransformsLegato ( ) ) , actionCollection ( ) ,
TQ _SLOT( slotTransformsLegato ( ) ) , actionCollection ( ) ,
" legatoize " ) ;
" legatoize " ) ;
new TDEAction ( ChangeVelocityCommand : : getGlobalName ( 10 ) , 0 ,
new TDEAction ( ChangeVelocityCommand : : getGlobalName ( 10 ) , 0 ,
Key_Up + SHIFT , this ,
Key_Up + SHIFT , this ,
TQ T _SLOT( slotVelocityUp ( ) ) , actionCollection ( ) ,
TQ _SLOT( slotVelocityUp ( ) ) , actionCollection ( ) ,
" velocity_up " ) ;
" velocity_up " ) ;
new TDEAction ( ChangeVelocityCommand : : getGlobalName ( - 10 ) , 0 ,
new TDEAction ( ChangeVelocityCommand : : getGlobalName ( - 10 ) , 0 ,
Key_Down + SHIFT , this ,
Key_Down + SHIFT , this ,
TQ T _SLOT( slotVelocityDown ( ) ) , actionCollection ( ) ,
TQ _SLOT( slotVelocityDown ( ) ) , actionCollection ( ) ,
" velocity_down " ) ;
" velocity_down " ) ;
new TDEAction ( i18n ( " Set to Current Velocity " ) , 0 , this ,
new TDEAction ( i18n ( " Set to Current Velocity " ) , 0 , this ,
TQ T _SLOT( slotSetVelocitiesToCurrent ( ) ) , actionCollection ( ) ,
TQ _SLOT( slotSetVelocitiesToCurrent ( ) ) , actionCollection ( ) ,
" set_to_current_velocity " ) ;
" set_to_current_velocity " ) ;
new TDEAction ( i18n ( " Set Event &Velocities... " ) , 0 , this ,
new TDEAction ( i18n ( " Set Event &Velocities... " ) , 0 , this ,
TQ T _SLOT( slotSetVelocities ( ) ) , actionCollection ( ) ,
TQ _SLOT( slotSetVelocities ( ) ) , actionCollection ( ) ,
" set_velocities " ) ;
" set_velocities " ) ;
new TDEAction ( i18n ( " Trigger Se&gment... " ) , 0 , this ,
new TDEAction ( i18n ( " Trigger Se&gment... " ) , 0 , this ,
TQ T _SLOT( slotTriggerSegment ( ) ) , actionCollection ( ) ,
TQ _SLOT( slotTriggerSegment ( ) ) , actionCollection ( ) ,
" trigger_segment " ) ;
" trigger_segment " ) ;
new TDEAction ( i18n ( " Remove Triggers... " ) , 0 , this ,
new TDEAction ( i18n ( " Remove Triggers... " ) , 0 , this ,
TQ T _SLOT( slotRemoveTriggers ( ) ) , actionCollection ( ) ,
TQ _SLOT( slotRemoveTriggers ( ) ) , actionCollection ( ) ,
" remove_trigger " ) ;
" remove_trigger " ) ;
new TDEAction ( i18n ( " Select &All " ) , Key_A + CTRL , this ,
new TDEAction ( i18n ( " Select &All " ) , Key_A + CTRL , this ,
TQ T _SLOT( slotSelectAll ( ) ) , actionCollection ( ) ,
TQ _SLOT( slotSelectAll ( ) ) , actionCollection ( ) ,
" select_all " ) ;
" select_all " ) ;
new TDEAction ( i18n ( " &Delete " ) , Key_Delete , this ,
new TDEAction ( i18n ( " &Delete " ) , Key_Delete , this ,
TQ T _SLOT( slotEditDelete ( ) ) , actionCollection ( ) ,
TQ _SLOT( slotEditDelete ( ) ) , actionCollection ( ) ,
" delete " ) ;
" delete " ) ;
new TDEAction ( i18n ( " Cursor &Back " ) , 0 , Key_Left , this ,
new TDEAction ( i18n ( " Cursor &Back " ) , 0 , Key_Left , this ,
TQ T _SLOT( slotStepBackward ( ) ) , actionCollection ( ) ,
TQ _SLOT( slotStepBackward ( ) ) , actionCollection ( ) ,
" cursor_back " ) ;
" cursor_back " ) ;
new TDEAction ( i18n ( " Cursor &Forward " ) , 0 , Key_Right , this ,
new TDEAction ( i18n ( " Cursor &Forward " ) , 0 , Key_Right , this ,
TQ T _SLOT( slotStepForward ( ) ) , actionCollection ( ) ,
TQ _SLOT( slotStepForward ( ) ) , actionCollection ( ) ,
" cursor_forward " ) ;
" cursor_forward " ) ;
new TDEAction ( i18n ( " Cursor Ba&ck Bar " ) , 0 , Key_Left + CTRL , this ,
new TDEAction ( i18n ( " Cursor Ba&ck Bar " ) , 0 , Key_Left + CTRL , this ,
TQ T _SLOT( slotJumpBackward ( ) ) , actionCollection ( ) ,
TQ _SLOT( slotJumpBackward ( ) ) , actionCollection ( ) ,
" cursor_back_bar " ) ;
" cursor_back_bar " ) ;
new TDEAction ( i18n ( " Cursor For&ward Bar " ) , 0 , Key_Right + CTRL , this ,
new TDEAction ( i18n ( " Cursor For&ward Bar " ) , 0 , Key_Right + CTRL , this ,
TQ T _SLOT( slotJumpForward ( ) ) , actionCollection ( ) ,
TQ _SLOT( slotJumpForward ( ) ) , actionCollection ( ) ,
" cursor_forward_bar " ) ;
" cursor_forward_bar " ) ;
new TDEAction ( i18n ( " Cursor Back and Se&lect " ) , SHIFT + Key_Left , this ,
new TDEAction ( i18n ( " Cursor Back and Se&lect " ) , SHIFT + Key_Left , this ,
TQ T _SLOT( slotExtendSelectionBackward ( ) ) , actionCollection ( ) ,
TQ _SLOT( slotExtendSelectionBackward ( ) ) , actionCollection ( ) ,
" extend_selection_backward " ) ;
" extend_selection_backward " ) ;
new TDEAction ( i18n ( " Cursor Forward and &Select " ) , SHIFT + Key_Right , this ,
new TDEAction ( i18n ( " Cursor Forward and &Select " ) , SHIFT + Key_Right , this ,
TQ T _SLOT( slotExtendSelectionForward ( ) ) , actionCollection ( ) ,
TQ _SLOT( slotExtendSelectionForward ( ) ) , actionCollection ( ) ,
" extend_selection_forward " ) ;
" extend_selection_forward " ) ;
new TDEAction ( i18n ( " Cursor Back Bar and Select " ) , SHIFT + CTRL + Key_Left , this ,
new TDEAction ( i18n ( " Cursor Back Bar and Select " ) , SHIFT + CTRL + Key_Left , this ,
TQ T _SLOT( slotExtendSelectionBackwardBar ( ) ) , actionCollection ( ) ,
TQ _SLOT( slotExtendSelectionBackwardBar ( ) ) , actionCollection ( ) ,
" extend_selection_backward_bar " ) ;
" extend_selection_backward_bar " ) ;
new TDEAction ( i18n ( " Cursor Forward Bar and Select " ) , SHIFT + CTRL + Key_Right , this ,
new TDEAction ( i18n ( " Cursor Forward Bar and Select " ) , SHIFT + CTRL + Key_Right , this ,
TQ T _SLOT( slotExtendSelectionForwardBar ( ) ) , actionCollection ( ) ,
TQ _SLOT( slotExtendSelectionForwardBar ( ) ) , actionCollection ( ) ,
" extend_selection_forward_bar " ) ;
" extend_selection_forward_bar " ) ;
new TDEAction ( i18n ( " Cursor to St&art " ) , 0 ,
new TDEAction ( i18n ( " Cursor to St&art " ) , 0 ,
/* #1025717: conflicting meanings for ctrl+a - dupe with Select All
/* #1025717: conflicting meanings for ctrl+a - dupe with Select All
Key_A + CTRL , */ this ,
Key_A + CTRL , */ this ,
TQ T _SLOT( slotJumpToStart ( ) ) , actionCollection ( ) ,
TQ _SLOT( slotJumpToStart ( ) ) , actionCollection ( ) ,
" cursor_start " ) ;
" cursor_start " ) ;
new TDEAction ( i18n ( " Cursor to &End " ) , 0 , Key_E + CTRL , this ,
new TDEAction ( i18n ( " Cursor to &End " ) , 0 , Key_E + CTRL , this ,
TQ T _SLOT( slotJumpToEnd ( ) ) , actionCollection ( ) ,
TQ _SLOT( slotJumpToEnd ( ) ) , actionCollection ( ) ,
" cursor_end " ) ;
" cursor_end " ) ;
icon = TQIconSet ( NotePixmapFactory : : toTQPixmap ( NotePixmapFactory : : makeToolbarPixmap
icon = TQIconSet ( NotePixmapFactory : : toTQPixmap ( NotePixmapFactory : : makeToolbarPixmap
( " transport-cursor-to-pointer " ) ) ) ;
( " transport-cursor-to-pointer " ) ) ) ;
new TDEAction ( i18n ( " Cursor to &Playback Pointer " ) , icon , 0 , this ,
new TDEAction ( i18n ( " Cursor to &Playback Pointer " ) , icon , 0 , this ,
TQ T _SLOT( slotJumpCursorToPlayback ( ) ) , actionCollection ( ) ,
TQ _SLOT( slotJumpCursorToPlayback ( ) ) , actionCollection ( ) ,
" cursor_to_playback_pointer " ) ;
" cursor_to_playback_pointer " ) ;
icon = TQIconSet ( NotePixmapFactory : : toTQPixmap ( NotePixmapFactory : : makeToolbarPixmap
icon = TQIconSet ( NotePixmapFactory : : toTQPixmap ( NotePixmapFactory : : makeToolbarPixmap
( " transport-play " ) ) ) ;
( " transport-play " ) ) ) ;
TDEAction * play = new TDEAction ( i18n ( " &Play " ) , icon , Key_Enter , this ,
TDEAction * play = new TDEAction ( i18n ( " &Play " ) , icon , Key_Enter , this ,
TQ T _SIGNAL( play ( ) ) , actionCollection ( ) , " play " ) ;
TQ _SIGNAL( play ( ) ) , actionCollection ( ) , " play " ) ;
// Alternative shortcut for Play
// Alternative shortcut for Play
TDEShortcut playShortcut = play - > shortcut ( ) ;
TDEShortcut playShortcut = play - > shortcut ( ) ;
playShortcut . append ( KKey ( Key_Return + CTRL ) ) ;
playShortcut . append ( KKey ( Key_Return + CTRL ) ) ;
@ -787,70 +787,70 @@ void MatrixView::setupActions()
icon = TQIconSet ( NotePixmapFactory : : toTQPixmap ( NotePixmapFactory : : makeToolbarPixmap
icon = TQIconSet ( NotePixmapFactory : : toTQPixmap ( NotePixmapFactory : : makeToolbarPixmap
( " transport-stop " ) ) ) ;
( " transport-stop " ) ) ) ;
new TDEAction ( i18n ( " &Stop " ) , icon , Key_Insert , this ,
new TDEAction ( i18n ( " &Stop " ) , icon , Key_Insert , this ,
TQ T _SIGNAL( stop ( ) ) , actionCollection ( ) , " stop " ) ;
TQ _SIGNAL( stop ( ) ) , actionCollection ( ) , " stop " ) ;
icon = TQIconSet ( NotePixmapFactory : : toTQPixmap ( NotePixmapFactory : : makeToolbarPixmap
icon = TQIconSet ( NotePixmapFactory : : toTQPixmap ( NotePixmapFactory : : makeToolbarPixmap
( " transport-rewind " ) ) ) ;
( " transport-rewind " ) ) ) ;
new TDEAction ( i18n ( " Re&wind " ) , icon , Key_End , this ,
new TDEAction ( i18n ( " Re&wind " ) , icon , Key_End , this ,
TQ T _SIGNAL( rewindPlayback ( ) ) , actionCollection ( ) ,
TQ _SIGNAL( rewindPlayback ( ) ) , actionCollection ( ) ,
" playback_pointer_back_bar " ) ;
" playback_pointer_back_bar " ) ;
icon = TQIconSet ( NotePixmapFactory : : toTQPixmap ( NotePixmapFactory : : makeToolbarPixmap
icon = TQIconSet ( NotePixmapFactory : : toTQPixmap ( NotePixmapFactory : : makeToolbarPixmap
( " transport-ffwd " ) ) ) ;
( " transport-ffwd " ) ) ) ;
new TDEAction ( i18n ( " &Fast Forward " ) , icon , Key_PageDown , this ,
new TDEAction ( i18n ( " &Fast Forward " ) , icon , Key_PageDown , this ,
TQ T _SIGNAL( fastForwardPlayback ( ) ) , actionCollection ( ) ,
TQ _SIGNAL( fastForwardPlayback ( ) ) , actionCollection ( ) ,
" playback_pointer_forward_bar " ) ;
" playback_pointer_forward_bar " ) ;
icon = TQIconSet ( NotePixmapFactory : : toTQPixmap ( NotePixmapFactory : : makeToolbarPixmap
icon = TQIconSet ( NotePixmapFactory : : toTQPixmap ( NotePixmapFactory : : makeToolbarPixmap
( " transport-rewind-end " ) ) ) ;
( " transport-rewind-end " ) ) ) ;
new TDEAction ( i18n ( " Rewind to &Beginning " ) , icon , 0 , this ,
new TDEAction ( i18n ( " Rewind to &Beginning " ) , icon , 0 , this ,
TQ T _SIGNAL( rewindPlaybackToBeginning ( ) ) , actionCollection ( ) ,
TQ _SIGNAL( rewindPlaybackToBeginning ( ) ) , actionCollection ( ) ,
" playback_pointer_start " ) ;
" playback_pointer_start " ) ;
icon = TQIconSet ( NotePixmapFactory : : toTQPixmap ( NotePixmapFactory : : makeToolbarPixmap
icon = TQIconSet ( NotePixmapFactory : : toTQPixmap ( NotePixmapFactory : : makeToolbarPixmap
( " transport-ffwd-end " ) ) ) ;
( " transport-ffwd-end " ) ) ) ;
new TDEAction ( i18n ( " Fast Forward to &End " ) , icon , 0 , this ,
new TDEAction ( i18n ( " Fast Forward to &End " ) , icon , 0 , this ,
TQ T _SIGNAL( fastForwardPlaybackToEnd ( ) ) , actionCollection ( ) ,
TQ _SIGNAL( fastForwardPlaybackToEnd ( ) ) , actionCollection ( ) ,
" playback_pointer_end " ) ;
" playback_pointer_end " ) ;
icon = TQIconSet ( NotePixmapFactory : : toTQPixmap ( NotePixmapFactory : : makeToolbarPixmap
icon = TQIconSet ( NotePixmapFactory : : toTQPixmap ( NotePixmapFactory : : makeToolbarPixmap
( " transport-pointer-to-cursor " ) ) ) ;
( " transport-pointer-to-cursor " ) ) ) ;
new TDEAction ( i18n ( " Playback Pointer to &Cursor " ) , icon , 0 , this ,
new TDEAction ( i18n ( " Playback Pointer to &Cursor " ) , icon , 0 , this ,
TQ T _SLOT( slotJumpPlaybackToCursor ( ) ) , actionCollection ( ) ,
TQ _SLOT( slotJumpPlaybackToCursor ( ) ) , actionCollection ( ) ,
" playback_pointer_to_cursor " ) ;
" playback_pointer_to_cursor " ) ;
icon = TQIconSet ( NotePixmapFactory : : toTQPixmap ( NotePixmapFactory : : makeToolbarPixmap
icon = TQIconSet ( NotePixmapFactory : : toTQPixmap ( NotePixmapFactory : : makeToolbarPixmap
( " transport-solo " ) ) ) ;
( " transport-solo " ) ) ) ;
new TDEToggleAction ( i18n ( " &Solo " ) , icon , 0 , this ,
new TDEToggleAction ( i18n ( " &Solo " ) , icon , 0 , this ,
TQ T _SLOT( slotToggleSolo ( ) ) , actionCollection ( ) ,
TQ _SLOT( slotToggleSolo ( ) ) , actionCollection ( ) ,
" toggle_solo " ) ;
" toggle_solo " ) ;
icon = TQIconSet ( NotePixmapFactory : : toTQPixmap ( NotePixmapFactory : : makeToolbarPixmap
icon = TQIconSet ( NotePixmapFactory : : toTQPixmap ( NotePixmapFactory : : makeToolbarPixmap
( " transport-tracking " ) ) ) ;
( " transport-tracking " ) ) ) ;
( new TDEToggleAction ( i18n ( " Scro&ll to Follow Playback " ) , icon , Key_Pause , this ,
( new TDEToggleAction ( i18n ( " Scro&ll to Follow Playback " ) , icon , Key_Pause , this ,
TQ T _SLOT( slotToggleTracking ( ) ) , actionCollection ( ) ,
TQ _SLOT( slotToggleTracking ( ) ) , actionCollection ( ) ,
" toggle_tracking " ) ) - > setChecked ( m_playTracking ) ;
" toggle_tracking " ) ) - > setChecked ( m_playTracking ) ;
icon = TQIconSet ( NotePixmapFactory : : toTQPixmap ( NotePixmapFactory : : makeToolbarPixmap
icon = TQIconSet ( NotePixmapFactory : : toTQPixmap ( NotePixmapFactory : : makeToolbarPixmap
( " transport-panic " ) ) ) ;
( " transport-panic " ) ) ) ;
new TDEAction ( i18n ( " Panic " ) , icon , Key_P + CTRL + ALT , this ,
new TDEAction ( i18n ( " Panic " ) , icon , Key_P + CTRL + ALT , this ,
TQ T _SIGNAL( panic ( ) ) , actionCollection ( ) , " panic " ) ;
TQ _SIGNAL( panic ( ) ) , actionCollection ( ) , " panic " ) ;
new TDEAction ( i18n ( " Set Loop to Selection " ) , Key_Semicolon + CTRL , this ,
new TDEAction ( i18n ( " Set Loop to Selection " ) , Key_Semicolon + CTRL , this ,
TQ T _SLOT( slotPreviewSelection ( ) ) , actionCollection ( ) ,
TQ _SLOT( slotPreviewSelection ( ) ) , actionCollection ( ) ,
" preview_selection " ) ;
" preview_selection " ) ;
new TDEAction ( i18n ( " Clear L&oop " ) , Key_Colon + CTRL , this ,
new TDEAction ( i18n ( " Clear L&oop " ) , Key_Colon + CTRL , this ,
TQ T _SLOT( slotClearLoop ( ) ) , actionCollection ( ) ,
TQ _SLOT( slotClearLoop ( ) ) , actionCollection ( ) ,
" clear_loop " ) ;
" clear_loop " ) ;
new TDEAction ( i18n ( " Clear Selection " ) , Key_Escape , this ,
new TDEAction ( i18n ( " Clear Selection " ) , Key_Escape , this ,
TQ T _SLOT( slotClearSelection ( ) ) , actionCollection ( ) ,
TQ _SLOT( slotClearSelection ( ) ) , actionCollection ( ) ,
" clear_selection " ) ;
" clear_selection " ) ;
// icon = TQIconSet(TQCanvasPixmap(pixmapDir + "/toolbar/eventfilter.xpm"));
// icon = TQIconSet(TQCanvasPixmap(pixmapDir + "/toolbar/eventfilter.xpm"));
new TDEAction ( i18n ( " &Filter Selection " ) , " filter " , Key_F + CTRL , this ,
new TDEAction ( i18n ( " &Filter Selection " ) , " filter " , Key_F + CTRL , this ,
TQ T _SLOT( slotFilterSelection ( ) ) , actionCollection ( ) ,
TQ _SLOT( slotFilterSelection ( ) ) , actionCollection ( ) ,
" filter_selection " ) ;
" filter_selection " ) ;
timeT crotchetDuration = Note ( Note : : Crotchet ) . getDuration ( ) ;
timeT crotchetDuration = Note ( Note : : Crotchet ) . getDuration ( ) ;
@ -875,16 +875,16 @@ void MatrixView::setupActions()
if ( d = = SnapGrid : : NoSnap ) {
if ( d = = SnapGrid : : NoSnap ) {
new TDEAction ( i18n ( " &No Snap " ) , 0 , this ,
new TDEAction ( i18n ( " &No Snap " ) , 0 , this ,
TQ T _SLOT( slotSetSnapFromAction ( ) ) ,
TQ _SLOT( slotSetSnapFromAction ( ) ) ,
actionCollection ( ) , " snap_none " ) ;
actionCollection ( ) , " snap_none " ) ;
} else if ( d = = SnapGrid : : SnapToUnit ) {
} else if ( d = = SnapGrid : : SnapToUnit ) {
} else if ( d = = SnapGrid : : SnapToBeat ) {
} else if ( d = = SnapGrid : : SnapToBeat ) {
new TDEAction ( i18n ( " Snap to Bea&t " ) , Key_1 , this ,
new TDEAction ( i18n ( " Snap to Bea&t " ) , Key_1 , this ,
TQ T _SLOT( slotSetSnapFromAction ( ) ) ,
TQ _SLOT( slotSetSnapFromAction ( ) ) ,
actionCollection ( ) , " snap_beat " ) ;
actionCollection ( ) , " snap_beat " ) ;
} else if ( d = = SnapGrid : : SnapToBar ) {
} else if ( d = = SnapGrid : : SnapToBar ) {
new TDEAction ( i18n ( " Snap to &Bar " ) , Key_5 , this ,
new TDEAction ( i18n ( " Snap to &Bar " ) , Key_5 , this ,
TQ T _SLOT( slotSetSnapFromAction ( ) ) ,
TQ _SLOT( slotSetSnapFromAction ( ) ) ,
actionCollection ( ) , " snap_bar " ) ;
actionCollection ( ) , " snap_bar " ) ;
} else {
} else {
@ -904,7 +904,7 @@ void MatrixView::setupActions()
TQString actionName = TQString ( " snap_%1 " ) . arg ( int ( ( crotchetDuration * 4 ) / d ) ) ;
TQString actionName = TQString ( " snap_%1 " ) . arg ( int ( ( crotchetDuration * 4 ) / d ) ) ;
if ( d = = ( crotchetDuration * 3 ) / 2 ) actionName = " snap_3 " ;
if ( d = = ( crotchetDuration * 3 ) / 2 ) actionName = " snap_3 " ;
new TDEAction ( i18n ( " Snap to %1 " ) . arg ( label ) , pixmap , cut , this ,
new TDEAction ( i18n ( " Snap to %1 " ) . arg ( label ) , pixmap , cut , this ,
TQ T _SLOT( slotSetSnapFromAction ( ) ) , actionCollection ( ) ,
TQ _SLOT( slotSetSnapFromAction ( ) ) , actionCollection ( ) ,
actionName . ascii ( ) ) ;
actionName . ascii ( ) ) ;
}
}
}
}
@ -913,16 +913,16 @@ void MatrixView::setupActions()
// Settings menu
// Settings menu
//
//
new TDEAction ( i18n ( " Show Instrument Parameters " ) , 0 , this ,
new TDEAction ( i18n ( " Show Instrument Parameters " ) , 0 , this ,
TQ T _SLOT( slotDockParametersBack ( ) ) ,
TQ _SLOT( slotDockParametersBack ( ) ) ,
actionCollection ( ) ,
actionCollection ( ) ,
" show_inst_parameters " ) ;
" show_inst_parameters " ) ;
new TDEToggleAction ( i18n ( " Show Ch&ord Name Ruler " ) , 0 , this ,
new TDEToggleAction ( i18n ( " Show Ch&ord Name Ruler " ) , 0 , this ,
TQ T _SLOT( slotToggleChordsRuler ( ) ) ,
TQ _SLOT( slotToggleChordsRuler ( ) ) ,
actionCollection ( ) , " show_chords_ruler " ) ;
actionCollection ( ) , " show_chords_ruler " ) ;
new TDEToggleAction ( i18n ( " Show &Tempo Ruler " ) , 0 , this ,
new TDEToggleAction ( i18n ( " Show &Tempo Ruler " ) , 0 , this ,
TQ T _SLOT( slotToggleTempoRuler ( ) ) ,
TQ _SLOT( slotToggleTempoRuler ( ) ) ,
actionCollection ( ) , " show_tempo_ruler " ) ;
actionCollection ( ) , " show_tempo_ruler " ) ;
createGUI ( getRCFileName ( ) , false ) ;
createGUI ( getRCFileName ( ) , false ) ;
@ -1312,11 +1312,11 @@ void MatrixView::slotSelectSelected()
{
{
EditTool * selector = m_toolBox - > getTool ( MatrixSelector : : ToolName ) ;
EditTool * selector = m_toolBox - > getTool ( MatrixSelector : : ToolName ) ;
connect ( selector , TQ T _SIGNAL( gotSelection ( ) ) ,
connect ( selector , TQ _SIGNAL( gotSelection ( ) ) ,
this , TQ T _SLOT( slotNewSelection ( ) ) ) ;
this , TQ _SLOT( slotNewSelection ( ) ) ) ;
connect ( selector , TQ T _SIGNAL( editTriggerSegment ( int ) ) ,
connect ( selector , TQ _SIGNAL( editTriggerSegment ( int ) ) ,
this , TQ T _SIGNAL( editTriggerSegment ( int ) ) ) ;
this , TQ _SIGNAL( editTriggerSegment ( int ) ) ) ;
setTool ( selector ) ;
setTool ( selector ) ;
}
}
@ -2147,8 +2147,8 @@ MatrixView::initActionsToolbar()
}
}
}
}
connect ( m_snapGridCombo , TQ T _SIGNAL( activated ( int ) ) ,
connect ( m_snapGridCombo , TQ _SIGNAL( activated ( int ) ) ,
this , TQ T _SLOT( slotSetSnapFromIndex ( int ) ) ) ;
this , TQ _SLOT( slotSetSnapFromIndex ( int ) ) ) ;
// Velocity combo. Not a spin box, because the spin box is too
// Velocity combo. Not a spin box, because the spin box is too
// slow to use unless we make it typeable into, and then it takes
// slow to use unless we make it typeable into, and then it takes
@ -2181,8 +2181,8 @@ MatrixView::initActionsToolbar()
m_quantizeCombo - > insertItem ( noMap , i18n ( " Off " ) ) ;
m_quantizeCombo - > insertItem ( noMap , i18n ( " Off " ) ) ;
connect ( m_quantizeCombo , TQ T _SIGNAL( activated ( int ) ) ,
connect ( m_quantizeCombo , TQ _SIGNAL( activated ( int ) ) ,
this , TQ T _SLOT( slotQuantizeSelection ( int ) ) ) ;
this , TQ _SLOT( slotQuantizeSelection ( int ) ) ) ;
}
}
void
void
@ -2224,8 +2224,8 @@ MatrixView::initZoomToolbar()
m_zoomLabel - > setFixedWidth ( 80 ) ;
m_zoomLabel - > setFixedWidth ( 80 ) ;
connect ( m_hZoomSlider ,
connect ( m_hZoomSlider ,
TQ T _SIGNAL( valueChanged ( int ) ) ,
TQ _SIGNAL( valueChanged ( int ) ) ,
TQ T _SLOT( slotChangeHorizontalZoom ( int ) ) ) ;
TQ _SLOT( slotChangeHorizontalZoom ( int ) ) ) ;
}
}
@ -3023,20 +3023,20 @@ MatrixView::slotPercussionSetChanged(Instrument * newInstr)
TQObject : : connect
TQObject : : connect
( pitchRuler , TQ T _SIGNAL( hoveredOverKeyChanged ( unsigned int ) ) ,
( pitchRuler , TQ _SIGNAL( hoveredOverKeyChanged ( unsigned int ) ) ,
this , TQ T _SLOT ( slotHoveredOverKeyChanged ( unsigned int ) ) ) ;
this , TQ _SLOT ( slotHoveredOverKeyChanged ( unsigned int ) ) ) ;
TQObject : : connect
TQObject : : connect
( pitchRuler , TQ T _SIGNAL( keyPressed ( unsigned int , bool ) ) ,
( pitchRuler , TQ _SIGNAL( keyPressed ( unsigned int , bool ) ) ,
this , TQ T _SLOT ( slotKeyPressed ( unsigned int , bool ) ) ) ;
this , TQ _SLOT ( slotKeyPressed ( unsigned int , bool ) ) ) ;
TQObject : : connect
TQObject : : connect
( pitchRuler , TQ T _SIGNAL( keySelected ( unsigned int , bool ) ) ,
( pitchRuler , TQ _SIGNAL( keySelected ( unsigned int , bool ) ) ,
this , TQ T _SLOT ( slotKeySelected ( unsigned int , bool ) ) ) ;
this , TQ _SLOT ( slotKeySelected ( unsigned int , bool ) ) ) ;
TQObject : : connect
TQObject : : connect
( pitchRuler , TQ T _SIGNAL( keyReleased ( unsigned int , bool ) ) ,
( pitchRuler , TQ _SIGNAL( keyReleased ( unsigned int , bool ) ) ,
this , TQ T _SLOT ( slotKeyReleased ( unsigned int , bool ) ) ) ;
this , TQ _SLOT ( slotKeyReleased ( unsigned int , bool ) ) ) ;
// Replace the old pitchruler widget
// Replace the old pitchruler widget
m_pitchRuler = pitchRuler ;
m_pitchRuler = pitchRuler ;