1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-17 00:44:19 +00:00

Introjucer: some linux settings tweaks.

This commit is contained in:
jules 2012-07-26 14:01:56 +01:00
parent 4268ed7453
commit 00ff36f0e6
3 changed files with 7 additions and 18 deletions

View file

@ -409,7 +409,7 @@ public:
getLastText() = userText.getText();
resultText.setText (CodeHelpers::stringLiteral (getLastText()), false);
}
void resized()
{
desc.setBounds (8, 8, getWidth() - 16, 44);

View file

@ -93,26 +93,15 @@ void StoredSettings::reload()
// These settings are used in defining the properties file's location.
PropertiesFile::Options options;
options.applicationName = "Introjucer";
options.folderName = "Introjucer";
options.filenameSuffix = "settings";
options.osxLibrarySubFolder = "Application Support";
#if JUCE_LINUX
options.folderName = ".introjucer";
#else
options.folderName = "Introjucer";
#endif
props = new PropertiesFile (options);
// Because older versions of the introjucer saved their settings under a different
// name, this code is an example of how to migrate your old settings files...
if (! props->getFile().exists())
{
PropertiesFile::Options oldOptions;
oldOptions.applicationName = "Jucer2";
oldOptions.filenameSuffix = "settings";
oldOptions.osxLibrarySubFolder = "Preferences";
PropertiesFile oldProps (oldOptions);
if (oldProps.getFile().exists())
props->addAllPropertiesFrom (oldProps);
}
}
// recent files...

View file

@ -343,7 +343,7 @@ public:
/** Returns a Value object that can be used to get or set the text.
Bear in mind that this operate quite slowly if your text box contains large
amounts of text, as it needs to dynamically build the string that's involved.
amounts of text, as it needs to dynamically build the string that's involved.
It's best used for small text boxes.
*/
Value& getTextValue();