From dac898c6015cb2f188b89a0b8290d83cab989557 Mon Sep 17 00:00:00 2001 From: jules Date: Sun, 22 Jul 2012 10:03:32 +0100 Subject: [PATCH] Introjucer: modules panel fix. --- .../Source/Project/jucer_ModulesPanel.h | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/extras/Introjucer/Source/Project/jucer_ModulesPanel.h b/extras/Introjucer/Source/Project/jucer_ModulesPanel.h index 435bae9cb4..16d97fd0d7 100644 --- a/extras/Introjucer/Source/Project/jucer_ModulesPanel.h +++ b/extras/Introjucer/Source/Project/jucer_ModulesPanel.h @@ -125,12 +125,12 @@ public: { modulesLocation.setBounds (150, 3, getWidth() - 180 - 150, 25); updateModulesButton.setBounds (modulesLocation.getRight() + 6, 3, getWidth() - modulesLocation.getRight() - 12, 25); - moduleListBox.setBounds (4, 31, getWidth() / 3 - 4, getHeight() - 63); - copyingMessage.setBounds (4, getHeight() - 30, getWidth() - 8, getHeight() - 31); + moduleListBox.setBounds (5, 34, getWidth() / 3, getHeight() - 72); + copyingMessage.setBounds (5, moduleListBox.getBottom() + 2, getWidth() - 10, getHeight() - moduleListBox.getBottom() - 4); if (settings != nullptr) settings->setBounds (moduleListBox.getRight() + 5, moduleListBox.getY(), - getWidth() - (moduleListBox.getRight() + 5), moduleListBox.getHeight()); + getWidth() - moduleListBox.getRight() - 9, moduleListBox.getHeight()); } //============================================================================== @@ -403,7 +403,6 @@ public: copyModeButton ("Set Copying Mode...") { addAndMakeVisible (©ModeButton); - copyModeButton.setBounds ("4, parent.height / 2 - 10, 160, parent.height / 2 + 10"); copyModeButton.addListener (this); startTimer (1500); @@ -418,6 +417,11 @@ public: Justification::centredRight, 4); } + void resized() + { + copyModeButton.setBounds (0, getHeight() / 2 - 10, 160, 20); + } + void refresh() { int numCopied, numNonCopied; @@ -477,7 +481,12 @@ public: void setCopyModeForAllModules (bool copyEnabled) { for (int i = list.modules.size(); --i >= 0;) - project.shouldCopyModuleFilesLocally (list.modules.getUnchecked(i)->uid) = copyEnabled; + { + const String moduleID (list.modules.getUnchecked(i)->uid); + + if (project.isModuleEnabled (moduleID)) + project.shouldCopyModuleFilesLocally (moduleID) = copyEnabled; + } refresh(); }