mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-27 02:20:05 +00:00
Introjucer: saving Jucer cpp file also saves header.
This commit is contained in:
parent
a593017595
commit
89c5c5c8c5
1 changed files with 15 additions and 0 deletions
|
|
@ -674,6 +674,21 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
bool save()
|
||||
{
|
||||
return SourceCodeDocument::save() && saveHeader();
|
||||
}
|
||||
|
||||
bool saveHeader()
|
||||
{
|
||||
OpenDocumentManager& odm = IntrojucerApp::getApp().openDocumentManager;
|
||||
|
||||
if (OpenDocumentManager::Document* header = odm.openFile (nullptr, getFile().withFileExtension (".h")))
|
||||
return header->save();
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
Component* createEditor()
|
||||
{
|
||||
ScopedPointer<JucerDocument> jucerDoc (JucerDocument::createForCppFile (getProject(), getFile()));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue