Commit Graph

585 Commits

Author SHA1 Message Date
mdb c24098f204 Added support for building a RoboDJ debian package. It's somewhat simple
and doesn't support the server or ripping dependencies yet.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@593 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-02-22 07:30:42 +00:00
mdb 328974f873 New feature plans.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@592 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-02-22 07:30:05 +00:00
mdb db1c460988 Removed debug logging.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@591 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-02-22 07:28:29 +00:00
mdb 7c5281188e Added support for looking up entries by artist/title/song.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@590 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-02-22 07:06:34 +00:00
shaper 780dbf478f Updated comment for isSet() to better reflect reality.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@589 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-02-19 19:07:13 +00:00
shaper e58ee29efa Take into account the specified default value for checkboxes.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@588 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-02-19 19:01:21 +00:00
shaper 3875590c4c Added a version of isSet() that takes a default value to be returned if
the parameter value is unspecified.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@587 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-02-19 19:00:18 +00:00
mdb a947e12e27 Only sort our array if it has more than one element; fixed a bug where
_size was not being decremented after removing an item.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@586 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-02-19 03:53:37 +00:00
mdb 8969525a40 Created a polygon extension that can return its bounds without creating a
freaking Rectangle object each time.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@585 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-02-19 03:41:41 +00:00
mdb defce23751 Use a SortableArrayList instead of sorting a regular array list to avoid
creating craploads of objects every time an interval expires.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@584 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-02-19 03:39:41 +00:00
mdb 57a2d005a4 An array backed List implementation that can be sorted without making two
copies of the underlying elements array (which is what happens when one
calls Collections.sort(ArrayList)).


git-svn-id: https://samskivert.googlecode.com/svn/trunk@583 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-02-19 03:38:58 +00:00
mdb eac34e4344 Added a Comparable comparator.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@582 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-02-19 03:38:06 +00:00
mdb 91a3819165 Added insert().
git-svn-id: https://samskivert.googlecode.com/svn/trunk@581 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-02-19 03:37:48 +00:00
mdb 3900a7da7f A class for doing quick sorts.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@580 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-02-19 03:37:32 +00:00
mdb 64136345e0 Implemented a simple histogram tracking class.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@579 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-02-18 06:22:56 +00:00
mdb 4eeda0821d Added toMatrixString() for dumping int arrays in matrix format.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@578 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-02-17 23:35:15 +00:00
mdb bf4dcc16dd Was referencing value before it was known to be not null and was creating
a new string when we could instead use equalsIgnoreCase().


git-svn-id: https://samskivert.googlecode.com/svn/trunk@577 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-02-17 08:28:34 +00:00
mdb f51081c947 git-svn-id: https://samskivert.googlecode.com/svn/trunk@576 6335cc39-0255-0410-8fd6-9bcaacd3b74c 2002-02-16 06:57:13 +00:00
shaper 5df1aa55b3 Added requireFloatParameter().
git-svn-id: https://samskivert.googlecode.com/svn/trunk@575 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-02-16 01:14:56 +00:00
shaper 3bd9c276da Added getIntParameter().
git-svn-id: https://samskivert.googlecode.com/svn/trunk@574 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-02-13 19:35:50 +00:00
mdb 9b2974d340 Configure MP3 library to automatically close the MP3 source when stop() is
called, this apparently also causes the audio device to be released; undef
the playing song when we stop so that we do the right thing when we start
back up again.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@573 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-02-11 18:25:44 +00:00
mdb c0b818b539 Added StringTool for doing simple string stuff from within a template
(presently just checking if a string is blank).


git-svn-id: https://samskivert.googlecode.com/svn/trunk@572 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-02-10 05:06:09 +00:00
mdb a37f5aca61 We can't look for null 'table', because that might extraneously reference
some not-actually-derived table. We need to be looking at nTables because
that's the real indicator of whether or not there are more derived tables
to be looking at.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@571 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-02-10 04:17:49 +00:00
mdb 3c3648a4af Added toString().
git-svn-id: https://samskivert.googlecode.com/svn/trunk@570 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-02-10 04:16:57 +00:00
mdb af4aa89485 Reformatting. Nothing to see here.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@569 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-02-10 02:13:03 +00:00
mdb 1f30a21f1b To preserve compatibility with old implementation of parseStringArray()
and to generally behave properly, we return a zero-length array if we are
supplied with a zero-length string.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@568 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-02-08 09:35:45 +00:00
mdb d5fb2fe6b1 Rewrote split() and parseStringArray() not to use StringTokenizer because
it does undesirable things like not report multiple separators and skip
separators that show up at the beginning of the string. We prefer the more
rigorous approach of interpreting something like ",," as three empty
strings rather than nothing at all which is what StringTokenizer would
report.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@567 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-02-07 08:41:59 +00:00
mdb c8b84525cf Third time is a charm.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@566 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-02-06 00:56:57 +00:00
mdb 71f08da721 Need to be a bit smarter about when to prepend ', '.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@565 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-02-05 22:30:31 +00:00
mdb 944eedbfa4 If we call next() after a previous call to next() returned null, we need
to notice that and continue to return null rather than choking.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@564 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-02-05 22:25:49 +00:00
shaper 09cb8afb44 Return the menu items created by the various permutations of addMenuItem()
in case the caller cares to do things like setting their enabled state.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@563 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-02-05 21:48:47 +00:00
mdb 41190c49fe Switch to destfile.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@562 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-02-05 21:47:06 +00:00
shaper dc55a3bd00 Added support for adding menu items with reflected callback methods to a
JPopupMenu which, unfortunately, doesn't extend JMenu and so necessitates
its own class-specific implementation.  Expanded imports.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@561 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-02-04 17:30:50 +00:00
mdb 1d7faa049a Added a version of fieldsToString() that takes a string buffer.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@560 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-02-04 01:14:49 +00:00
mdb 3af18399cd Implemented an efficient integer set class that uses a sorted array of
integers to maintain its contents.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@559 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-02-03 07:10:16 +00:00
mdb 1b26bab85b Use Arrays.equals() instead of rolling our own.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@558 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-02-03 07:09:50 +00:00
mdb fa448571ca Implemented code to manipulate compact lists of integers.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@557 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-02-03 05:25:20 +00:00
mdb b436105dba Need to check the other version of hexlate for null arguments as well.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@556 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-02-03 02:11:09 +00:00
shaper 4e9914b55d Return the empty string for a null byte array in hexlate().
git-svn-id: https://samskivert.googlecode.com/svn/trunk@555 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-02-03 02:07:26 +00:00
mdb f08bc39cfe Added safeToString() for those times when you're feeling extremely robust.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@554 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-02-02 09:51:19 +00:00
mdb d0c169f673 Added fieldsToString().
git-svn-id: https://samskivert.googlecode.com/svn/trunk@553 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-02-02 00:03:14 +00:00
mdb 6d17e9dde2 Added checkedUpdate() which is useful for ensuring that an insertion
modifies the expected number of rows.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@552 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-02-01 18:33:16 +00:00
mdb 99e611fc22 Created ByteArrayOutInputStream for writing data to a byte array output
stream and then reading it back via an InputStream without having to copy
the data to a separate buffer.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@551 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-02-01 18:19:43 +00:00
mdb 2fb0906dda Made joinEscaped() handle null array elements by converting them to the
empty string.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@550 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-01-30 18:21:15 +00:00
mdb a7eef89a75 Added StringUtil.joinEscaped() and a unit test for said.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@549 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-01-30 18:11:27 +00:00
mdb 7c62fe276b Removed the code that allowed a player to play a piecen that was freed up
by their tile placement on the same turn.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@548 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-01-29 23:47:34 +00:00
mdb 4ed9579c98 Display the number of tiles remaining, not counting the one currently
being placed by the active turn holder.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@547 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-01-29 23:47:03 +00:00
mdb 89807fe8b7 Count piecens from the distributed object rather than the board so that we
correctly disallow placement of a piecen that was freed on the same turn.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@546 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-01-29 23:46:37 +00:00
mdb 38b45bda04 New resource manager constructor signature.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@545 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-01-29 23:45:56 +00:00
mdb a04f681a59 Moved test code into separate unit test driver.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@544 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-01-29 23:19:41 +00:00