File chooser and drag and drop capabilities for property components


#1

Here's a suggested change for the Introjucer. It adds file chooser and drag and drop where TextPropertyComponents are currently used to select folders. Non-breaking and practically drop-in... :) 

Code:

http://pastebin.com/3F6MGfvA

(fighting the forum slightly today - it really want to double space the code!)

Example of use: 

            for (Project::ExporterIterator exporter (project); exporter.next();)

                props.add (new FilePropertyComponent (exporter->getPathForModuleValue (moduleID),

                                                      "Path for " + exporter->getName().quoted(), true, "*", project.getProjectFolder()),

                           "A path to the folder that contains the " + moduleID + " module when compiling the "

                            + exporter->getName().quoted() + " target. "

                           "This can be an absolute path, or relative to the jucer project folder, but it "

                           "must be valid on the filesystem of the target machine that will be performing this build.");

And it even sorts out the relative paths automatically :)


#2

Cool - thanks Jim, will have a look!