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