1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-26 07:10:09 +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

@@ -13,16 +13,9 @@
#ifndef __AUDACITY_REGISTRAR__
#define __AUDACITY_REGISTRAR__
// MSVC auto-indents, but I don't want that, for the namespace.
// so using a macro for that works around ir
// AND allows me to change the namespace name easily.
#define START_NAMESPACE namespace ModTrackPanel {
START_NAMESPACE
typedef enum
{
RegResource,
RegArtist,
RegDataType,
RegCommand,
@@ -31,14 +24,22 @@ typedef enum
} t_RegistrarDispatchType;
class Registrar {
Registrar::Registrar(){
pShowFn = NULL;}
public:
// Fairly generic registrar functions.
static void Start();
static void Finish();
// Somewhat specific to this application registrar functions.
// These mostly reflect one-offs, where a more sophisticated
// system would manage a list.
static void ShowNewPanel();
public:
void (*pShowFn)(void);
};
extern int RegistrarDispatch( t_RegistrarDispatchType Type );
};//End of Namespace.
#endif