| @@ -50,12 +50,12 @@ const String FILTERCLASSNAME::getParameterText (int index) | |||||
| return String::empty; | return String::empty; | ||||
| } | } | ||||
| const String FILTERCLASSNAME::getInputChannelName (const int channelIndex) const | |||||
| const String FILTERCLASSNAME::getInputChannelName (int channelIndex) const | |||||
| { | { | ||||
| return String (channelIndex + 1); | return String (channelIndex + 1); | ||||
| } | } | ||||
| const String FILTERCLASSNAME::getOutputChannelName (const int channelIndex) const | |||||
| const String FILTERCLASSNAME::getOutputChannelName (int channelIndex) const | |||||
| { | { | ||||
| return String (channelIndex + 1); | return String (channelIndex + 1); | ||||
| } | } | ||||
| @@ -45,8 +45,8 @@ public: | |||||
| const String getParameterName (int index); | const String getParameterName (int index); | ||||
| const String getParameterText (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 isInputChannelStereoPair (int index) const; | ||||
| bool isOutputChannelStereoPair (int index) const; | bool isOutputChannelStereoPair (int index) const; | ||||
| @@ -58,6 +58,8 @@ Project::Project (const File& file_) | |||||
| setChangedFlag (false); | setChangedFlag (false); | ||||
| mainProjectIcon.setImage (ImageCache::getFromMemory (BinaryData::juce_icon_png, BinaryData::juce_icon_pngSize)); | |||||
| projectRoot.addListener (this); | projectRoot.addListener (this); | ||||
| } | } | ||||
| @@ -755,12 +757,10 @@ const Drawable* Project::Item::getIcon() const | |||||
| } | } | ||||
| else if (isMainGroup()) | 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(); | |||||
| } | } | ||||
| //============================================================================== | //============================================================================== | ||||
| @@ -312,8 +312,10 @@ public: | |||||
| static void resaveJucerFile (const File& file); | static void resaveJucerFile (const File& file); | ||||
| private: | private: | ||||
| friend class Item; | |||||
| ValueTree projectRoot; | ValueTree projectRoot; | ||||
| static File lastDocumentOpened; | static File lastDocumentOpened; | ||||
| DrawableImage mainProjectIcon; | |||||
| const File getLocalJuceFolder(); | const File getLocalJuceFolder(); | ||||
| void updateProjectSettings(); | void updateProjectSettings(); | ||||