mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-06 04:00:08 +00:00
Projucer: Removed OpenDocumentManager::DocumentCloseListener from JucerDocument
This commit is contained in:
parent
d2967de994
commit
ec368236f8
2 changed files with 1 additions and 10 deletions
|
|
@ -49,12 +49,10 @@ JucerDocument::JucerDocument (SourceCodeDocument* c)
|
|||
|
||||
ProjucerApplication::getCommandManager().commandStatusChanged();
|
||||
cpp->getCodeDocument().addListener (this);
|
||||
ProjucerApplication::getApp().openDocumentManager.addListener (this);
|
||||
}
|
||||
|
||||
JucerDocument::~JucerDocument()
|
||||
{
|
||||
ProjucerApplication::getApp().openDocumentManager.removeListener (this);
|
||||
cpp->getCodeDocument().removeListener (this);
|
||||
ProjucerApplication::getCommandManager().commandStatusChanged();
|
||||
}
|
||||
|
|
@ -75,11 +73,6 @@ struct UserDocChangeTimer : public Timer
|
|||
JucerDocument& doc;
|
||||
};
|
||||
|
||||
bool JucerDocument::documentAboutToClose (OpenDocumentManager::Document*)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
void JucerDocument::userEditedCpp()
|
||||
{
|
||||
if (userDocChangeTimer == nullptr)
|
||||
|
|
|
|||
|
|
@ -36,8 +36,7 @@
|
|||
//==============================================================================
|
||||
class JucerDocument : public ChangeBroadcaster,
|
||||
private Timer,
|
||||
private CodeDocument::Listener,
|
||||
private OpenDocumentManager::DocumentCloseListener
|
||||
private CodeDocument::Listener
|
||||
{
|
||||
public:
|
||||
JucerDocument (SourceCodeDocument* cpp);
|
||||
|
|
@ -176,7 +175,6 @@ private:
|
|||
void codeDocumentTextInserted (const String& newText, int insertIndex) override;
|
||||
void codeDocumentTextDeleted (int startIndex, int endIndex) override;
|
||||
void userEditedCpp();
|
||||
bool documentAboutToClose (OpenDocumentManager::Document*) override;
|
||||
void extractCustomPaintSnippetsFromCppFile (const String& cpp);
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (JucerDocument)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue