Add TAL-Reverb-II plugin to test
[juce-lv2.git] / juce / source / extras / Introjucer / Source / Project / jucer_NewFileWizard.h
blob70aa031ffad780dd6a5cbb5889c72ac9bf5cbad1
1 /*
2 ==============================================================================
4 This file is part of the JUCE library - "Jules' Utility Class Extensions"
5 Copyright 2004-10 by Raw Material Software Ltd.
7 ------------------------------------------------------------------------------
9 JUCE can be redistributed and/or modified under the terms of the GNU General
10 Public License (Version 2), as published by the Free Software Foundation.
11 A copy of the license is included in the JUCE distribution, or can be found
12 online at www.gnu.org/licenses.
14 JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
15 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
16 A PARTICULAR PURPOSE. See the GNU General Public License for more details.
18 ------------------------------------------------------------------------------
20 To release a closed-source product which uses JUCE, commercial licenses are
21 available: visit www.rawmaterialsoftware.com/juce for more information.
23 ==============================================================================
26 #ifndef __JUCER_NEWFILEWIZARD_JUCEHEADER__
27 #define __JUCER_NEWFILEWIZARD_JUCEHEADER__
29 #include "../jucer_Headers.h"
30 #include "jucer_Project.h"
33 //==============================================================================
34 class NewFileWizard : public DeletedAtShutdown
36 public:
37 //==============================================================================
38 NewFileWizard();
39 ~NewFileWizard();
41 juce_DeclareSingleton_SingleThreaded_Minimal (NewFileWizard);
43 //==============================================================================
44 class Type
46 public:
47 Type() {}
48 virtual ~Type() {}
50 //==============================================================================
51 virtual const String getName() = 0;
52 virtual void createNewFile (Project::Item projectGroupToAddTo) = 0;
54 protected:
55 //==============================================================================
56 const File askUserToChooseNewFile (const String& suggestedFilename, const String& wildcard,
57 const Project::Item& projectGroupToAddTo);
59 static void showFailedToWriteMessage (const File& file);
62 //==============================================================================
63 void addWizardsToMenu (PopupMenu& m) const;
64 bool runWizardFromMenu (int chosenMenuItemID, const Project::Item& projectGroupToAddTo) const;
66 void registerWizard (Type* newWizard);
68 private:
69 OwnedArray <Type> wizards;
73 #endif // __JUCER_NEWFILEWIZARD_JUCEHEADER__