mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
CMake: Update pip templates with explicit namespaces
This commit is contained in:
parent
f79c49a171
commit
b6b8809eec
2 changed files with 11 additions and 11 deletions
|
|
@ -10,7 +10,7 @@
|
||||||
#include "${JUCE_PIP_HEADER}"
|
#include "${JUCE_PIP_HEADER}"
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
AudioProcessor* JUCE_CALLTYPE createPluginFilter()
|
juce::AudioProcessor* JUCE_CALLTYPE createPluginFilter()
|
||||||
{
|
{
|
||||||
return new ${JUCE_PIP_MAIN_CLASS}();
|
return new ${JUCE_PIP_MAIN_CLASS}();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,16 +9,16 @@
|
||||||
#include <JuceHeader.h>
|
#include <JuceHeader.h>
|
||||||
#include "${JUCE_PIP_HEADER}"
|
#include "${JUCE_PIP_HEADER}"
|
||||||
|
|
||||||
class Application : public JUCEApplication
|
class Application : public juce::JUCEApplication
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
Application() {}
|
Application() = default;
|
||||||
|
|
||||||
const String getApplicationName() override { return "${JUCE_PIP_NAME}"; }
|
const juce::String getApplicationName() override { return "${JUCE_PIP_NAME}"; }
|
||||||
const String getApplicationVersion() override { return "${PROJECT_VERSION}"; }
|
const juce::String getApplicationVersion() override { return "${PROJECT_VERSION}"; }
|
||||||
|
|
||||||
void initialise (const String&) override
|
void initialise (const juce::String&) override
|
||||||
{
|
{
|
||||||
mainWindow.reset (new MainWindow ("${JUCE_PIP_NAME}", new ${JUCE_PIP_MAIN_CLASS}, *this));
|
mainWindow.reset (new MainWindow ("${JUCE_PIP_NAME}", new ${JUCE_PIP_MAIN_CLASS}, *this));
|
||||||
}
|
}
|
||||||
|
|
@ -26,13 +26,13 @@ public:
|
||||||
void shutdown() override { mainWindow = nullptr; }
|
void shutdown() override { mainWindow = nullptr; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
class MainWindow : public DocumentWindow
|
class MainWindow : public juce::DocumentWindow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
MainWindow (const String& name, Component* c, JUCEApplication& a)
|
MainWindow (const juce::String& name, juce::Component* c, JUCEApplication& a)
|
||||||
: DocumentWindow (name, Desktop::getInstance().getDefaultLookAndFeel()
|
: DocumentWindow (name, juce::Desktop::getInstance().getDefaultLookAndFeel()
|
||||||
.findColour (ResizableWindow::backgroundColourId),
|
.findColour (ResizableWindow::backgroundColourId),
|
||||||
DocumentWindow::allButtons),
|
juce::DocumentWindow::allButtons),
|
||||||
app (a)
|
app (a)
|
||||||
{
|
{
|
||||||
setUsingNativeTitleBar (true);
|
setUsingNativeTitleBar (true);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue