]> git.sesse.net Git - ccbs/commit
Implement a simple priority system.
authorSteinar H. Gunderson <sesse@samfundet.no>
Tue, 1 Mar 2005 01:12:51 +0000 (01:12 +0000)
committerSteinar H. Gunderson <sesse@samfundet.no>
Tue, 1 Mar 2005 01:12:51 +0000 (01:12 +0000)
commit0b3bb271ac40b5f8bcfc5a417d4423e92c4483b1
tree3b71f9ba9812f5d83f133240b1c3ccbc6d92ba77
parentef1894b4aa12db7fef35e1f62be0964fb7f6159e
Implement a simple priority system.
The priority system is used to determine which screen is shown first if two or more screens
have updated information (ie. a group screen is more important than a "today's high scores"
screen, which is in turn more important than "today's most chosen songs", as the latter is
mainly a curiosity).

- Add a get_priority() to GenericScreen, default 0.
- Implement get_priority() for GroupScreen and Top10ScoreScreen, set to 10 and 5 resp.
- Make RotateScreen automatically pick the screen with the highest priority if two or more
  have forced updates.
bigscreen/groupscreen.cpp
bigscreen/groupscreen.h
bigscreen/rotatescreen.cpp
bigscreen/screen.cpp
bigscreen/screen.h
bigscreen/top10scorescreen.cpp
bigscreen/top10scorescreen.h