Browse Source

Introjucer: some linux settings tweaks.

tags/2021-05-28
jules 12 years ago
parent
commit
00ff36f0e6
3 changed files with 7 additions and 18 deletions
  1. +1
    -1
      extras/Introjucer/Source/Utility/jucer_MiscUtilities.cpp
  2. +5
    -16
      extras/Introjucer/Source/Utility/jucer_StoredSettings.cpp
  3. +1
    -1
      modules/juce_gui_basics/widgets/juce_TextEditor.h

+ 1
- 1
extras/Introjucer/Source/Utility/jucer_MiscUtilities.cpp 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);


+ 5
- 16
extras/Introjucer/Source/Utility/jucer_StoredSettings.cpp 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...


+ 1
- 1
modules/juce_gui_basics/widgets/juce_TextEditor.h 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();


Loading…
Cancel
Save