TrackContainer, TrackContainerView: adopted coding style

Renamed file and class names.
This commit is contained in:
Tobias Doerffel
2014-01-14 17:39:02 +01:00
parent 7105c8ac90
commit 4e5507a30a
38 changed files with 278 additions and 284 deletions

View File

@@ -2,7 +2,7 @@
* AutomationTrack.h - declaration of class AutomationTrack, which handles
* automation of objects without a track
*
* Copyright (c) 2008-2010 Tobias Doerffel <tobydox/at/users.sourceforge.net>
* Copyright (c) 2008-2014 Tobias Doerffel <tobydox/at/users.sourceforge.net>
* Copyright (c) 2006-2008 Javier Serrano Polo <jasp00/at/users.sourceforge.net>
*
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
@@ -33,7 +33,7 @@
class AutomationTrack : public track
{
public:
AutomationTrack( trackContainer * _tc, bool _hidden = false );
AutomationTrack( TrackContainer* tc, bool _hidden = false );
virtual ~AutomationTrack();
virtual bool play( const midiTime & _start, const fpp_t _frames,
@@ -45,7 +45,7 @@ public:
return "automationtrack";
}
virtual trackView * createView( trackContainerView * );
virtual trackView * createView( TrackContainerView* );
virtual trackContentObject * createTCO( const midiTime & _pos );
virtual void saveTrackSpecificSettings( QDomDocument & _doc,
@@ -62,7 +62,7 @@ private:
class AutomationTrackView : public trackView
{
public:
AutomationTrackView( AutomationTrack * _at, trackContainerView * _tcv );
AutomationTrackView( AutomationTrack* at, TrackContainerView* tcv );
virtual ~AutomationTrackView();
virtual void dragEnterEvent( QDragEnterEvent * _dee );

View File

@@ -2,7 +2,7 @@
* ImportFilter.h - declaration of class ImportFilter, the base-class for all
* file import filters
*
* Copyright (c) 2006-2009 Tobias Doerffel <tobydox/at/users.sourceforge.net>
* Copyright (c) 2006-2014 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
*
@@ -31,7 +31,7 @@
#include "Plugin.h"
class trackContainer;
class TrackContainer;
class EXPORT ImportFilter : public Plugin
@@ -45,11 +45,11 @@ public:
// tries to import given file to given track-container by having all
// available import-filters to try to import the file
static void import( const QString & _file_to_import,
trackContainer * _tc );
TrackContainer* tc );
protected:
virtual bool tryImport( trackContainer * _tc ) = 0;
virtual bool tryImport( TrackContainer* tc ) = 0;
const QFile & file() const
{

View File

@@ -2,7 +2,7 @@
* InstrumentTrack.h - declaration of class InstrumentTrack, a track + window
* which holds an instrument-plugin
*
* Copyright (c) 2004-2012 Tobias Doerffel <tobydox/at/users.sourceforge.net>
* Copyright (c) 2004-2014 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
*
@@ -64,7 +64,7 @@ class EXPORT InstrumentTrack : public track, public MidiEventProcessor
Q_OBJECT
mapPropertyFromModel(int,getVolume,setVolume,m_volumeModel);
public:
InstrumentTrack( trackContainer * _tc );
InstrumentTrack( TrackContainer* tc );
virtual ~InstrumentTrack();
// used by instrument
@@ -123,7 +123,7 @@ public:
const f_cnt_t _frame_base,
Sint16 _tco_num = -1 );
// create new view for me
virtual trackView * createView( trackContainerView * _tcv );
virtual trackView * createView( TrackContainerView* tcv );
// create new track-content-object = pattern
virtual trackContentObject * createTCO( const midiTime & _pos );
@@ -254,7 +254,7 @@ class InstrumentTrackView : public trackView
{
Q_OBJECT
public:
InstrumentTrackView( InstrumentTrack * _it, trackContainerView * _tc );
InstrumentTrackView( InstrumentTrack * _it, TrackContainerView* tc );
virtual ~InstrumentTrackView();
InstrumentTrackWindow * getInstrumentTrackWindow();

View File

@@ -1,6 +1,6 @@
/*
* track_container.h - base-class for all track-containers like Song-Editor,
* BB-Editor...
* TrackContainer.h - base-class for all track-containers like Song-Editor,
* BB-Editor...
*
* Copyright (c) 2004-2009 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
@@ -34,17 +34,17 @@
class AutomationPattern;
class InstrumentTrack;
class trackContainerView;
class TrackContainerView;
class EXPORT trackContainer : public Model, public JournallingObject
class EXPORT TrackContainer : public Model, public JournallingObject
{
Q_OBJECT
public:
typedef QVector<track *> trackList;
typedef QVector<track *> TrackList;
trackContainer();
virtual ~trackContainer();
TrackContainer();
virtual ~TrackContainer();
virtual void saveSettings( QDomDocument & _doc, QDomElement & _parent );
@@ -66,7 +66,7 @@ public:
void clearAllTracks();
const trackList & tracks() const
const TrackList & tracks() const
{
return m_tracks;
}
@@ -86,16 +86,16 @@ protected:
mutable QReadWriteLock m_tracksMutex;
private:
trackList m_tracks;
TrackList m_tracks;
friend class trackContainerView;
friend class TrackContainerView;
friend class track;
} ;
class DummyTrackContainer : public trackContainer
class DummyTrackContainer : public TrackContainer
{
public:
DummyTrackContainer();

View File

@@ -1,7 +1,7 @@
/*
* track_container_view.h - view-component for trackContainer
* TrackContainerView.h - view-component for TrackContainer
*
* Copyright (c) 2004-2009 Tobias Doerffel <tobydox/at/users.sourceforge.net>
* Copyright (c) 2004-2014 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
*
@@ -36,17 +36,17 @@
class QVBoxLayout;
class trackContainer;
class TrackContainer;
class trackContainerView : public QWidget, public ModelView,
class TrackContainerView : public QWidget, public ModelView,
public JournallingObject,
public SerializingObjectHook
{
Q_OBJECT
public:
trackContainerView( trackContainer * _tc );
virtual ~trackContainerView();
TrackContainerView( TrackContainer* tc );
virtual ~TrackContainerView();
virtual void saveSettings( QDomDocument & _doc, QDomElement & _this );
virtual void loadSettings( const QDomElement & _this );
@@ -92,14 +92,14 @@ public:
}
trackContainer * model()
TrackContainer* model()
{
return( m_tc );
return m_tc;
}
const trackContainer * model() const
const TrackContainer* model() const
{
return( m_tc );
return m_tc;
}
void moveTrackViewUp( trackView * _tv );
@@ -155,18 +155,18 @@ private:
class scrollArea : public QScrollArea
{
public:
scrollArea( trackContainerView * _parent );
scrollArea( TrackContainerView* parent );
virtual ~scrollArea();
protected:
virtual void wheelEvent( QWheelEvent * _we );
private:
trackContainerView * m_trackContainerView;
TrackContainerView* m_trackContainerView;
} ;
trackContainer * m_tc;
TrackContainer* m_tc;
typedef QList<trackView *> trackViewList;
trackViewList m_trackViews;

View File

@@ -1,7 +1,7 @@
/*
* bb_editor.h - view-component of BB-Editor
*
* Copyright (c) 2004-2008 Tobias Doerffel <tobydox/at/users.sourceforge.net>
* Copyright (c) 2004-2014 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
*
@@ -26,7 +26,7 @@
#ifndef _BB_EDITOR_H
#define _BB_EDITOR_H
#include "track_container_view.h"
#include "TrackContainerView.h"
class bbTrackContainer;
@@ -34,7 +34,7 @@ class comboBox;
class toolButton;
class bbEditor : public trackContainerView
class bbEditor : public TrackContainerView
{
Q_OBJECT
public:

View File

@@ -2,7 +2,7 @@
* bb_track.h - class bbTrack, a wrapper for using bbEditor
* (which is a singleton-class) as track
*
* Copyright (c) 2004-2008 Tobias Doerffel <tobydox/at/users.sourceforge.net>
* Copyright (c) 2004-2014 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
*
@@ -33,7 +33,7 @@
#include "track.h"
class trackLabelButton;
class trackContainer;
class TrackContainer;
class bbTCO : public trackContentObject
@@ -106,14 +106,14 @@ class EXPORT bbTrack : public track
{
Q_OBJECT
public:
bbTrack( trackContainer * _tc );
bbTrack( TrackContainer* tc );
virtual ~bbTrack();
virtual bool play( const midiTime & _start,
const fpp_t _frames,
const f_cnt_t _frame_base,
Sint16 _tco_num = -1 );
virtual trackView * createView( trackContainerView * _tcv );
virtual trackView * createView( TrackContainerView* tcv );
virtual trackContentObject * createTCO( const midiTime & _pos );
virtual void saveTrackSpecificSettings( QDomDocument & _doc,
@@ -162,7 +162,7 @@ class bbTrackView : public trackView
{
Q_OBJECT
public:
bbTrackView( bbTrack * _bbt, trackContainerView * _tcv );
bbTrackView( bbTrack* bbt, TrackContainerView* tcv );
virtual ~bbTrackView();
virtual bool close();

View File

@@ -1,7 +1,7 @@
/*
* bb_track_container.h - model-component of BB-Editor
*
* Copyright (c) 2004-2009 Tobias Doerffel <tobydox/at/users.sourceforge.net>
* Copyright (c) 2004-2014 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
*
@@ -26,11 +26,11 @@
#ifndef _BB_TRACK_CONTAINER_H
#define _BB_TRACK_CONTAINER_H
#include "track_container.h"
#include "TrackContainer.h"
#include "combobox.h"
class EXPORT bbTrackContainer : public trackContainer
class EXPORT bbTrackContainer : public TrackContainer
{
Q_OBJECT
mapPropertyFromModel(int,currentBB,setCurrentBB,m_bbComboBoxModel);

View File

@@ -1,7 +1,7 @@
/*
* file_browser.h - include file for fileBrowser
*
* Copyright (c) 2004-2009 Tobias Doerffel <tobydox/at/users.sourceforge.net>
* Copyright (c) 2004-2014 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
*
@@ -40,7 +40,7 @@ class fileItem;
class InstrumentTrack;
class fileBrowserTreeWidget;
class playHandle;
class trackContainer;
class TrackContainer;
@@ -96,7 +96,7 @@ protected:
private:
void handleFile( fileItem * _fi, InstrumentTrack * _it );
void openInNewInstrumentTrack( trackContainer * _tc );
void openInNewInstrumentTrack( TrackContainer* tc );
bool m_mousePressed;

View File

@@ -2,7 +2,7 @@
* sample_track.h - class sampleTrack, a track which provides arrangement of
* samples
*
* Copyright (c) 2005-2010 Tobias Doerffel <tobydox/at/users.sourceforge.net>
* Copyright (c) 2005-2014 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
*
@@ -119,13 +119,13 @@ class sampleTrack : public track
{
Q_OBJECT
public:
sampleTrack( trackContainer * _tc );
sampleTrack( TrackContainer* tc );
virtual ~sampleTrack();
virtual bool play( const midiTime & _start, const fpp_t _frames,
const f_cnt_t _frame_base,
Sint16 _tco_num = -1 );
virtual trackView * createView( trackContainerView * _tcv );
virtual trackView * createView( TrackContainerView* tcv );
virtual trackContentObject * createTCO( const midiTime & _pos );
@@ -159,7 +159,7 @@ class sampleTrackView : public trackView
{
Q_OBJECT
public:
sampleTrackView( sampleTrack * _track, trackContainerView * _tcv );
sampleTrackView( sampleTrack * _track, TrackContainerView* tcv );
virtual ~sampleTrackView();

View File

@@ -28,7 +28,7 @@
#include <QtCore/QSharedMemory>
#include <QtCore/QVector>
#include "track_container.h"
#include "TrackContainer.h"
#include "AutomatableModel.h"
#include "Controller.h"
#include "MeterModel.h"
@@ -45,7 +45,7 @@ const bpm_t MaxTempo = 999;
const tick_t MaxSongLength = 9999 * DefaultTicksPerTact;
class EXPORT song : public trackContainer
class EXPORT song : public TrackContainer
{
Q_OBJECT
mapPropertyFromModel(int,getTempo,setTempo,m_tempoModel);

View File

@@ -2,7 +2,7 @@
* song_editor.h - declaration of class songEditor, a window where you can
* setup your songs
*
* Copyright (c) 2004-2011 Tobias Doerffel <tobydox/at/users.sourceforge.net>
* Copyright (c) 2004-2014 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
*
@@ -27,7 +27,7 @@
#ifndef _SONG_EDITOR_H
#define _SONG_EDITOR_H
#include "track_container_view.h"
#include "TrackContainerView.h"
class QLabel;
class QScrollBar;
@@ -52,7 +52,7 @@ private:
} ;
class songEditor : public trackContainerView
class songEditor : public TrackContainerView
{
Q_OBJECT
public:

View File

@@ -45,8 +45,8 @@ class pixmapButton;
class textFloat;
class track;
class trackContentObjectView;
class trackContainer;
class trackContainerView;
class TrackContainer;
class TrackContainerView;
class trackContentWidget;
class trackView;
@@ -364,12 +364,12 @@ public:
NumTrackTypes
} ;
track( TrackTypes _type, trackContainer * _tc );
track( TrackTypes _type, TrackContainer * _tc );
virtual ~track();
static track * create( TrackTypes _tt, trackContainer * _tc );
static track * create( TrackTypes _tt, TrackContainer * _tc );
static track * create( const QDomElement & _this,
trackContainer * _tc );
TrackContainer * _tc );
void clone();
@@ -384,7 +384,7 @@ public:
Sint16 _tco_num = -1 ) = 0;
virtual trackView * createView( trackContainerView * _view ) = 0;
virtual trackView * createView( TrackContainerView * _view ) = 0;
virtual trackContentObject * createTCO( const midiTime & _pos ) = 0;
virtual void saveTrackSpecificSettings( QDomDocument & _doc,
@@ -424,9 +424,9 @@ public:
tact_t length() const;
inline trackContainer * getTrackContainer() const
inline TrackContainer* trackContainer() const
{
return( m_trackContainer );
return m_trackContainer;
}
// name-stuff
@@ -461,7 +461,7 @@ public slots:
private:
trackContainer * m_trackContainer;
TrackContainer* m_trackContainer;
TrackTypes m_type;
QString m_name;
int m_height;
@@ -492,7 +492,7 @@ class trackView : public QWidget, public ModelView, public JournallingObject
{
Q_OBJECT
public:
trackView( track * _track, trackContainerView * _tcv );
trackView( track * _track, TrackContainerView* tcv );
virtual ~trackView();
inline const track * getTrack() const
@@ -505,9 +505,9 @@ public:
return( m_track );
}
inline trackContainerView * getTrackContainerView()
inline TrackContainerView* trackContainerView()
{
return( m_trackContainerView );
return m_trackContainerView;
}
inline trackOperationsWidget * getTrackOperationsWidget()
@@ -566,7 +566,7 @@ private:
} ;
track * m_track;
trackContainerView * m_trackContainerView;
TrackContainerView * m_trackContainerView;
trackOperationsWidget m_trackOperationsWidget;
trackSettingsWidget m_trackSettingsWidget;