void CodeFileList::addFiles (const juce::Array<juce::File>& files)
{
    for (int i = files.size(); --i >= 0;)
        addDirectory (files.getReference (i).getFullPathName());

    cleanUpFileList();
}
Exemple #2
0
void StoredSettings::set_last_projects(const juce::Array<juce::File>& files) {
    juce::StringArray s;
    for (auto i = 0; i != files.size(); ++i) {
        s.add(files.getReference(i).getFullPathName());
    }

    get_global_properties().setValue("lastProjects", s.joinIntoString("|"));
}
void MainComponent::getAllCommands (juce::Array<juce::CommandID>& commands)
{
    const juce::OwnedArray<juce::ApplicationCommandInfo>& aci
        = CommandIDs::CommandIDHelper::getInstance()->commands;

    for (int i = aci.size(); --i >= 0;)
        commands.addIfNotAlreadyThere (aci.getUnchecked (i)->commandID);

    juce::DefaultElementComparator<juce::CommandID> comparator;
    commands.sort (comparator);
}
Exemple #4
0
 void Window::getAllCommands(juce::Array<juce::CommandID>& commands)
 {
     commands.add(CommandIDs::closeWindow);
     commands.add(CommandIDs::minimizeWindow);
     commands.add(CommandIDs::maximizeWindow);
 }