Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Rename a lot of classes
* aboutDialog -> AboutDialog
* bbEditor -> BBEditor
* exportProjectDialog -> ExportProjectDialog
* setupDialog -> SetupDialog
* stringPairDrag -> StringPairDrag
  • Loading branch information
lukas-w committed Nov 26, 2014
commit 95798da9d002f7b029594a5a28431aab5ecf4378
6 changes: 3 additions & 3 deletions include/AboutDialog.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* AboutDialog.h - declaration of class aboutDialog
* AboutDialog.h - declaration of class AboutDialog
*
* Copyright (c) 2004-2008 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
Expand Down Expand Up @@ -31,10 +31,10 @@
#include "ui_about_dialog.h"


class aboutDialog : public QDialog, public Ui::AboutDialog
class AboutDialog : public QDialog, public Ui::AboutDialog
{
public:
aboutDialog( void );
AboutDialog( void );

} ;

Expand Down
6 changes: 3 additions & 3 deletions include/BBEditor.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ class ComboBox;
class ToolButton;


class bbEditor : public TrackContainerView
class BBEditor : public TrackContainerView
{
Q_OBJECT
public:
bbEditor( BBTrackContainer * _tc );
virtual ~bbEditor();
BBEditor( BBTrackContainer * _tc );
virtual ~BBEditor();

virtual inline bool fixedTCOs() const
{
Expand Down
2 changes: 1 addition & 1 deletion include/BBTrackContainer.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public slots:
ComboBoxModel m_bbComboBoxModel;


friend class bbEditor;
friend class BBEditor;

} ;

Expand Down
6 changes: 3 additions & 3 deletions include/Engine.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include "export.h"

class AutomationEditor;
class bbEditor;
class BBEditor;
class BBTrackContainer;
class DummyTrackContainer;
class FxMixer;
Expand Down Expand Up @@ -113,7 +113,7 @@ class EXPORT Engine
return s_songEditor;
}

static bbEditor * getBBEditor()
static BBEditor * getBBEditor()
{
return s_bbEditor;
}
Expand Down Expand Up @@ -189,7 +189,7 @@ class EXPORT Engine
static FxMixerView * s_fxMixerView;
static SongEditor* s_songEditor;
static AutomationEditor * s_automationEditor;
static bbEditor * s_bbEditor;
static BBEditor * s_bbEditor;
static PianoRoll* s_pianoRoll;
static ProjectNotes * s_projectNotes;
static Ladspa2LMMS * s_ladspaManager;
Expand Down
8 changes: 4 additions & 4 deletions include/ExportProjectDialog.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* ExportProjectDialog.h - declaration of class exportProjectDialog which is
* ExportProjectDialog.h - declaration of class ExportProjectDialog which is
* responsible for exporting project
*
* Copyright (c) 2004-2012 Tobias Doerffel <tobydox/at/users.sourceforge.net>
Expand Down Expand Up @@ -34,12 +34,12 @@
#include "ProjectRenderer.h"


class exportProjectDialog : public QDialog, public Ui::ExportProjectDialog
class ExportProjectDialog : public QDialog, public Ui::ExportProjectDialog
{
Q_OBJECT
public:
exportProjectDialog( const QString & _file_name, QWidget * _parent, bool multi_export );
virtual ~exportProjectDialog();
ExportProjectDialog( const QString & _file_name, QWidget * _parent, bool multi_export );
virtual ~ExportProjectDialog();


protected:
Expand Down
2 changes: 1 addition & 1 deletion include/Pattern.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ protected slots:
int m_steps;

friend class PatternView;
friend class bbEditor;
friend class BBEditor;


signals:
Expand Down
6 changes: 3 additions & 3 deletions include/SetupDialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class QSlider;
class TabBar;


class setupDialog : public QDialog
class SetupDialog : public QDialog
{
Q_OBJECT
public:
Expand All @@ -54,8 +54,8 @@ class setupDialog : public QDialog
MidiSettings
} ;

setupDialog( ConfigTabs _tab_to_open = GeneralSettings );
virtual ~setupDialog();
SetupDialog( ConfigTabs _tab_to_open = GeneralSettings );
virtual ~SetupDialog();


protected slots:
Expand Down
8 changes: 4 additions & 4 deletions include/StringPairDrag.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* StringPairDrag.h - class stringPairDrag which provides general support
* StringPairDrag.h - class StringPairDrag which provides general support
* for drag'n'drop of string-pairs
*
* Copyright (c) 2005-2007 Tobias Doerffel <tobydox/at/users.sourceforge.net>
Expand Down Expand Up @@ -36,12 +36,12 @@
class QPixmap;


class EXPORT stringPairDrag : public QDrag
class EXPORT StringPairDrag : public QDrag
{
public:
stringPairDrag( const QString & _key, const QString & _value,
StringPairDrag( const QString & _key, const QString & _value,
const QPixmap & _icon, QWidget * _w );
~stringPairDrag();
~StringPairDrag();

static bool processDragEnterEvent( QDragEnterEvent * _dee,
const QString & _allowed_keys );
Expand Down
8 changes: 4 additions & 4 deletions plugins/audio_file_processor/audio_file_processor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -605,10 +605,10 @@ AudioFileProcessorView::~AudioFileProcessorView()

void AudioFileProcessorView::dragEnterEvent( QDragEnterEvent * _dee )
{
if( _dee->mimeData()->hasFormat( stringPairDrag::mimeType() ) )
if( _dee->mimeData()->hasFormat( StringPairDrag::mimeType() ) )
{
QString txt = _dee->mimeData()->data(
stringPairDrag::mimeType() );
StringPairDrag::mimeType() );
if( txt.section( ':', 0, 0 ) == QString( "tco_%1" ).arg(
Track::SampleTrack ) )
{
Expand All @@ -634,8 +634,8 @@ void AudioFileProcessorView::dragEnterEvent( QDragEnterEvent * _dee )

void AudioFileProcessorView::dropEvent( QDropEvent * _de )
{
QString type = stringPairDrag::decodeKey( _de );
QString value = stringPairDrag::decodeValue( _de );
QString type = StringPairDrag::decodeKey( _de );
QString value = StringPairDrag::decodeValue( _de );
if( type == "samplefile" )
{
castModel<audioFileProcessor>()->setAudioFile( value );
Expand Down
8 changes: 4 additions & 4 deletions plugins/patman/patman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -588,10 +588,10 @@ void PatmanView::updateFilename( void )

void PatmanView::dragEnterEvent( QDragEnterEvent * _dee )
{
if( _dee->mimeData()->hasFormat( stringPairDrag::mimeType() ) )
if( _dee->mimeData()->hasFormat( StringPairDrag::mimeType() ) )
{
QString txt = _dee->mimeData()->data(
stringPairDrag::mimeType() );
StringPairDrag::mimeType() );
if( txt.section( ':', 0, 0 ) == "samplefile" )
{
_dee->acceptProposedAction();
Expand All @@ -612,8 +612,8 @@ void PatmanView::dragEnterEvent( QDragEnterEvent * _dee )

void PatmanView::dropEvent( QDropEvent * _de )
{
QString type = stringPairDrag::decodeKey( _de );
QString value = stringPairDrag::decodeValue( _de );
QString type = StringPairDrag::decodeKey( _de );
QString value = StringPairDrag::decodeValue( _de );
if( type == "samplefile" )
{
m_pi->setFile( value );
Expand Down
16 changes: 8 additions & 8 deletions plugins/vestige/vestige.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -791,10 +791,10 @@ void VestigeInstrumentView::noteOffAll( void )

void VestigeInstrumentView::dragEnterEvent( QDragEnterEvent * _dee )
{
if( _dee->mimeData()->hasFormat( stringPairDrag::mimeType() ) )
if( _dee->mimeData()->hasFormat( StringPairDrag::mimeType() ) )
{
QString txt = _dee->mimeData()->data(
stringPairDrag::mimeType() );
StringPairDrag::mimeType() );
if( txt.section( ':', 0, 0 ) == "vstplugin" )
{
_dee->acceptProposedAction();
Expand All @@ -815,8 +815,8 @@ void VestigeInstrumentView::dragEnterEvent( QDragEnterEvent * _dee )

void VestigeInstrumentView::dropEvent( QDropEvent * _de )
{
QString type = stringPairDrag::decodeKey( _de );
QString value = stringPairDrag::decodeValue( _de );
QString type = StringPairDrag::decodeKey( _de );
QString value = StringPairDrag::decodeValue( _de );
if( type == "vstplugin" )
{
m_vi->loadFile( value );
Expand Down Expand Up @@ -1105,10 +1105,10 @@ void manageVestigeInstrumentView::setParameter( void )

void manageVestigeInstrumentView::dragEnterEvent( QDragEnterEvent * _dee )
{
if( _dee->mimeData()->hasFormat( stringPairDrag::mimeType() ) )
if( _dee->mimeData()->hasFormat( StringPairDrag::mimeType() ) )
{
QString txt = _dee->mimeData()->data(
stringPairDrag::mimeType() );
StringPairDrag::mimeType() );
if( txt.section( ':', 0, 0 ) == "vstplugin" )
{
_dee->acceptProposedAction();
Expand All @@ -1129,8 +1129,8 @@ void manageVestigeInstrumentView::dragEnterEvent( QDragEnterEvent * _dee )

void manageVestigeInstrumentView::dropEvent( QDropEvent * _de )
{
QString type = stringPairDrag::decodeKey( _de );
QString value = stringPairDrag::decodeValue( _de );
QString type = StringPairDrag::decodeKey( _de );
QString value = StringPairDrag::decodeValue( _de );
if( type == "vstplugin" )
{
m_vi->loadFile( value );
Expand Down
8 changes: 4 additions & 4 deletions plugins/zynaddsubfx/ZynAddSubFx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -571,10 +571,10 @@ ZynAddSubFxView::~ZynAddSubFxView()

void ZynAddSubFxView::dragEnterEvent( QDragEnterEvent * _dee )
{
if( _dee->mimeData()->hasFormat( stringPairDrag::mimeType() ) )
if( _dee->mimeData()->hasFormat( StringPairDrag::mimeType() ) )
{
QString txt = _dee->mimeData()->data(
stringPairDrag::mimeType() );
StringPairDrag::mimeType() );
if( txt.section( ':', 0, 0 ) == "pluginpresetfile" )
{
_dee->acceptProposedAction();
Expand All @@ -595,8 +595,8 @@ void ZynAddSubFxView::dragEnterEvent( QDragEnterEvent * _dee )

void ZynAddSubFxView::dropEvent( QDropEvent * _de )
{
const QString type = stringPairDrag::decodeKey( _de );
const QString value = stringPairDrag::decodeValue( _de );
const QString type = StringPairDrag::decodeKey( _de );
const QString value = StringPairDrag::decodeValue( _de );
if( type == "pluginpresetfile" )
{
castModel<ZynAddSubFxInstrument>()->loadFile( value );
Expand Down
4 changes: 2 additions & 2 deletions src/core/Engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ BBTrackContainer * Engine::s_bbTrackContainer = NULL;
Song * Engine::s_song = NULL;
SongEditor* Engine::s_songEditor = NULL;
AutomationEditor * Engine::s_automationEditor = NULL;
bbEditor * Engine::s_bbEditor = NULL;
BBEditor * Engine::s_bbEditor = NULL;
PianoRoll* Engine::s_pianoRoll = NULL;
ProjectNotes * Engine::s_projectNotes = NULL;
ProjectJournal * Engine::s_projectJournal = NULL;
Expand Down Expand Up @@ -97,7 +97,7 @@ void Engine::init( const bool _has_gui )
s_fxMixerView = new FxMixerView;
s_controllerRackView = new ControllerRackView;
s_projectNotes = new ProjectNotes;
s_bbEditor = new bbEditor( s_bbTrackContainer );
s_bbEditor = new BBEditor( s_bbTrackContainer );
s_pianoRoll = new PianoRoll;
s_automationEditor = new AutomationEditor;

Expand Down
2 changes: 1 addition & 1 deletion src/core/Song.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1221,7 +1221,7 @@ void Song::exportProject(bool multiExport)
}

const QString export_file_name = efd.selectedFiles()[0] + suffix;
exportProjectDialog epd( export_file_name, Engine::mainWindow(), multiExport );
ExportProjectDialog epd( export_file_name, Engine::mainWindow(), multiExport );
epd.exec();
}
}
Expand Down
Loading