Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
plugin-GUI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
yehaojie
plugin-GUI
Commits
dbafa619
Commit
dbafa619
authored
8 years ago
by
Septen
Browse files
Options
Downloads
Patches
Plain Diff
PluginGenerator: added OpenEphys Project type. Changed path to templates
folder.
parent
b8100c22
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
PluginGenerator/Source/Project/jucer_ProjectType.h
+13
-12
13 additions, 12 deletions
PluginGenerator/Source/Project/jucer_ProjectType.h
PluginGenerator/Source/Wizards/openEphys_ProjectWizard_OpenEphysPlugin.h
+5
-3
5 additions, 3 deletions
.../Source/Wizards/openEphys_ProjectWizard_OpenEphysPlugin.h
with
18 additions
and
15 deletions
PluginGenerator/Source/Project/jucer_ProjectType.h
+
13
−
12
View file @
dbafa619
...
...
@@ -48,7 +48,7 @@ public:
virtual
bool
isGUIApplication
()
const
{
return
false
;
}
virtual
bool
isCommandLineApp
()
const
{
return
false
;
}
virtual
bool
isAudioPlugin
()
const
{
return
false
;
}
//
virtual bool isOpenEphysPlugin() const { return false; }
virtual
bool
isOpenEphysPlugin
()
const
{
return
false
;
}
protected
:
ProjectType
(
const
String
&
type
,
const
String
&
desc
);
...
...
@@ -123,16 +123,16 @@ struct ProjectType_AudioPlugin : public ProjectType
bool
isAudioPlugin
()
const
override
{
return
true
;
}
};
//
struct ProjectType_OpenEphysPlugin : public ProjectType
//
{
//
ProjectType_OpenEphysPlugin() : ProjectType (getTypeName(), "Open-Ephys Plug-in") {}
//
//
//
//
TODO <Kirill A>: declare and handle this new project
//
// t
ype
n
ame
in the places where should be used
//
static const char* getTypeName() noexcept { return "openephysplug"
; }
// bool isOpenEphysPlugin() const override { return true;
}
//
struct
ProjectType_OpenEphysPlugin
:
public
ProjectType
{
ProjectType_OpenEphysPlugin
()
:
ProjectType
(
getTypeName
(),
"Open-Ephys Plug-in"
)
{}
// TODO <Kirill A>: declare and handle this new project
//
type name in the places where should be used
static
const
char
*
getT
ype
N
ame
()
noexcept
{
return
"openephysplug"
;
}
bool
isOpenEphysPlugin
()
const
override
{
return
true
;
}
}
;
//==============================================================================
inline
Array
<
ProjectType
*>
ProjectType
::
getAllTypes
()
{
...
...
@@ -141,8 +141,9 @@ inline Array<ProjectType*> ProjectType::getAllTypes()
static
ProjectType_StaticLibrary
staticLib
;
static
ProjectType_DLL
dll
;
static
ProjectType_AudioPlugin
plugin
;
static
ProjectType_OpenEphysPlugin
openEphysPlugin
;
static
ProjectType
*
allTypes
[]
=
{
&
guiApp
,
&
consoleApp
,
&
staticLib
,
&
dll
,
&
plugin
,
nullptr
};
static
ProjectType
*
allTypes
[]
=
{
&
guiApp
,
&
consoleApp
,
&
staticLib
,
&
dll
,
&
plugin
,
&
openEphysPlugin
,
nullptr
};
return
Array
<
ProjectType
*>
(
allTypes
);
}
...
...
This diff is collapsed.
Click to expand it.
PluginGenerator/Source/Wizards/openEphys_ProjectWizard_OpenEphysPlugin.h
+
5
−
3
View file @
dbafa619
...
...
@@ -246,13 +246,15 @@ struct OpenEphysPluginAppWizard : public NewProjectWizard
String
processorType
=
getProcessorTypeString
(
m_processorType
);
String
pluginFriendlyName
=
appTitle
;
// TODO <Kirill A>
replace it with relative path or
load files
from
BinaryData
File
templateFilesFolder
(
"
/home/zenbook/developer/open-ephys/plugin-GUI
/Source/Processors/PluginManager/Templates"
);
// TODO <Kirill A>
think about
load
ing
files
right from the
BinaryData
File
templateFilesFolder
(
"
../../..
/Source/Processors/PluginManager/Templates"
);
project
.
getProjectTypeValue
()
=
ProjectType_
Audio
Plugin
::
getTypeName
();
project
.
getProjectTypeValue
()
=
ProjectType_
OpenEphys
Plugin
::
getTypeName
();
Project
::
Item
sourceGroup
(
createSourceGroup
(
project
));
project
.
getConfigFlag
(
"JUCE_QUICKTIME"
)
=
Project
::
configFlagDisabled
;
// disabled because it interferes with RTAS build on PC
project
.
shouldBuildVST
().
setValue
(
false
);
project
.
shouldBuildVST3
().
setValue
(
false
);
setExecutableNameForAllTargets
(
project
,
File
::
createLegalFileName
(
appTitle
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment