ccbs
15 years agoActually check in changes from last time...
Steinar H. Gunderson [Sun, 20 Feb 2005 14:08:10 +0000 (14:08 +0000)]
Actually check in changes from last time...

15 years agoDo the same number of my_draw_text() in all cases, to prepare for the "show differenc...
Steinar H. Gunderson [Sun, 20 Feb 2005 14:07:33 +0000 (14:07 +0000)]
Do the same number of my_draw_text() in all cases, to prepare for the "show differences in red" code.

15 years agoDo some funky channel magic on fading between different versions of the same screen...
Steinar H. Gunderson [Sun, 20 Feb 2005 13:59:08 +0000 (13:59 +0000)]
Do some funky channel magic on fading between different versions of the same screen. This needs a lot more work; it should be done on a lower level, really.

15 years agoChange await_notifications() timeout if something is invalidated (less CPU used when...
Steinar H. Gunderson [Sun, 20 Feb 2005 13:47:06 +0000 (13:47 +0000)]
Change await_notifications() timeout if something is invalidated (less CPU used when there's no action)

15 years agoMake RotateScreen fade between the individual screens.
Steinar H. Gunderson [Sun, 20 Feb 2005 13:42:10 +0000 (13:42 +0000)]
Make RotateScreen fade between the individual screens.

15 years agoCache revision.
Steinar H. Gunderson [Sun, 20 Feb 2005 02:09:44 +0000 (02:09 +0000)]
Cache revision.
18:45-03:15

15 years agoGroupScreen now checks the "last updated" information.
Steinar H. Gunderson [Sun, 20 Feb 2005 02:06:44 +0000 (02:06 +0000)]
GroupScreen now checks the "last updated" information.

15 years agoAdd information to the SQL schema saying when the group was last updated. Make the...
Steinar H. Gunderson [Sun, 20 Feb 2005 01:29:43 +0000 (01:29 +0000)]
Add information to the SQL schema saying when the group was last updated. Make the web interface update that information.

15 years agoAdd a screen rotation class (time multiplexing).
Steinar H. Gunderson [Sun, 20 Feb 2005 01:26:14 +0000 (01:26 +0000)]
Add a screen rotation class (time multiplexing).

15 years agoAdd divider lines for the splitscreen.
Steinar H. Gunderson [Sun, 20 Feb 2005 01:00:17 +0000 (01:00 +0000)]
Add divider lines for the splitscreen.

15 years agoAdded split screen functionality, for showing up to four groups at a time.
Steinar H. Gunderson [Sun, 20 Feb 2005 00:51:39 +0000 (00:51 +0000)]
Added split screen functionality, for showing up to four groups at a time.

15 years agoAdd (a rather sizable chunk of) code for determining the possible best and worst...
Steinar H. Gunderson [Sun, 20 Feb 2005 00:02:09 +0000 (00:02 +0000)]
Add (a rather sizable chunk of) code for determining the possible best and worst ranks for all players.

15 years agoActually show a total for each player.
Steinar H. Gunderson [Sat, 19 Feb 2005 22:49:06 +0000 (22:49 +0000)]
Actually show a total for each player.

15 years agoGo to short names on chosen songs if the text is too wide.
Steinar H. Gunderson [Sat, 19 Feb 2005 22:40:53 +0000 (22:40 +0000)]
Go to short names on chosen songs if the text is too wide.

15 years agoOnly allocate space for four digits in the score screen -- if somebody actually gets...
Steinar H. Gunderson [Sat, 19 Feb 2005 22:31:34 +0000 (22:31 +0000)]
Only allocate space for four digits in the score screen -- if somebody actually gets AAA on Max 300, so be it :-)

15 years agoAdd "total" and "rank" headings, plus clean up the use of width[] somewhat.
Steinar H. Gunderson [Sat, 19 Feb 2005 22:27:30 +0000 (22:27 +0000)]
Add "total" and "rank" headings, plus clean up the use of width[] somewhat.

15 years agoAdded a few more short titles.
Steinar H. Gunderson [Sat, 19 Feb 2005 20:21:13 +0000 (20:21 +0000)]
Added a few more short titles.

15 years agoAdded a short title for www.blonde girl.
Steinar H. Gunderson [Sat, 19 Feb 2005 20:15:56 +0000 (20:15 +0000)]
Added a short title for www.blonde girl.

15 years agoAdd a short title for Never Gonna Make
Steinar H. Gunderson [Sat, 19 Feb 2005 20:15:09 +0000 (20:15 +0000)]
Add a short title for Never Gonna Make

15 years agoAdd a main heading to each group.
Steinar H. Gunderson [Sat, 19 Feb 2005 20:11:20 +0000 (20:11 +0000)]
Add a main heading to each group.

15 years agoUse short titles in the bigscreen headings.
Steinar H. Gunderson [Sat, 19 Feb 2005 20:04:56 +0000 (20:04 +0000)]
Use short titles in the bigscreen headings.

15 years agoAdd some common EM2 song titles.
Steinar H. Gunderson [Sat, 19 Feb 2005 19:31:34 +0000 (19:31 +0000)]
Add some common EM2 song titles.

15 years agoFixed a typo in the SQL for shorttitles.
Steinar H. Gunderson [Sat, 19 Feb 2005 19:26:40 +0000 (19:26 +0000)]
Fixed a typo in the SQL for shorttitles.

15 years agoAdded a provision in the SQL for abbreviated titles.
Steinar H. Gunderson [Sat, 19 Feb 2005 19:24:00 +0000 (19:24 +0000)]
Added a provision in the SQL for abbreviated titles.

15 years agoCenter song headings as well.
Steinar H. Gunderson [Sat, 19 Feb 2005 19:19:34 +0000 (19:19 +0000)]
Center song headings as well.

15 years agoMake my_draw_text() clip horizontally.
Steinar H. Gunderson [Sat, 19 Feb 2005 19:16:03 +0000 (19:16 +0000)]
Make my_draw_text() clip horizontally.

15 years agoMake the score font a lot bigger.
Steinar H. Gunderson [Sat, 19 Feb 2005 19:10:30 +0000 (19:10 +0000)]
Make the score font a lot bigger.

15 years agoClean up the my_draw_text() interface considerably, and let us set sizes per-call.
Steinar H. Gunderson [Sat, 19 Feb 2005 19:06:11 +0000 (19:06 +0000)]
Clean up the my_draw_text() interface considerably, and let us set sizes per-call.

15 years agoShow songs next to each chosen song, and center the appropriate scores. Also, check...
Steinar H. Gunderson [Sat, 19 Feb 2005 18:32:49 +0000 (18:32 +0000)]
Show songs next to each chosen song, and center the appropriate scores. Also, check the maximum number width once, not N times.

15 years agoDon't show column headings for chosen songs, as they are not the same everywhere...
Steinar H. Gunderson [Sat, 19 Feb 2005 18:19:19 +0000 (18:19 +0000)]
Don't show column headings for chosen songs, as they are not the same everywhere, of course.

15 years agoFix some typos in the field names in FetchGroup.
Steinar H. Gunderson [Sat, 19 Feb 2005 18:17:26 +0000 (18:17 +0000)]
Fix some typos in the field names in FetchGroup.

15 years agoAdd column headings and fix widths.
Steinar H. Gunderson [Sat, 19 Feb 2005 18:16:49 +0000 (18:16 +0000)]
Add column headings and fix widths.

15 years agoDon't crash when we have no screens.
Steinar H. Gunderson [Sat, 19 Feb 2005 17:02:19 +0000 (17:02 +0000)]
Don't crash when we have no screens.

15 years agoUse await_notification instead of sleep(), gives us much better response time.
Steinar H. Gunderson [Sat, 19 Feb 2005 17:01:01 +0000 (17:01 +0000)]
Use await_notification instead of sleep(), gives us much better response time.

15 years agoRemove a debugging printf.
Steinar H. Gunderson [Sat, 19 Feb 2005 16:48:31 +0000 (16:48 +0000)]
Remove a debugging printf.
14:30-17:45

15 years agoHandle NULL values in scores better.
Steinar H. Gunderson [Sat, 19 Feb 2005 16:42:37 +0000 (16:42 +0000)]
Handle NULL values in scores better.

15 years agoNOTIFY scores on changing them.
Steinar H. Gunderson [Sat, 19 Feb 2005 16:37:46 +0000 (16:37 +0000)]
NOTIFY scores on changing them.

15 years agoShow the real score instead of 1234.
Steinar H. Gunderson [Sat, 19 Feb 2005 16:37:03 +0000 (16:37 +0000)]
Show the real score instead of 1234.

15 years agoTypofix.
Steinar H. Gunderson [Sat, 19 Feb 2005 16:35:15 +0000 (16:35 +0000)]
Typofix.

15 years agoAdd default constructor for widestring.
Steinar H. Gunderson [Sat, 19 Feb 2005 16:30:58 +0000 (16:30 +0000)]
Add default constructor for widestring.

15 years agoAdd a constructor from const char * for widestring, begin drawing in GroupScreen.
Steinar H. Gunderson [Sat, 19 Feb 2005 16:29:05 +0000 (16:29 +0000)]
Add a constructor from const char * for widestring, begin drawing in GroupScreen.

15 years agoRemove leftover pqxx::work that was causing trouble.
Steinar H. Gunderson [Sat, 19 Feb 2005 16:22:48 +0000 (16:22 +0000)]
Remove leftover pqxx::work that was causing trouble.

15 years agoMake stuff compile again.
Steinar H. Gunderson [Sat, 19 Feb 2005 16:19:50 +0000 (16:19 +0000)]
Make stuff compile again.

15 years agoCommit groupscreen.cpp...
Steinar H. Gunderson [Sat, 19 Feb 2005 16:18:42 +0000 (16:18 +0000)]
Commit groupscreen.cpp...

15 years agoMake screen hierarchy compile.
Steinar H. Gunderson [Sat, 19 Feb 2005 16:18:29 +0000 (16:18 +0000)]
Make screen hierarchy compile.

15 years agoHit the group-fetching code so it compiles.
Steinar H. Gunderson [Sat, 19 Feb 2005 16:01:57 +0000 (16:01 +0000)]
Hit the group-fetching code so it compiles.

15 years agoAdd beginning code for fetching groups.
Steinar H. Gunderson [Sat, 19 Feb 2005 15:57:10 +0000 (15:57 +0000)]
Add beginning code for fetching groups.

15 years agoAdded a generic display screen class.
Steinar H. Gunderson [Sat, 19 Feb 2005 15:28:11 +0000 (15:28 +0000)]
Added a generic display screen class.

15 years agoFetch the list of current active rounds and display it.
Steinar H. Gunderson [Sat, 19 Feb 2005 15:16:20 +0000 (15:16 +0000)]
Fetch the list of current active rounds and display it.

15 years agoCache revision.
Steinar H. Gunderson [Sat, 19 Feb 2005 15:03:15 +0000 (15:03 +0000)]
Cache revision.

15 years agoMoved the font stuff into its own file.
Steinar H. Gunderson [Sat, 19 Feb 2005 15:03:00 +0000 (15:03 +0000)]
Moved the font stuff into its own file.

15 years agoMove Tournament and FetchCurrentTournament into its own file.
Steinar H. Gunderson [Sat, 19 Feb 2005 14:57:41 +0000 (14:57 +0000)]
Move Tournament and FetchCurrentTournament into its own file.

15 years agoMove widestring into its own file.
Steinar H. Gunderson [Sat, 19 Feb 2005 14:54:39 +0000 (14:54 +0000)]
Move widestring into its own file.

15 years agoActually add flagtrigger.{h,cpp}...
Steinar H. Gunderson [Sat, 19 Feb 2005 14:48:48 +0000 (14:48 +0000)]
Actually add flagtrigger.{h,cpp}...

15 years agoMove FlagTrigger into its own source file.
Steinar H. Gunderson [Sat, 19 Feb 2005 14:48:37 +0000 (14:48 +0000)]
Move FlagTrigger into its own source file.

15 years agoReset bigscreen on changed groups, not just changed tournaments.
Steinar H. Gunderson [Sat, 19 Feb 2005 14:42:58 +0000 (14:42 +0000)]
Reset bigscreen on changed groups, not just changed tournaments.

15 years agoAdd back end for adding/removing groups to be shown on the bigscreen.
Steinar H. Gunderson [Sat, 19 Feb 2005 14:34:53 +0000 (14:34 +0000)]
Add back end for adding/removing groups to be shown on the bigscreen.

15 years agoOnly show the bigscreen buttons on the tournament that is actually on the bigscreen.
Steinar H. Gunderson [Sat, 19 Feb 2005 14:26:48 +0000 (14:26 +0000)]
Only show the bigscreen buttons on the tournament that is actually on the bigscreen.

15 years agoWe want to show _groups_ on the big screen, not _rounds_
Steinar H. Gunderson [Sat, 19 Feb 2005 14:23:37 +0000 (14:23 +0000)]
We want to show _groups_ on the big screen, not _rounds_

15 years agoAdd starting frontend code for deciding which rounds are shown on the big screen.
Steinar H. Gunderson [Sat, 19 Feb 2005 14:18:54 +0000 (14:18 +0000)]
Add starting frontend code for deciding which rounds are shown on the big screen.

15 years agoClear active rounds on changing active tournament.
Steinar H. Gunderson [Sat, 19 Feb 2005 14:07:14 +0000 (14:07 +0000)]
Clear active rounds on changing active tournament.

15 years agoAdd an "active_rounds" table to the bigscreen schema, and set a primary key for the...
Steinar H. Gunderson [Sat, 19 Feb 2005 14:05:58 +0000 (14:05 +0000)]
Add an "active_rounds" table to the bigscreen schema, and set a primary key for the active_tournaments table.

15 years agoCache revision.
Steinar H. Gunderson [Sat, 19 Feb 2005 14:02:30 +0000 (14:02 +0000)]
Cache revision.

15 years agoRemove PL/PgSQL installation for now, we do manual notifies.
Steinar H. Gunderson [Sat, 19 Feb 2005 14:01:05 +0000 (14:01 +0000)]
Remove PL/PgSQL installation for now, we do manual notifies.

15 years agoFixed a misleading comment.
Steinar H. Gunderson [Sat, 19 Feb 2005 13:59:58 +0000 (13:59 +0000)]
Fixed a misleading comment.

15 years agoSupport a variable-length list of fallback fonts (and support Arial MS Unicode) inste...
Steinar H. Gunderson [Sat, 19 Feb 2005 13:54:10 +0000 (13:54 +0000)]
Support a variable-length list of fallback fonts (and support Arial MS Unicode) instead of just having two.

15 years agoSpecify correct ucs-4le/ucs-4be for little/big endian.
Steinar H. Gunderson [Sat, 19 Feb 2005 12:47:49 +0000 (12:47 +0000)]
Specify correct ucs-4le/ucs-4be for little/big endian.

15 years agoFreeType initialization errors are runtime errors, not logic errors.
Steinar H. Gunderson [Sat, 19 Feb 2005 12:24:03 +0000 (12:24 +0000)]
FreeType initialization errors are runtime errors, not logic errors.

15 years agoUse Georgia, but fall back to FreeSerif if there's a glyph we can't find.
Steinar H. Gunderson [Sat, 19 Feb 2005 12:23:29 +0000 (12:23 +0000)]
Use Georgia, but fall back to FreeSerif if there's a glyph we can't find.

15 years agoSwitch to using std::wstring, it supports UCS-4 already, just with a different type :-)
Steinar H. Gunderson [Sat, 19 Feb 2005 12:14:59 +0000 (12:14 +0000)]
Switch to using std::wstring, it supports UCS-4 already, just with a different type :-)

15 years agoSwitch to FreeSerif for the time being, since it has more glyphs.
Steinar H. Gunderson [Sat, 19 Feb 2005 12:10:28 +0000 (12:10 +0000)]
Switch to FreeSerif for the time being, since it has more glyphs.

15 years agoAssorted debugging crap.
Steinar H. Gunderson [Sat, 19 Feb 2005 03:10:59 +0000 (03:10 +0000)]
Assorted debugging crap.
01:45-04:15

15 years agoForce little-endian for our UCS-4.
Steinar H. Gunderson [Sat, 19 Feb 2005 02:51:39 +0000 (02:51 +0000)]
Force little-endian for our UCS-4.

15 years agoAdd functions for drawing text, try to do so (not very successful yet)
Steinar H. Gunderson [Sat, 19 Feb 2005 02:49:38 +0000 (02:49 +0000)]
Add functions for drawing text, try to do so (not very successful yet)

15 years agoImport TinyPTC 0.7.3 sources, switch from OpenGL to TinyPTC for now.
Steinar H. Gunderson [Sat, 19 Feb 2005 02:40:55 +0000 (02:40 +0000)]
Import TinyPTC 0.7.3 sources, switch from OpenGL to TinyPTC for now.

15 years agoInitialize FreeType, link to it.
Steinar H. Gunderson [Sat, 19 Feb 2005 02:34:15 +0000 (02:34 +0000)]
Initialize FreeType, link to it.

15 years agoRe-add OpenGL window, we commented it out and forgot it that way.
Steinar H. Gunderson [Sat, 19 Feb 2005 02:27:07 +0000 (02:27 +0000)]
Re-add OpenGL window, we commented it out and forgot it that way.

15 years agoMoved all the UCS-4 junk into operator=, where it belongs.
Steinar H. Gunderson [Sat, 19 Feb 2005 02:26:44 +0000 (02:26 +0000)]
Moved all the UCS-4 junk into operator=, where it belongs.

15 years agoAdd a framework for UCS-4 strings.
Steinar H. Gunderson [Sat, 19 Feb 2005 02:23:42 +0000 (02:23 +0000)]
Add a framework for UCS-4 strings.

15 years agoFixed so the form shows the current active tournament.
Steinar H. Gunderson [Sat, 19 Feb 2005 01:35:17 +0000 (01:35 +0000)]
Fixed so the form shows the current active tournament.

15 years agoAdd the backend for setting the active tournament.
Steinar H. Gunderson [Sat, 19 Feb 2005 01:33:53 +0000 (01:33 +0000)]
Add the backend for setting the active tournament.

15 years agoAdded a front end for setting the active tournament.
Steinar H. Gunderson [Sat, 19 Feb 2005 01:31:19 +0000 (01:31 +0000)]
Added a front end for setting the active tournament.

15 years agoRename tourn -> active_tournament
Steinar H. Gunderson [Sat, 19 Feb 2005 01:24:35 +0000 (01:24 +0000)]
Rename tourn -> active_tournament

15 years agoMake tourn a global variable (ick?), and do some placeholder logic in main_loop(...
Steinar H. Gunderson [Sat, 19 Feb 2005 01:23:45 +0000 (01:23 +0000)]
Make tourn a global variable (ick?), and do some placeholder logic in main_loop() if there is an active tournament.

15 years agoFix the transactor so it actually works.
Steinar H. Gunderson [Sat, 19 Feb 2005 01:21:03 +0000 (01:21 +0000)]
Fix the transactor so it actually works.

15 years agoAdded -g -Wall to CXXFLAGS, moved -I stuff to CPPFLAGS.
Steinar H. Gunderson [Sat, 19 Feb 2005 01:17:04 +0000 (01:17 +0000)]
Added -g -Wall to CXXFLAGS, moved -I stuff to CPPFLAGS.

15 years agoAdded a transactor for getting info from the current tournament.
Steinar H. Gunderson [Sat, 19 Feb 2005 01:16:26 +0000 (01:16 +0000)]
Added a transactor for getting info from the current tournament.

15 years agoChanged the structure of the bigscreen main loop.
Steinar H. Gunderson [Sat, 19 Feb 2005 00:57:02 +0000 (00:57 +0000)]
Changed the structure of the bigscreen main loop.

15 years agoImport doc/ from train thinking.
Steinar H. Gunderson [Sat, 19 Feb 2005 00:46:18 +0000 (00:46 +0000)]
Import doc/ from train thinking.

15 years agoInstall PL/PgSQL in the schema etc.
Steinar H. Gunderson [Fri, 18 Feb 2005 18:35:33 +0000 (18:35 +0000)]
Install PL/PgSQL in the schema etc.
16:00-19:30

15 years agoStarted on a bigscreen SQL schema.
Steinar H. Gunderson [Fri, 18 Feb 2005 18:20:26 +0000 (18:20 +0000)]
Started on a bigscreen SQL schema.

15 years agoSwitch SQL host from cirkus to altersex, to get PostgreSQL 7.4
Steinar H. Gunderson [Fri, 18 Feb 2005 18:04:20 +0000 (18:04 +0000)]
Switch SQL host from cirkus to altersex, to get PostgreSQL 7.4

15 years agoFix so we actually get the NOTIFY.
Steinar H. Gunderson [Fri, 18 Feb 2005 18:00:30 +0000 (18:00 +0000)]
Fix so we actually get the NOTIFY.

15 years agoTry to listen on a NOTIFY trigger.
Steinar H. Gunderson [Fri, 18 Feb 2005 17:55:57 +0000 (17:55 +0000)]
Try to listen on a NOTIFY trigger.

15 years agoReplace transaction<> with work.
Steinar H. Gunderson [Fri, 18 Feb 2005 17:40:21 +0000 (17:40 +0000)]
Replace transaction<> with work.

15 years agoFix DDRFreak parser to output some UTF-8 glyphs instead of HTML entities. Update...
Steinar H. Gunderson [Fri, 18 Feb 2005 17:25:43 +0000 (17:25 +0000)]
Fix DDRFreak parser to output some UTF-8 glyphs instead of HTML entities. Update Extreme SQL accordingly.

15 years agoFetch the title, not some random ID.
Steinar H. Gunderson [Fri, 18 Feb 2005 17:13:13 +0000 (17:13 +0000)]
Fetch the title, not some random ID.

15 years agoFetch out some numbers from a table.
Steinar H. Gunderson [Fri, 18 Feb 2005 17:04:18 +0000 (17:04 +0000)]
Fetch out some numbers from a table.

15 years agoAdd pq++ dependency, start code for just connecting.
Steinar H. Gunderson [Fri, 18 Feb 2005 16:58:10 +0000 (16:58 +0000)]
Add pq++ dependency, start code for just connecting.

15 years agoAdd -L/usr/X11R6/lib to LDFLAGS for the bigscreen Makefile.
Steinar H. Gunderson [Fri, 18 Feb 2005 16:46:25 +0000 (16:46 +0000)]
Add -L/usr/X11R6/lib to LDFLAGS for the bigscreen Makefile.