Пример #1
0
void ProjucerApplication::handleAsyncUpdate()
{
    initialiseWindows (getCommandLineParameters());

   #if JUCE_MAC
    MenuBarModel::setMacMainMenu (menuModel, nullptr, "Open Recent");
   #endif

    versionChecker = new LatestVersionChecker();

    showLoginFormAsyncIfNotTriedRecently();
}
Пример #2
0
void ProjucerApplication::handleAsyncUpdate()
{
    initialiseWindows (getCommandLineParameters());

   #if JUCE_MAC
    PopupMenu extraAppleMenuItems;
    createExtraAppleMenuItems (extraAppleMenuItems);

    MenuBarModel::setMacMainMenu (menuModel, &extraAppleMenuItems, "Open Recent");
   #endif

    versionChecker = new LatestVersionChecker();

    showLoginFormAsyncIfNotTriedRecently();
}
Пример #3
0
    void initialise(const String& commandLineParameters)
    {
        File thisFile(File::getSpecialLocation(File::currentExecutableFile));
        currentApplicationDirectory =thisFile.getParentDirectory().getFullPathName();
        //CabbageUtils::showMessage(commandLineParameters);
        PropertiesFile::Options options;
        options.applicationName     = "Cabbage";
        options.filenameSuffix      = "settings";
        options.osxLibrarySubFolder = "Preferences";

        appProperties = new ApplicationProperties();
        //set fallback file for default properties...

        appProperties->setStorageParameters (options);

        defaultPropSet = new PropertySet();
        ScopedPointer<XmlElement> xml;
        xml = new XmlElement("PLANTS");
        String homeDir = appProperties->getCommonSettings(true)->getFile().getParentDirectory().getFullPathName();
        String manualPath;
#if defined(LINUX) || defined(MACOSX)
        manualPath = File::getSpecialLocation(File::currentExecutableFile).getParentDirectory().getFullPathName()+"/CsoundDocs/index.html";
#else
        manualPath = "Library/Frameworks/CsoundLib64.framework/Versions/6.0/Resources/Manual/index.html";
#endif

        defaultPropSet->setValue("CsoundHelpDir", manualPath);
        defaultPropSet->setValue("PlantFileDir", homeDir+"/Plants");
        defaultPropSet->setValue("ExamplesDir", homeDir+"/Examples");
        defaultPropSet->setValue("DisablePluginInfo", 0);
        defaultPropSet->setValue("ShowEditorConsole", 0);
        defaultPropSet->setValue("ExternalEditor", 0);
        defaultPropSet->setValue("UseCabbageIO", 1);
        defaultPropSet->setValue("ShowConsoleWithEditor", 0);
        defaultPropSet->setValue("UsingCabbageCsound", 1);
        defaultPropSet->setValue("AudioEnabled", 1);
        defaultPropSet->setValue("DisableGUIEditModeWarning", 1);
        defaultPropSet->setValue("SetAlwaysOnTop", 1);
        defaultPropSet->setValue("PlantRepository", xml);
        defaultPropSet->setValue("EditorColourScheme", 1);
        defaultPropSet->setValue("showTabs", 1);
        defaultPropSet->setValue("EnablePopupDisplay", 1);

        appProperties->getUserSettings()->setFallbackPropertySet(defaultPropSet);
        filterWindow = new StandaloneFilterWindow (String("Cabbage"), Colours::black, getCommandLineParameters());
        filterWindow->setTitleBarButtonsRequired (DocumentWindow::allButtons, false);
        filterWindow->setVisible (true);
        //turn off resizeable...
        filterWindow->setResizable(true, true);
        juce::Thread::setCurrentThreadName("cabbage");
    }