Browse Source

Couple of introjucer fixes.

tags/2021-05-28
jules 14 years ago
parent
commit
75bbd8e2b2
5 changed files with 35 additions and 1 deletions
  1. +1
    -1
      extras/Introjucer/Source/Application/jucer_MainWindow.cpp
  2. +3
    -0
      extras/Introjucer/Source/Project Saving/jucer_ProjectExport_XCode.h
  3. +1
    -0
      extras/Introjucer/Source/Project Saving/jucer_ProjectExporter.h
  4. +18
    -0
      extras/Introjucer/Source/Project/jucer_ProjectType.cpp
  5. +12
    -0
      extras/browser plugin demo/build/mac/Info.plist

+ 1
- 1
extras/Introjucer/Source/Application/jucer_MainWindow.cpp View File

@@ -107,8 +107,8 @@ void MainWindow::createProjectContentCompIfNeeded()
void MainWindow::makeVisible()
{
setVisible (true);
addToDesktop(); // (must add before restoring size so that fullscreen will work)
restoreWindowPosition();
addToDesktop();
getContentComponent()->grabKeyboardFocus();
}


+ 3
- 0
extras/Introjucer/Source/Project Saving/jucer_ProjectExport_XCode.h View File

@@ -389,6 +389,9 @@ private:
if (getSetting ("UIStatusBarHidden").getValue())
addPlistDictionaryKeyBool (dict, "UIStatusBarHidden", true);
for (int i = 0; i < xcodeExtraPListEntries.size(); ++i)
dict->addChildElement (new XmlElement (xcodeExtraPListEntries.getReference(i)));
MemoryOutputStream mo;
plist.writeToStream (mo, "<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">");


+ 1
- 0
extras/Introjucer/Source/Project Saving/jucer_ProjectExporter.h View File

@@ -131,6 +131,7 @@ public:
bool xcodeIsBundle, xcodeCreatePList, xcodeCanUseDwarf;
StringArray xcodeFrameworks;
Array<RelativePath> xcodeExtraLibrariesDebug, xcodeExtraLibrariesRelease;
Array<XmlElement> xcodeExtraPListEntries;
//==============================================================================
String makefileTargetSuffix;


+ 18
- 0
extras/Introjucer/Source/Project/jucer_ProjectType.cpp View File

@@ -292,6 +292,24 @@ public:
exporter.xcodeProductType = "com.apple.product-type.bundle";
exporter.xcodeProductInstallPath = "$(HOME)/Library/Internet Plug-Ins//";
{
XmlElement mimeTypesKey ("key");
mimeTypesKey.setText ("WebPluginMIMETypes");
XmlElement mimeTypesEntry ("dict");
const String exeName (exporter.getProject().getProjectFilenameRoot().toLowerCase());
mimeTypesEntry.createNewChildElement ("key")->setText ("application/" + exeName + "-plugin");
XmlElement* d = mimeTypesEntry.createNewChildElement ("dict");
d->createNewChildElement ("key")->setText ("WebPluginExtensions");
d->createNewChildElement ("array")
->createNewChildElement ("string")->setText (exeName);
d->createNewChildElement ("key")->setText ("WebPluginTypeDescription");
d->createNewChildElement ("string")->setText (exporter.getProject().getProjectName().toString());
exporter.xcodeExtraPListEntries.add (mimeTypesKey);
exporter.xcodeExtraPListEntries.add (mimeTypesEntry);
}
exporter.msvcTargetSuffix = ".dll";
exporter.msvcIsDLL = true;


+ 12
- 0
extras/browser plugin demo/build/mac/Info.plist View File

@@ -28,5 +28,17 @@
<string>JuceBrowserPlugin_Version</string>
<key>WebPluginName</key>
<string>JuceBrowserPlugin_Name</string>
<key>WebPluginMIMETypes</key>
<dict>
<key>application/npjucedemo-plugin</key>
<dict>
<key>WebPluginExtensions</key>
<array>
<string>jucedemo</string>
</array>
<key>WebPluginTypeDescription</key>
<string>Juce Demo</string>
</dict>
</dict>
</dict>
</plist>

Loading…
Cancel
Save