1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-01-11 15:15:57 +01:00

Added TrackPanel2. Removed namespaces, as they don't help avoid collision with TrackPanel name.

This commit is contained in:
james.k.crook@gmail.com
2011-04-25 21:27:30 +00:00
parent 214b405646
commit fe4a271fa1
8 changed files with 163 additions and 29 deletions

View File

@@ -21,8 +21,6 @@ plugging in of new resources.
#include <wx/wx.h>
#include "Registrar.h"
START_NAMESPACE
Registrar * pRegistrar = NULL;
// By defining the external function and including it here, we save ourselves maintaing two lists.
@@ -44,6 +42,7 @@ int RegistrarDispatch( t_RegistrarDispatchType Type )
DISPATCH( EnvelopeArtist );
DISPATCH( LabelArtist );
DISPATCH( DragGridSizer );
DISPATCH( TrackPanel2 );
return 0;
}
@@ -54,6 +53,7 @@ void Registrar::Start()
wxASSERT( pRegistrar ==NULL );
pRegistrar = new Registrar();
RegistrarDispatch( RegResource );
RegistrarDispatch( RegArtist );
RegistrarDispatch( RegDataType );
RegistrarDispatch( RegCommand );
@@ -69,6 +69,9 @@ void Registrar::Finish()
pRegistrar = NULL;
}
};//End of Namespace.
void Registrar::ShowNewPanel()
{
wxASSERT( pRegistrar !=NULL );
if( pRegistrar->pShowFn != NULL)
pRegistrar->pShowFn();
}