mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-24 01:54:22 +00:00
Introjucer: modules panel fix.
This commit is contained in:
parent
c3b0903b74
commit
dac898c601
1 changed files with 14 additions and 5 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue