Browse Source

Couple of minor jucer tweaks.

tags/2021-05-28
Julian Storer 15 years ago
parent
commit
12a6bdaa03
4 changed files with 11 additions and 9 deletions
  1. +2
    -2
      extras/Jucer (experimental)/Source/BinaryData/jucer_AudioPluginFilterTemplate.cpp
  2. +2
    -2
      extras/Jucer (experimental)/Source/BinaryData/jucer_AudioPluginFilterTemplate.h
  3. +5
    -5
      extras/Jucer (experimental)/Source/Project/jucer_Project.cpp
  4. +2
    -0
      extras/Jucer (experimental)/Source/Project/jucer_Project.h

+ 2
- 2
extras/Jucer (experimental)/Source/BinaryData/jucer_AudioPluginFilterTemplate.cpp View File

@@ -50,12 +50,12 @@ const String FILTERCLASSNAME::getParameterText (int index)
return String::empty;
}
const String FILTERCLASSNAME::getInputChannelName (const int channelIndex) const
const String FILTERCLASSNAME::getInputChannelName (int channelIndex) const
{
return String (channelIndex + 1);
}
const String FILTERCLASSNAME::getOutputChannelName (const int channelIndex) const
const String FILTERCLASSNAME::getOutputChannelName (int channelIndex) const
{
return String (channelIndex + 1);
}


+ 2
- 2
extras/Jucer (experimental)/Source/BinaryData/jucer_AudioPluginFilterTemplate.h View File

@@ -45,8 +45,8 @@ public:
const String getParameterName (int index);
const String getParameterText (int index);
const String getInputChannelName (const int channelIndex) const;
const String getOutputChannelName (const int channelIndex) const;
const String getInputChannelName (int channelIndex) const;
const String getOutputChannelName (int channelIndex) const;
bool isInputChannelStereoPair (int index) const;
bool isOutputChannelStereoPair (int index) const;


+ 5
- 5
extras/Jucer (experimental)/Source/Project/jucer_Project.cpp View File

@@ -58,6 +58,8 @@ Project::Project (const File& file_)
setChangedFlag (false);
mainProjectIcon.setImage (ImageCache::getFromMemory (BinaryData::juce_icon_png, BinaryData::juce_icon_pngSize));
projectRoot.addListener (this);
}
@@ -755,12 +757,10 @@ const Drawable* Project::Item::getIcon() const
}
else if (isMainGroup())
{
static DrawableImage im;
im.setImage (ImageCache::getFromMemory (BinaryData::juce_icon_png, BinaryData::juce_icon_pngSize));
return &im;
return &(getProject().mainProjectIcon);
}
else
return LookAndFeel::getDefaultLookAndFeel().getDefaultFolderImage();
return LookAndFeel::getDefaultLookAndFeel().getDefaultFolderImage();
}
//==============================================================================


+ 2
- 0
extras/Jucer (experimental)/Source/Project/jucer_Project.h View File

@@ -312,8 +312,10 @@ public:
static void resaveJucerFile (const File& file);
private:
friend class Item;
ValueTree projectRoot;
static File lastDocumentOpened;
DrawableImage mainProjectIcon;
const File getLocalJuceFolder();
void updateProjectSettings();


Loading…
Cancel
Save