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:
parent
4268ed7453
commit
00ff36f0e6
3 changed files with 7 additions and 18 deletions
|
|
@ -409,7 +409,7 @@ public:
|
|||
getLastText() = userText.getText();
|
||||
resultText.setText (CodeHelpers::stringLiteral (getLastText()), false);
|
||||
}
|
||||
|
||||
|
||||
void resized()
|
||||
{
|
||||
desc.setBounds (8, 8, getWidth() - 16, 44);
|
||||
|
|
|
|||
|
|
@ -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...
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue