Commit Graph
32 Commits
Author SHA1 Message Date
John Bauer cca2d60509 Fix RevertFromDisk using a method that preserves as many of the original
Steps* pointers as possible.  It is pointless to get rid of RevertFromDisk
entirely because all of the unpleasant side effects it can have are possible
using other tools in the editor.
2006-11-12 16:49:00 +00:00
Glenn Maynard c6e62ae92d revert. Need a better approach. 2006-11-12 03:26:25 +00:00
John Bauer c3e39e12a3 Fix several annoying edit mode bugs, mostly by fixing the Song copy
operator and the various uses of it.

- revert file from disk: keeps old BPM.  The BPMS on disk are added to
  the existing BPM information!
- edit mode turns X stepcharts into 2X when reverting
- sometimes edit mode loses an entire stepchart: open a stepchart,
  change to a new stepchart, exit without going back, original chart gone
- edit a chart, make a change in a different chart, exit from the first chart:
  change made in different chart doesn't revert
- normally, when you create a stepchart and don't save it after editting it,
  it is deleted.  however, if you create a stepchart, don't save it, and exit
  edit mode while looking at a different chart, the chart isn't deleted.

Some existing bugs are not fixed, though:
- delete the last stepchart for a step type.  CTD.
- Edit one of the fake doubles stepcharts for a song that doesn't have
  real doubles stepcharts.  Exit without doing anything.  CTD.  This is
  probably the same problem as the previous bug.
- delete a song or a steps that happens to be part of a trail.  Trail is now
  broken.  Some other edits should affect a trail as well, but don't.
2006-11-10 07:02:27 +00:00
John Bauer 00b40c7468 Change TrailEntry so it uses a StepsID instead of a Steps*.
Now Edit Mode can change the Steps pointers without causing crashes
because of the Trails.  (Exception: deleted song or steps.)
2006-11-10 05:47:10 +00:00
Glenn Maynard de6ca466d2 more enum standardization 2006-10-07 04:39:48 +00:00
Glenn Maynard 8a4ddd1515 Invalid 2006-10-07 04:13:43 +00:00
Glenn Maynard f806ec5936 StepsType_Invalid 2006-09-26 20:28:46 +00:00
Steve Checkoway 5fac8c030d Add operator== and operator!= as well as getting all matching steps for a particular song. 2006-07-30 11:30:29 +00:00
Glenn Maynard 11b5ddbd54 cleanup 2006-07-24 06:06:10 +00:00
Chris Danford 97d28100ae use SongCriteria and StepsCriteria to resolve songs for Trail 2006-07-02 06:04:53 +00:00
Chris Danford af3e1c571c move Steps searching out of song into SongUtil so that it can be shared with CourseEntry 2006-06-13 01:10:37 +00:00
Chris Danford 7f821e8cfc CString -> RString 2006-01-22 01:00:06 +00:00
Chris Danford 353e0c5b6e break up arch stuff into smaller .cpp files to fix smpackage build and not pull in unnecessary stuff 2005-12-16 04:16:09 +00:00
Chris Danford 843e2a9c91 add profile switching on STitleMenu 2005-08-03 03:27:43 +00:00
Chris Danford 9eddaaf860 keep track of last played for each song
add metric: ScreenRanking::ShowOnlyMostRecentScores
2005-04-25 22:44:32 +00:00
Chris Danford c6040055eb hide locked steps 2005-04-24 20:32:03 +00:00
Chris Danford afaa5e6b51 add sort by difficulty 2005-03-05 20:48:27 +00:00
Glenn Maynard 1ccb50ac55 include cleanup (not much of a win) 2005-01-22 19:36:39 +00:00
Chris Danford 0c55fd0684 fix some stale StepsID entries hang around after unloading edits 2004-11-24 16:59:57 +00:00
Chris Danford 873c148f0e fix crash on exiting editor
clean up invalidation of Song and Courses
2004-08-12 04:49:15 +00:00
Chris Danford b028934429 clean up Course cache logic 2004-07-24 06:40:51 +00:00
Glenn Maynard 549cd7c83f license updates 2004-05-31 21:35:31 +00:00
Chris Danford 4bb777232d name cleanup: "pNotes" -> "pSteps" 2004-05-24 03:41:39 +00:00
Glenn Maynard f0fdfc5e58 cache StepsID::ToSteps to speed up html writing 2004-05-21 05:08:04 +00:00
Chris Danford e9f576d262 "LastScores"->"RecentScores"
add recent scores to HTML
2004-05-08 10:12:10 +00:00
Glenn Maynard c00f96941b add StepsID::MatchesStepsType 2004-05-02 00:06:55 +00:00
Glenn Maynard 8f7e6894dc fix StepsID::operator<
beware: invalid < operations (where a<b and b<a can both be true)
lead to crashes with std::map on glibc
2004-04-26 00:08:51 +00:00
Chris Danford 83fb83d1b4 store hash value in Steps for finding equivalent edits 2004-04-23 00:53:29 +00:00
Chris Danford 987a83d6bd save last N scores in profile (for tournament score tracking) 2004-04-22 07:59:42 +00:00
Chris Danford d62369baf1 don't throw away Course scores for Courses that aren't currently loaded on the machine 2004-04-18 19:36:42 +00:00
Chris Danford 3bc5943a9e don't throw away Song scores for Songs/Steps that aren't currently loaded on the machine 2004-04-18 18:42:42 +00:00
Chris Danford ca4fee519e move Song/Steps sorting into Song/StepsUtil.h/cpp 2004-04-18 08:05:18 +00:00