[timing] More abstraction.

This commit has 2 caveats.

1) Stops and Delays are treated the same in the editor right now.
2) TimingSegments.cpp: XToString should not require NUM_TimingSegmentTypes.

Ideas?
This commit is contained in:
Jason Felds
2011-07-14 23:54:06 -04:00
parent 6f5ab98dec
commit 01dacd9746
6 changed files with 86 additions and 757 deletions
+15
View File
@@ -1,5 +1,20 @@
#include "global.h"
#include "TimingSegments.h"
#include "EnumHelper.h"
static const char *TimingSegmentTypeNames[] = {
"BPM",
"Stop/Delay", // TODO: separate when stops and delays are separate.
"Time Sig",
"Warp",
"Label",
"Tickcount",
"Combo",
"Speed",
"Scroll",
"Fake"
};
XToString( TimingSegmentType );
#define LTCOMPARE(x) if(this->x < other.x) return true; if(this->x > other.x) return false;