1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Moved all "namespace juce" declarations from module headers to the individual .h and .cpp source files. This makes life a lot easier for Intellisense and other IDE autocompletion tools

This commit is contained in:
jules 2017-09-08 08:59:55 +01:00
parent b58a0f4be7
commit eda613c6db
1069 changed files with 5367 additions and 1845 deletions

View file

@ -24,7 +24,9 @@
==============================================================================
*/
//==============================================================================
namespace juce
{
#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD) \
METHOD (getMidiBluetoothAddresses, "getMidiBluetoothAddresses", "()[Ljava/lang/String;") \
METHOD (pairBluetoothMidiDevice, "pairBluetoothMidiDevice", "(Ljava/lang/String;)Z") \
@ -482,3 +484,5 @@ bool BluetoothMidiDevicePairingDialogue::isAvailable()
jobject btManager (android.activity.callObjectMethod (JuceAppActivity.getAndroidBluetoothManager));
return btManager != nullptr;
}
} // namespace juce

View file

@ -31,8 +31,6 @@
// It is also not available in the iPhone/iPad simulator.
#if JUCE_MODULE_AVAILABLE_juce_gui_extra && ! TARGET_IPHONE_SIMULATOR
} // (juce namespace)
#include <CoreAudioKit/CoreAudioKit.h>
namespace juce
@ -118,14 +116,20 @@ bool BluetoothMidiDevicePairingDialogue::isAvailable()
return NSClassFromString ([NSString stringWithUTF8String: "CABTMIDICentralViewController"]) != nil;
}
} // namespace juce
//==============================================================================
#else
bool BluetoothMidiDevicePairingDialogue::open (ModalComponentManager::Callback* exitCallback)
namespace juce
{
ScopedPointer<ModalComponentManager::Callback> cb (exitCallback);
return false;
bool BluetoothMidiDevicePairingDialogue::open (ModalComponentManager::Callback* exitCallback)
{
ScopedPointer<ModalComponentManager::Callback> cb (exitCallback);
return false;
}
bool BluetoothMidiDevicePairingDialogue::isAvailable() { return false; }
}
bool BluetoothMidiDevicePairingDialogue::isAvailable() { return false; }
#endif

View file

@ -24,6 +24,9 @@
==============================================================================
*/
namespace juce
{
AudioCDReader::AudioCDReader()
: AudioFormatReader (0, "CD Audio")
{
@ -77,3 +80,5 @@ Array<int> AudioCDReader::findIndexesInTrack (const int)
{
return Array<int>();
}
} // namespace juce

View file

@ -24,6 +24,9 @@
==============================================================================
*/
namespace juce
{
bool BluetoothMidiDevicePairingDialogue::open (ModalComponentManager::Callback* exitCallback)
{
ScopedPointer<ModalComponentManager::Callback> cb (exitCallback);
@ -38,3 +41,5 @@ bool BluetoothMidiDevicePairingDialogue::isAvailable()
{
return false;
}
} // namespace juce

View file

@ -24,6 +24,9 @@
==============================================================================
*/
namespace juce
{
namespace CDReaderHelpers
{
inline const XmlElement* getElementForKey (const XmlElement& xml, const String& key)
@ -258,5 +261,7 @@ int AudioCDReader::getLastIndex() const
Array<int> AudioCDReader::findIndexesInTrack (const int /*trackNumber*/)
{
return Array<int>();
return {};
}
} // namespace juce

View file

@ -24,6 +24,9 @@
==============================================================================
*/
namespace juce
{
bool BluetoothMidiDevicePairingDialogue::open (ModalComponentManager::Callback* exitCallback)
{
ScopedPointer<ModalComponentManager::Callback> cb (exitCallback);
@ -37,3 +40,5 @@ bool BluetoothMidiDevicePairingDialogue::isAvailable()
{
return false;
}
} // namespace juce

View file

@ -24,6 +24,9 @@
==============================================================================
*/
namespace juce
{
namespace CDBurnerHelpers
{
IDiscRecorder* enumCDBurners (StringArray* list, int indexToOpen, IDiscMaster** master)
@ -411,3 +414,5 @@ bool AudioCDBurner::addAudioTrack (AudioSource* audioSource, int numSamples)
hr = pimpl->redbook->CloseAudioTrack();
return ok && hr == S_OK;
}
} // namespace juce

View file

@ -24,6 +24,9 @@
==============================================================================
*/
namespace juce
{
namespace CDReaderHelpers
{
@ -1176,7 +1179,7 @@ int AudioCDReader::getLastIndex() const
int AudioCDReader::getIndexAt (int samplePos)
{
using namespace CDReaderHelpers;
CDDeviceWrapper* const device = static_cast<CDDeviceWrapper*> (handle);
auto* device = static_cast<CDDeviceWrapper*> (handle);
const int frameNeeded = samplePos / samplesPerFrame;
@ -1210,7 +1213,7 @@ int AudioCDReader::getIndexAt (int samplePos)
Array<int> AudioCDReader::findIndexesInTrack (const int trackNumber)
{
using namespace CDReaderHelpers;
Array <int> indexes;
Array<int> indexes;
const int trackStart = getPositionOfTrackStart (trackNumber);
const int trackEnd = getPositionOfTrackStart (trackNumber + 1);
@ -1257,7 +1260,7 @@ Array<int> AudioCDReader::findIndexesInTrack (const int trackNumber)
if (needToScan)
{
CDDeviceWrapper* const device = static_cast<CDDeviceWrapper*> (handle);
auto* device = static_cast<CDDeviceWrapper*> (handle);
int pos = trackStart;
int last = -1;
@ -1309,3 +1312,5 @@ void AudioCDReader::ejectDisk()
using namespace CDReaderHelpers;
static_cast<CDDeviceWrapper*> (handle)->deviceHandle.openDrawer (true);
}
} // namespace juce

View file

@ -24,6 +24,9 @@
==============================================================================
*/
namespace juce
{
bool BluetoothMidiDevicePairingDialogue::open (ModalComponentManager::Callback* exitCallback)
{
ScopedPointer<ModalComponentManager::Callback> cb (exitCallback);
@ -38,3 +41,5 @@ bool BluetoothMidiDevicePairingDialogue::isAvailable()
{
return false;
}
} // namespace juce