Rename timeLine to Timeline
This commit is contained in:
@@ -43,7 +43,7 @@ class QScrollBar;
|
||||
|
||||
class comboBox;
|
||||
class NotePlayHandle;
|
||||
class timeLine;
|
||||
class Timeline;
|
||||
class toolButton;
|
||||
|
||||
|
||||
@@ -258,7 +258,7 @@ private:
|
||||
editModes m_editMode;
|
||||
|
||||
|
||||
timeLine * m_timeLine;
|
||||
Timeline * m_timeLine;
|
||||
bool m_scrollBack;
|
||||
|
||||
void drawCross( QPainter & _p );
|
||||
|
||||
@@ -47,7 +47,7 @@ class QSignalMapper;
|
||||
class comboBox;
|
||||
class NotePlayHandle;
|
||||
class Pattern;
|
||||
class timeLine;
|
||||
class Timeline;
|
||||
class toolButton;
|
||||
|
||||
class PianoRoll : public QWidget, public SerializingObject
|
||||
@@ -350,7 +350,7 @@ private:
|
||||
bool m_mouseDownLeft; //true if left click is being held down
|
||||
bool m_mouseDownRight; //true if right click is being held down
|
||||
|
||||
timeLine * m_timeLine;
|
||||
Timeline * m_timeLine;
|
||||
bool m_scrollBack;
|
||||
|
||||
void copy_to_clipboard( const NoteVector & _notes ) const;
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
|
||||
class AutomationTrack;
|
||||
class Pattern;
|
||||
class timeLine;
|
||||
class Timeline;
|
||||
|
||||
|
||||
const bpm_t MinTempo = 10;
|
||||
@@ -83,7 +83,7 @@ public:
|
||||
{
|
||||
return m_currentFrame;
|
||||
}
|
||||
timeLine * m_timeLine;
|
||||
Timeline * m_timeLine;
|
||||
bool m_timeLineUpdate;
|
||||
|
||||
private:
|
||||
|
||||
@@ -38,7 +38,7 @@ class LcdSpinBox;
|
||||
class MeterDialog;
|
||||
class Song;
|
||||
class textFloat;
|
||||
class timeLine;
|
||||
class Timeline;
|
||||
class toolButton;
|
||||
|
||||
class positionLine : public QWidget
|
||||
@@ -110,7 +110,7 @@ private:
|
||||
toolButton * m_stopButton;
|
||||
LcdSpinBox * m_tempoSpinBox;
|
||||
|
||||
timeLine * m_timeLine;
|
||||
Timeline * m_timeLine;
|
||||
|
||||
MeterDialog * m_timeSigDisplay;
|
||||
automatableSlider * m_masterVolumeSlider;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* timeline.h - class timeLine, representing a time-line with position marker
|
||||
* Timeline.h - class timeLine, representing a time-line with position marker
|
||||
*
|
||||
* Copyright (c) 2004-2008 Tobias Doerffel <tobydox/at/users.sourceforge.net>
|
||||
*
|
||||
@@ -36,7 +36,7 @@ class nStateButton;
|
||||
class textFloat;
|
||||
|
||||
|
||||
class timeLine : public QWidget, public JournallingObject
|
||||
class Timeline : public QWidget, public JournallingObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
@@ -60,9 +60,9 @@ public:
|
||||
} ;
|
||||
|
||||
|
||||
timeLine( int _xoff, int _yoff, float _ppt, Song::playPos & _pos,
|
||||
Timeline( int _xoff, int _yoff, float _ppt, Song::playPos & _pos,
|
||||
const MidiTime & _begin, QWidget * _parent );
|
||||
virtual ~timeLine();
|
||||
virtual ~Timeline();
|
||||
|
||||
inline Song::playPos & pos()
|
||||
{
|
||||
@@ -60,7 +60,7 @@
|
||||
#include "SongEditor.h"
|
||||
#include "templates.h"
|
||||
#include "text_float.h"
|
||||
#include "timeline.h"
|
||||
#include "Timeline.h"
|
||||
#include "PeakController.h"
|
||||
|
||||
|
||||
@@ -179,7 +179,7 @@ void Song::setTimeSignature()
|
||||
|
||||
void Song::savePos()
|
||||
{
|
||||
timeLine * tl = m_playPos[m_playMode].m_timeLine;
|
||||
Timeline * tl = m_playPos[m_playMode].m_timeLine;
|
||||
|
||||
if( tl != NULL )
|
||||
{
|
||||
@@ -246,7 +246,7 @@ void Song::processNextBuffer()
|
||||
}
|
||||
|
||||
// check for looping-mode and act if necessary
|
||||
timeLine * tl = m_playPos[m_playMode].m_timeLine;
|
||||
Timeline * tl = m_playPos[m_playMode].m_timeLine;
|
||||
bool check_loop = tl != NULL && m_exporting == false &&
|
||||
tl->loopPointsEnabled();
|
||||
if( check_loop )
|
||||
@@ -565,7 +565,7 @@ void Song::stop()
|
||||
return;
|
||||
}
|
||||
|
||||
timeLine * tl = m_playPos[m_playMode].m_timeLine;
|
||||
Timeline * tl = m_playPos[m_playMode].m_timeLine;
|
||||
m_playing = false;
|
||||
m_paused = false;
|
||||
m_recording = true;
|
||||
@@ -575,12 +575,12 @@ void Song::stop()
|
||||
|
||||
switch( tl->behaviourAtStop() )
|
||||
{
|
||||
case timeLine::BackToZero:
|
||||
case Timeline::BackToZero:
|
||||
m_playPos[m_playMode].setTicks( 0 );
|
||||
m_elapsedMilliSeconds = 0;
|
||||
break;
|
||||
|
||||
case timeLine::BackToStart:
|
||||
case Timeline::BackToStart:
|
||||
if( tl->savedPos() >= 0 )
|
||||
{
|
||||
m_playPos[m_playMode].setTicks( tl->savedPos().getTicks() );
|
||||
@@ -589,7 +589,7 @@ void Song::stop()
|
||||
}
|
||||
break;
|
||||
|
||||
case timeLine::KeepStopPosition:
|
||||
case Timeline::KeepStopPosition:
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* timeline.cpp - class timeLine, representing a time-line with position marker
|
||||
* Timeline.cpp - class timeLine, representing a time-line with position marker
|
||||
*
|
||||
* Copyright (c) 2004-2014 Tobias Doerffel <tobydox/at/users.sourceforge.net>
|
||||
*
|
||||
@@ -31,7 +31,7 @@
|
||||
#include <QPainter>
|
||||
|
||||
|
||||
#include "timeline.h"
|
||||
#include "Timeline.h"
|
||||
#include "embed.h"
|
||||
#include "Engine.h"
|
||||
#include "templates.h"
|
||||
@@ -45,12 +45,12 @@
|
||||
#endif
|
||||
|
||||
|
||||
QPixmap * timeLine::s_timeLinePixmap = NULL;
|
||||
QPixmap * timeLine::s_posMarkerPixmap = NULL;
|
||||
QPixmap * timeLine::s_loopPointBeginPixmap = NULL;
|
||||
QPixmap * timeLine::s_loopPointEndPixmap = NULL;
|
||||
QPixmap * Timeline::s_timeLinePixmap = NULL;
|
||||
QPixmap * Timeline::s_posMarkerPixmap = NULL;
|
||||
QPixmap * Timeline::s_loopPointBeginPixmap = NULL;
|
||||
QPixmap * Timeline::s_loopPointEndPixmap = NULL;
|
||||
|
||||
timeLine::timeLine( const int _xoff, const int _yoff, const float _ppt,
|
||||
Timeline::Timeline( const int _xoff, const int _yoff, const float _ppt,
|
||||
Song::playPos & _pos, const MidiTime & _begin,
|
||||
QWidget * _parent ) :
|
||||
QWidget( _parent ),
|
||||
@@ -109,7 +109,7 @@ timeLine::timeLine( const int _xoff, const int _yoff, const float _ppt,
|
||||
|
||||
|
||||
|
||||
timeLine::~timeLine()
|
||||
Timeline::~Timeline()
|
||||
{
|
||||
if( Engine::songEditor() )
|
||||
{
|
||||
@@ -121,7 +121,7 @@ timeLine::~timeLine()
|
||||
|
||||
|
||||
|
||||
void timeLine::addToolButtons( QWidget * _tool_bar )
|
||||
void Timeline::addToolButtons( QWidget * _tool_bar )
|
||||
{
|
||||
nStateButton * autoScroll = new nStateButton( _tool_bar );
|
||||
autoScroll->setGeneralToolTip( tr( "Enable/disable auto-scrolling" ) );
|
||||
@@ -161,7 +161,7 @@ void timeLine::addToolButtons( QWidget * _tool_bar )
|
||||
|
||||
|
||||
|
||||
void timeLine::saveSettings( QDomDocument & _doc, QDomElement & _this )
|
||||
void Timeline::saveSettings( QDomDocument & _doc, QDomElement & _this )
|
||||
{
|
||||
_this.setAttribute( "lp0pos", (int) loopBegin() );
|
||||
_this.setAttribute( "lp1pos", (int) loopEnd() );
|
||||
@@ -171,7 +171,7 @@ void timeLine::saveSettings( QDomDocument & _doc, QDomElement & _this )
|
||||
|
||||
|
||||
|
||||
void timeLine::loadSettings( const QDomElement & _this )
|
||||
void Timeline::loadSettings( const QDomElement & _this )
|
||||
{
|
||||
m_loopPos[0] = _this.attribute( "lp0pos" ).toInt();
|
||||
m_loopPos[1] = _this.attribute( "lp1pos" ).toInt();
|
||||
@@ -184,7 +184,7 @@ void timeLine::loadSettings( const QDomElement & _this )
|
||||
|
||||
|
||||
|
||||
void timeLine::updatePosition( const MidiTime & )
|
||||
void Timeline::updatePosition( const MidiTime & )
|
||||
{
|
||||
const int new_x = markerX( m_pos );
|
||||
|
||||
@@ -200,7 +200,7 @@ void timeLine::updatePosition( const MidiTime & )
|
||||
|
||||
|
||||
|
||||
void timeLine::toggleAutoScroll( int _n )
|
||||
void Timeline::toggleAutoScroll( int _n )
|
||||
{
|
||||
m_autoScroll = static_cast<AutoScrollStates>( _n );
|
||||
}
|
||||
@@ -208,7 +208,7 @@ void timeLine::toggleAutoScroll( int _n )
|
||||
|
||||
|
||||
|
||||
void timeLine::toggleLoopPoints( int _n )
|
||||
void Timeline::toggleLoopPoints( int _n )
|
||||
{
|
||||
m_loopPoints = static_cast<LoopPointStates>( _n );
|
||||
update();
|
||||
@@ -217,7 +217,7 @@ void timeLine::toggleLoopPoints( int _n )
|
||||
|
||||
|
||||
|
||||
void timeLine::toggleBehaviourAtStop( int _n )
|
||||
void Timeline::toggleBehaviourAtStop( int _n )
|
||||
{
|
||||
m_behaviourAtStop = static_cast<BehaviourAtStopStates>( _n );
|
||||
}
|
||||
@@ -225,7 +225,7 @@ void timeLine::toggleBehaviourAtStop( int _n )
|
||||
|
||||
|
||||
|
||||
void timeLine::paintEvent( QPaintEvent * )
|
||||
void Timeline::paintEvent( QPaintEvent * )
|
||||
{
|
||||
QPainter p( this );
|
||||
|
||||
@@ -274,7 +274,7 @@ void timeLine::paintEvent( QPaintEvent * )
|
||||
|
||||
|
||||
|
||||
void timeLine::mousePressEvent( QMouseEvent* event )
|
||||
void Timeline::mousePressEvent( QMouseEvent* event )
|
||||
{
|
||||
if( event->x() < m_xOffset )
|
||||
{
|
||||
@@ -331,7 +331,7 @@ void timeLine::mousePressEvent( QMouseEvent* event )
|
||||
|
||||
|
||||
|
||||
void timeLine::mouseMoveEvent( QMouseEvent* event )
|
||||
void Timeline::mouseMoveEvent( QMouseEvent* event )
|
||||
{
|
||||
const MidiTime t = m_begin + static_cast<int>( qMax( event->x() - m_xOffset - m_moveXOff, 0 ) * MidiTime::ticksPerTact() / m_ppt );
|
||||
|
||||
@@ -381,7 +381,7 @@ void timeLine::mouseMoveEvent( QMouseEvent* event )
|
||||
|
||||
|
||||
|
||||
void timeLine::mouseReleaseEvent( QMouseEvent* event )
|
||||
void Timeline::mouseReleaseEvent( QMouseEvent* event )
|
||||
{
|
||||
delete m_hint;
|
||||
m_hint = NULL;
|
||||
@@ -54,7 +54,7 @@
|
||||
#include "pixmap_button.h"
|
||||
#include "templates.h"
|
||||
#include "gui_templates.h"
|
||||
#include "timeline.h"
|
||||
#include "Timeline.h"
|
||||
#include "tooltip.h"
|
||||
#include "tool_button.h"
|
||||
#include "text_float.h"
|
||||
@@ -132,7 +132,7 @@ AutomationEditor::AutomationEditor() :
|
||||
setAttribute( Qt::WA_OpaquePaintEvent, true );
|
||||
|
||||
// add time-line
|
||||
m_timeLine = new timeLine( VALUES_WIDTH, 32, m_ppt,
|
||||
m_timeLine = new Timeline( VALUES_WIDTH, 32, m_ppt,
|
||||
Engine::getSong()->getPlayPos(
|
||||
Song::Mode_PlayAutomationPattern ),
|
||||
m_currentPosition, this );
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
#include "SongEditor.h"
|
||||
#include "templates.h"
|
||||
#include "text_float.h"
|
||||
#include "timeline.h"
|
||||
#include "Timeline.h"
|
||||
#include "tool_button.h"
|
||||
#include "text_float.h"
|
||||
|
||||
@@ -291,7 +291,7 @@ PianoRoll::PianoRoll() :
|
||||
setAttribute( Qt::WA_OpaquePaintEvent, true );
|
||||
|
||||
// add time-line
|
||||
m_timeLine = new timeLine( WHITE_KEY_WIDTH, 32, m_ppt,
|
||||
m_timeLine = new Timeline( WHITE_KEY_WIDTH, 32, m_ppt,
|
||||
Engine::getSong()->getPlayPos(
|
||||
Song::Mode_PlayPattern ),
|
||||
m_currentPosition, this );
|
||||
@@ -4166,7 +4166,7 @@ void PianoRoll::updatePosition( const MidiTime & _t )
|
||||
if( ( Engine::getSong()->isPlaying() &&
|
||||
Engine::getSong()->playMode() ==
|
||||
Song::Mode_PlayPattern &&
|
||||
m_timeLine->autoScroll() == timeLine::AutoScrollEnabled ) ||
|
||||
m_timeLine->autoScroll() == Timeline::AutoScrollEnabled ) ||
|
||||
m_scrollBack == true )
|
||||
{
|
||||
autoScroll( _t );
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
#include "MainWindow.h"
|
||||
#include "MeterDialog.h"
|
||||
#include "text_float.h"
|
||||
#include "timeline.h"
|
||||
#include "Timeline.h"
|
||||
#include "tool_button.h"
|
||||
#include "tooltip.h"
|
||||
#include "visualization_widget.h"
|
||||
@@ -91,7 +91,7 @@ SongEditor::SongEditor( Song * _song ) :
|
||||
"compacttrackbuttons" ).toInt()==1 ?
|
||||
DEFAULT_SETTINGS_WIDGET_WIDTH_COMPACT + TRACK_OP_WIDTH_COMPACT :
|
||||
DEFAULT_SETTINGS_WIDGET_WIDTH + TRACK_OP_WIDTH;
|
||||
m_timeLine = new timeLine( widgetTotal, 32,
|
||||
m_timeLine = new Timeline( widgetTotal, 32,
|
||||
pixelsPerTact(),
|
||||
m_song->m_playPos[Song::Mode_PlaySong],
|
||||
m_currentPosition, this );
|
||||
@@ -717,7 +717,7 @@ void SongEditor::updatePosition( const MidiTime & _t )
|
||||
}
|
||||
|
||||
if( ( m_song->isPlaying() && m_song->m_playMode == Song::Mode_PlaySong
|
||||
&& m_timeLine->autoScroll() == timeLine::AutoScrollEnabled) ||
|
||||
&& m_timeLine->autoScroll() == Timeline::AutoScrollEnabled) ||
|
||||
m_scrollBack == true )
|
||||
{
|
||||
const int w = width() - widgetWidth
|
||||
|
||||
Reference in New Issue
Block a user