Browse Source

tags/2021-05-28
jules 18 years ago
parent
commit
5faf4c5d63
3 changed files with 18 additions and 7 deletions
  1. +5
    -6
      build/macosx/platform_specific_code/juce_mac_Windowing.cpp
  2. +2
    -1
      src/juce_appframework/audio/devices/juce_MidiInput.h
  3. +11
    -0
      src/juce_appframework/gui/components/filebrowser/juce_FileBrowserComponent.cpp

+ 5
- 6
build/macosx/platform_specific_code/juce_mac_Windowing.cpp View File

@@ -2581,7 +2581,7 @@ public:
{
const PopupMenu menu (currentModel->getMenuForIndex (i, menuNames [i]));
MenuRef m = createMenu (menu, menuNames [i], id);
MenuRef m = createMenu (menu, menuNames [i], id, i);
InsertMenu (m, 0);
CFRelease (m);
@@ -2599,7 +2599,7 @@ public:
FlashMenuBar (GetMenuID (menu));
}
void invoke (const int id, ApplicationCommandManager* commandManager, const int topLevelIndex) const
void invoke (const int id, ApplicationCommandManager* const commandManager, const int topLevelIndex) const
{
if (currentModel != 0)
{
@@ -2620,7 +2620,8 @@ public:
private:
static MenuRef createMenu (const PopupMenu menu,
const String& menuName,
int& id)
int& id,
const int topLevelIndex)
{
MenuRef m = 0;
@@ -2631,7 +2632,6 @@ private:
CFRelease (name);
PopupMenu::MenuItemIterator iter (menu);
int topLevelIndex = 0;
while (iter.next())
{
@@ -2655,7 +2655,7 @@ private:
{
AppendMenuItemTextWithCFString (m, text, flags, id++, &index);
MenuRef sub = createMenu (*iter.subMenu, iter.itemName, id);
MenuRef sub = createMenu (*iter.subMenu, iter.itemName, id, topLevelIndex);
SetMenuItemHierarchicalMenu (m, index, sub);
CFRelease (sub);
}
@@ -2723,7 +2723,6 @@ private:
}
CFRelease (text);
++topLevelIndex;
}
}


+ 2
- 1
src/juce_appframework/audio/devices/juce_MidiInput.h View File

@@ -67,7 +67,8 @@ public:
If a long sysex message is broken up into multiple packets, this callback is made
for each packet that arrives until the message is finished, at which point
the normal handleIncomingMidiMessage() callback will be made.
the normal handleIncomingMidiMessage() callback will be made with the entire
message.
The message passed in will contain the start of a sysex, but won't be finished
with the terminating 0x7f byte.


+ 11
- 0
src/juce_appframework/gui/components/filebrowser/juce_FileBrowserComponent.cpp View File

@@ -338,6 +338,17 @@ void FileBrowserComponent::selectionChanged()
void FileBrowserComponent::fileClicked (const File&, const MouseEvent&)
{
ComponentDeletionWatcher deletionWatcher (this);
for (int i = listeners.size(); --i >= 0;)
{
((FileBrowserListener*) listeners.getUnchecked (i))->fileClicked (file, e);
if (deletionWatcher.hasBeenDeleted())
return;
i = jmin (i, listeners.size() - 1);
}
}
void FileBrowserComponent::fileDoubleClicked (const File& f)


Loading…
Cancel
Save