Skip to content

Commit

Permalink
add namespace Ms
Browse files Browse the repository at this point in the history
  • Loading branch information
wschweer committed May 13, 2013
1 parent f74e759 commit 9ebabcc
Show file tree
Hide file tree
Showing 604 changed files with 7,730 additions and 5,499 deletions.
7 changes: 4 additions & 3 deletions aeolus/aeolus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@
#include "aeolus.h"
#include "model.h"

extern QString dataPath;
extern QString mscoreGlobalShare;
namespace Ms {
extern QString dataPath;
extern QString mscoreGlobalShare;
};

#include "synthesizer/event.h"
#include "libmscore/xml.h"
Expand All @@ -46,7 +48,6 @@ Synthesizer* createAeolus()
return new Aeolus();
}


//---------------------------------------------------------
// Aeolus
//---------------------------------------------------------
Expand Down
13 changes: 9 additions & 4 deletions aeolus/aeolus.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
#ifndef __AEOLUS_H__
#define __AEOLUS_H__

struct MidiPatch;
class Event;

#include "stdint.h"
#include "synthesizer/synthesizer.h"
#include "synthesizer/midipatch.h"
Expand All @@ -32,11 +29,19 @@ class Event;
#include "division.h"
#include "global.h"


namespace Ms {
struct MidiPatch;
class Event;
class ParDescr;
}

using namespace Ms;

class Model;
// class M_audio_info;
class M_new_divis;
class M_ifc_init;
class ParDescr;

//---------------------------------------------------------
// Synth
Expand Down
2 changes: 1 addition & 1 deletion aeolus/asection.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
#ifndef __ASECTION_H
#define __ASECTION_H


#include "global.h"

using namespace Ms;

#define PERIOD 64
#define MIXLEN 64
Expand Down
3 changes: 2 additions & 1 deletion aeolus/sparm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@

#include "libmscore/xml.h"
#include "sparm_p.h"
// #include "synti.h"

using namespace Ms;

//---------------------------------------------------------
// SyntiParameterData
Expand Down
9 changes: 6 additions & 3 deletions aeolus/sparm.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@
#ifndef __SPARM_H__
#define __SPARM_H__

class Xml;
class Synth;
namespace Ms {
class Xml;
class Synth;
}

class SyntiParameterData;

//---------------------------------------------------------
Expand Down Expand Up @@ -52,7 +55,7 @@ class SyntiParameter {

SyntiParameterType type() const;

void write(Xml&) const;
void write(Ms::Xml&) const;

const QString& name() const;
void setName(const QString& s);
Expand Down
2 changes: 1 addition & 1 deletion aeolus/sparm_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class SyntiParameterData : public QSharedData {
SyntiParameterData(int id, const QString& name, const QString& val);
SyntiParameterData(const SyntiParameterData& pd);

virtual void write(Xml&) const;
virtual void write(Ms::Xml&) const;
virtual bool operator==(const SyntiParameterData&) const;
virtual void print() const;

Expand Down
3 changes: 2 additions & 1 deletion awl/poslabel.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "libmscore/pos.h"

namespace Awl {
using namespace Ms;

//---------------------------------------------------------
// PosLabel
Expand All @@ -40,7 +41,7 @@ class PosLabel : public QLabel {
QSize sizeHint() const;

public slots:
void setValue(const Pos&);
void setValue(const Ms::Pos&);

public:
PosLabel(QWidget* parent = 0);
Expand Down
8 changes: 4 additions & 4 deletions effects/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ endif (APPLE)

QT4_ADD_RESOURCES (qrc_effects_files
zita1/zita.qrc
freeverb/freeverb.qrc
# freeverb/freeverb.qrc
noeffect/noeffect.qrc
)

QT4_WRAP_CPP(effectMocs
effectgui.h
freeverb/freeverb.h
# freeverb/freeverb.h
zita1/zita.h
noeffect/noeffect.h
effect.h
Expand All @@ -40,8 +40,8 @@ add_library (effects STATIC
effect.cpp
effectgui.cpp
noeffect/noeffect.cpp
freeverb/freeverb.cpp
freeverb/freeverbgui.cpp
# freeverb/freeverb.cpp
# freeverb/freeverbgui.cpp
zita1/zita.cpp
zita1/zitagui.cpp
${INCS}
Expand Down
3 changes: 3 additions & 0 deletions effects/effect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

#include "effect.h"

namespace Ms {

//---------------------------------------------------------
// parameter
//---------------------------------------------------------
Expand Down Expand Up @@ -75,4 +77,5 @@ double Effect::value(int idx) const
v = (v - p->min)/(p->max - p->min);
return v;
}
}

4 changes: 3 additions & 1 deletion effects/effect.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
#include <vector>
#include "libmscore/synthesizerstate.h"

namespace Ms {

class EffectGui;

//---------------------------------------------------------
Expand Down Expand Up @@ -67,6 +69,6 @@ class Effect : public QObject {

virtual EffectGui* gui() { return _gui; }
};

}
#endif

3 changes: 3 additions & 0 deletions effects/effectgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
#include "effect.h"
#include <QDeclarativeContext>

namespace Ms {

//---------------------------------------------------------
// EffectGui
//---------------------------------------------------------
Expand Down Expand Up @@ -70,4 +72,5 @@ void EffectGui::updateValues()
}
}
}
}

3 changes: 3 additions & 0 deletions effects/effectgui.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
#ifndef __EFFECTGUI_H__
#define __EFFECTGUI_H__

namespace Ms {

class Effect;

//---------------------------------------------------------
Expand All @@ -36,5 +38,6 @@ class EffectGui : public QDeclarativeView {
virtual void updateValues();
};

}
#endif

3 changes: 3 additions & 0 deletions effects/noeffect/noeffect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
#include "effects/effectgui.h"
#include "noeffect.h"

namespace Ms {

static const std::vector<ParDescr> noeffectPd;

//---------------------------------------------------------
Expand Down Expand Up @@ -42,4 +44,5 @@ void NoEffect::process(int n, float* src, float* dst)
memcpy(dst, src, n * 2 * sizeof(float));
}

}

3 changes: 3 additions & 0 deletions effects/noeffect/noeffect.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

#include "effects/effect.h"

namespace Ms {

class EffectGui;

//---------------------------------------------------------
Expand All @@ -40,6 +42,7 @@ class NoEffect : public Effect
virtual EffectGui* gui();
virtual const std::vector<ParDescr>& parDescr() const;
};
}

#endif

3 changes: 3 additions & 0 deletions effects/zita1/zita.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
#include <math.h>
#include "zita.h"

namespace Ms {

enum {
R_DELAY, R_XOVER, R_RTLOW, R_RTMID, R_FDAMP,
R_EQ1FR, R_EQ1GN,
Expand Down Expand Up @@ -552,4 +554,5 @@ void ZitaReverb::setState(const SynthesizerGroup& g)
for (const IdValue& v : g)
setValue(v.id, v.data.toDouble());
}
}

3 changes: 3 additions & 0 deletions effects/zita1/zita.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@

#include "effects/effect.h"

namespace Ms {

class EffectGui;

//---------------------------------------------------------
Expand Down Expand Up @@ -280,6 +282,7 @@ class ZitaReverb : public Effect
virtual SynthesizerGroup state() const;
virtual void setState(const SynthesizerGroup&);
};
}

#endif

5 changes: 5 additions & 0 deletions effects/zita1/zitagui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
#include "zita.h"
#include "effects/effectgui.h"

namespace Ms {

//---------------------------------------------------------
// gui
//---------------------------------------------------------
Expand All @@ -27,3 +29,6 @@ EffectGui* ZitaReverb::gui()
_gui->init(url);
return _gui;
}

}

1 change: 1 addition & 0 deletions fluid/fluid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include "voice.h"

namespace FluidS {
using namespace Ms;

/***************************************************************
*
Expand Down
2 changes: 2 additions & 0 deletions fluid/fluid.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@

namespace FluidS {

using namespace Ms;

class Voice;
class SFont;
class Preset;
Expand Down
3 changes: 2 additions & 1 deletion fluid/fluidgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@
//=============================================================================

#include "fluidgui.h"

#include "mscore/preferences.h"

using namespace Ms;

SfListDialog::SfListDialog()
: QDialog(0)
{
Expand Down
4 changes: 2 additions & 2 deletions fluid/fluidgui.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class SfListDialog : public QDialog {
// FluidGui
//---------------------------------------------------------

class FluidGui : public SynthesizerGui, Ui::FluidGui {
class FluidGui : public Ms::SynthesizerGui, Ui::FluidGui {
Q_OBJECT

FluidS::Fluid* fluid() { return static_cast<FluidS::Fluid*>(synthesizer()); }
Expand All @@ -57,7 +57,7 @@ class FluidGui : public SynthesizerGui, Ui::FluidGui {
virtual void synthesizerChanged();

public:
FluidGui(Synthesizer*);
FluidGui(Ms::Synthesizer*);
};

#endif
Expand Down
4 changes: 4 additions & 0 deletions libmscore/accidental.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
#include "staff.h"
#include "undo.h"

namespace Ms {

//---------------------------------------------------------
// Acc
//---------------------------------------------------------
Expand Down Expand Up @@ -481,3 +483,5 @@ AccidentalBracket::AccidentalBracket(Score* s)
addElement(s2, s2->bbox().width() - s2->bbox().x(), 0.0);
}

}

14 changes: 10 additions & 4 deletions libmscore/accidental.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,12 @@
#include "element.h"
#include "mscore.h"

class Note;
class QPainter;

namespace Ms {

class Note;

//---------------------------------------------------------
// SymElement
//---------------------------------------------------------
Expand Down Expand Up @@ -141,9 +144,6 @@ class Accidental : public Element {
static AccidentalType name2subtype(const QString&);
};

Q_DECLARE_METATYPE(Accidental::AccidentalRole)
Q_DECLARE_METATYPE(Accidental::AccidentalType)

//---------------------------------------------------------
// @@ AccidentalBracket
/// used as icon in palette
Expand All @@ -158,5 +158,11 @@ class AccidentalBracket : public Compound {
virtual ElementType type() const { return ACCIDENTAL_BRACKET; }
};


} // namespace Ms

Q_DECLARE_METATYPE(Ms::Accidental::AccidentalRole)
Q_DECLARE_METATYPE(Ms::Accidental::AccidentalType)

#endif

Loading

0 comments on commit 9ebabcc

Please sign in to comment.