text
stringlengths 0
2.2M
|
|---|
}
|
}
|
if (testStatus > 0) {
|
cerr << "Error, non-zero test status = "
|
<< testStatus << "." << endl;
|
}
|
return testStatus;
|
}
|
// ----------------------------------------------------------------------------
|
// Copyright 2015 Bloomberg Finance L.P.
|
//
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
// you may not use this file except in compliance with the License.
|
// You may obtain a copy of the License at
|
//
|
// http://www.apache.org/licenses/LICENSE-2.0
|
//
|
// Unless required by applicable law or agreed to in writing, software
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
// See the License for the specific language governing permissions and
|
// limitations under the License.
|
// ----------------------------- END-OF-FILE ----------------------------------
|
/*
|
==============================================================================
|
This file is part of the JUCE library.
|
Copyright (c) 2020 - Raw Material Software Limited
|
JUCE is an open source library subject to commercial or open-source
|
licensing.
|
By using JUCE, you agree to the terms of both the JUCE 6 End-User License
|
Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020).
|
End User License Agreement: www.juce.com/juce-6-licence
|
Privacy Policy: www.juce.com/juce-privacy-policy
|
Or: You may also use this code under the terms of the GPL v3 (see
|
www.gnu.org/licenses).
|
JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
|
EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
|
DISCLAIMED.
|
==============================================================================
|
*/
|
#include "../Application/jucer_Headers.h"
|
#include "../Application/jucer_Application.h"
|
#include "../Utility/Helpers/jucer_NewFileWizard.h"
|
#include "jucer_JucerDocument.h"
|
#include "jucer_ObjectTypes.h"
|
#include "UI/jucer_JucerDocumentEditor.h"
|
#include "UI/jucer_TestComponent.h"
|
#include "jucer_UtilityFunctions.h"
|
#include "Documents/jucer_ComponentDocument.h"
|
#include "Documents/jucer_ButtonDocument.h"
|
const char* const defaultClassName = "NewComponent";
|
const char* const defaultParentClasses = "public juce::Component";
|
//==============================================================================
|
JucerDocument::JucerDocument (SourceCodeDocument* c)
|
: cpp (c),
|
className (defaultClassName),
|
parentClasses (defaultParentClasses)
|
{
|
jassert (cpp != nullptr);
|
resources.setDocument (this);
|
ProjucerApplication::getCommandManager().commandStatusChanged();
|
cpp->getCodeDocument().addListener (this);
|
}
|
JucerDocument::~JucerDocument()
|
{
|
cpp->getCodeDocument().removeListener (this);
|
ProjucerApplication::getCommandManager().commandStatusChanged();
|
}
|
//==============================================================================
|
void JucerDocument::changed()
|
{
|
sendChangeMessage();
|
ProjucerApplication::getCommandManager().commandStatusChanged();
|
startTimer (800);
|
}
|
struct UserDocChangeTimer : public Timer
|
{
|
explicit UserDocChangeTimer (JucerDocument& d) : doc (d) {}
|
void timerCallback() override { doc.reloadFromDocument(); }
|
JucerDocument& doc;
|
};
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.