Jeff Teunissen
b18302eac1
Array: sorta-implement -description
...
An #if 0'ed out implementation of the -description method, which currently
returns a Quake string containing whatever the contained objects return
from -description, between parens and separated by commas (just like plist
format). Ideally, we'd have string objects interchangeable with primitive
strings, but having string objects (which are being worked on) should help.
2011-06-14 13:31:30 -04:00
Jeff Teunissen
21c46b9081
View: add brief description
2011-06-14 13:31:30 -04:00
Jeff Teunissen
cb86e09029
Rualib: documentation updates.
...
Add a layout file for Rua docs and create groups for its library functions.
2011-06-14 13:31:30 -04:00
Bill Currie
30bd1c0134
Create classes for inputing cvar strings and script the network menu.
...
Hitting enter after inputting text is currently broken, but that's because
support for it was never put in the inputline wrapper code.
2011-03-25 18:26:10 +09:00
Bill Currie
896791b209
Correct the spelling of "int" and clean up the mess.
2011-03-25 16:53:04 +09:00
Bill Currie
8c1d948586
And qfcc finds another bug :)
2011-03-24 13:36:36 +09:00
Bill Currie
1822290b1a
Fix the double offset of inputline text.
2011-03-24 08:50:32 +09:00
Bill Currie
e878ace83b
Make input lines mostly work.
...
There is still a problem with the placement of the input line text
relative to the text box caused by vertical movement being excessive.
2011-03-23 21:35:49 +09:00
Bill Currie
98f5f84ca3
Clean up the leftovers of converting the controls menu.
...
The bindings menu is still inaccessible, though.
2011-03-23 15:22:01 +09:00
Bill Currie
15fc325136
Fix the features menu.
2011-03-23 15:19:30 +09:00
Bill Currie
bc0cffc9c6
Fix handling of autorelease pools in the menu code.
...
Create a "menu_pre" function that creates the autorelease pool, change
menu_post() to release the pool correctly, and make the menu internal code
require and call menu_pre.
2011-03-21 13:14:14 +09:00
Bill Currie
a9e139e14c
Correct a minor logic error.
...
We don't want to always add a new autorelease pool, and we certainly want
one if there are none.
2011-03-21 13:12:30 +09:00
Bill Currie
7b9d70167f
Fix some missed language changes.
2011-03-10 20:51:04 +09:00
Bill Currie
59f520f4e7
Fix some parse errors that were lost in the noise.
2011-03-03 10:39:21 +09:00
Bill Currie
aa4ed00090
Fix the message type used to check arguments.
2011-03-02 22:13:16 +09:00
Bill Currie
3a1e467ae8
Non-bogus syntax and warning fixes for ruamoko/cl_menu.
...
Sadly, there are many bogus warnings and other errors. qfcc is still very
sick :(.
2011-02-14 23:10:46 +09:00
Bill Currie
9ac6929cf7
Syntax fixes for ruamoko/game.
...
This one actually would compile if object files were working.
2011-02-14 23:10:46 +09:00
Bill Currie
6af747705c
Syntax fixes for ruamoko/scheme.
2011-02-14 23:10:46 +09:00
Bill Currie
da3ac388fe
Syntax fixes for ruamoko/gui.
...
Once aggregate initializers are working, ruamoko/gui will "compile"
(no object files, and still the bogus integer constant into ... warning).
2011-02-14 23:10:46 +09:00
Bill Currie
595019d86e
Fix some problems found by the new qfcc.
...
With this, ruamoko/lib almost compiles (though no object files are output).
Just some bogus "redeclared" errors and an improperly implemented
statement that produces an ice.
2011-02-14 23:10:45 +09:00
Bill Currie
daae0284a1
Work around a warning about passing int constants into ...
...
I'm not sure why this is happening now when it didn't in the old qfcc,
but this will take care of the warning for now until I can get around to
fixing it.
2011-02-14 23:10:45 +09:00
Bill Currie
1195df9686
Update for the new syntax.
2011-02-13 21:25:36 +09:00
Bill Currie
ed3f98eab4
qwaq related compile fixes for the new function syntax rules.
2011-02-13 19:07:30 +09:00
Bill Currie
1f8b453d58
Add some return statments for now.
...
At the moment, qfcc has no way of knowing that a function will never
return. This is needed until the time qfcc can know that.
2011-02-10 14:48:06 +09:00
Bill Currie
d6b10c99aa
Most, if not all, of the fixes needed to get qwaq building.
...
This is pretty much just changing [] to * and moving [N] to the other side
of the variable name.
2011-02-07 22:16:16 +09:00
Bill Currie
c38ea0b1bc
Correct the spelling of "nil".
2011-01-14 12:07:40 +09:00
Bill Currie
f2fb853052
Fix for parallel make.
2011-01-10 13:29:51 +09:00
Bill Currie
cbe245725b
Install the symbol file so menus can be debugged.
2011-01-10 12:26:11 +09:00
Bill Currie
9e06220dc5
Missed a class -> class pointer change.
2011-01-10 12:26:11 +09:00
Bill Currie
6ebee4ad0e
Get the type of Method right.
...
It's a direct structure rather than a pointer.
2011-01-10 12:25:31 +09:00
Bill Currie
75ec6bf244
Clean out some unnecessary types from the progs engine and clean up the mess.
...
This is a nasty commit, sorry, but 99% of the commit is interdependent.
2011-01-10 12:25:31 +09:00
Bill Currie
c5edbf147a
Move ruamoko libs and headers into ${prefix}/lib/qfcc
2010-12-24 19:39:54 +09:00
Jeff Teunissen
b184739f03
Use qfcc's new unsigned constant qualifier for UINT_MAX
2010-12-24 05:09:14 -05:00
Jeff Teunissen
81d927c702
rename Runtime.h -- it's not a class.
2010-12-24 05:03:31 -05:00
Jeff Teunissen
cdb9783d69
Actually commit the new header...
...
@#$@$#^%^
2010-12-16 06:46:59 -05:00
Jeff Teunissen
ff57b96bc6
Add Runtime header for obj* stuff.
...
Also, move lots of stuff out of the Object header.
2010-12-16 06:42:28 -05:00
Jeff Teunissen
7cb2ce3263
whitespace, clean up AutoreleasePool warnings
...
d'oh! How did I forget to include that header?
2010-12-16 06:24:54 -05:00
Jeff Teunissen
061f56ea2d
Add missing methods
...
Array: Implement -indexOfObject: and -indexOfObjectIdenticalTo:
2010-12-16 06:24:54 -05:00
Jeff Teunissen
4968b65b2f
Minor doc updates
...
Reveal more Rua documentation that I had already written years ago, and
clean up Array a little.
2010-12-16 06:24:54 -05:00
Jeff Teunissen
a8e3d5d527
Doc fixes
...
Tweak colors, add borders around some images, remove static definitions
from engine docs.
2010-12-16 06:24:54 -05:00
Bill Currie
096d7f5791
Turn on -Wall -Wno-integer-divide
...
This will break Array.r until Deek gets his changes in.
2010-12-16 20:14:06 +09:00
Bill Currie
6d494bfcdf
Fix a slew of warnings found by -Wall.
...
-Wall still isn't used yet due to a missing method in Array, and
overzealous warnings in qfcc, but this covers the necessary fixes.
2010-12-16 20:01:49 +09:00
Jeff Teunissen
28338bc74e
Turn off timestamping in HTML docs
...
The pointless deltas were slowing rsync down more than I'd like, and it's
not as if that information is all THAT useful. Nuke it.
2010-12-13 13:20:26 -05:00
Jeff Teunissen
d9e97e27a2
Doxygen formatting updates
...
Doxygen-produced HTML docs now look a lot more like the web site, and
are now more attractive in general. :)
2010-12-13 03:28:34 -05:00
Bill Currie
d89893682e
Tweak an "only".
...
*twitch*
2010-12-12 22:55:53 +09:00
Bill Currie
736c9a3a60
Create a reference to Array(Private).
...
This is the real fix for the problem worked around by 5c8cb8fe
.
2010-12-12 20:44:46 +09:00
Bill Currie
c262229478
Revert "Move private Array methods into main file"
...
This reverts commit 5c8cb8fec8
.
The fix comes next.
2010-12-12 20:43:28 +09:00
Jeff Teunissen
15ba4091bc
Doc fixes.
...
Document some more Array methods, mark the private methods as private in
the docs.
2010-12-12 05:45:12 -05:00
Jeff Teunissen
4a8ff8aee8
A little strictness: error out in some nasty conditions.
2010-12-12 05:41:52 -05:00
Jeff Teunissen
f86e933c6a
Array API fixes
...
NQ menus work now.
2010-12-12 05:40:24 -05:00
Jeff Teunissen
5c8cb8fec8
Move private Array methods into main file
...
#if 0 out the "normal" implementation, so that it doesn't hurt. When it
becomes possible to have the private Array methods separate, remove them
from the main file and remove the #if 0 block from Array+Private.r.
2010-12-12 05:39:17 -05:00
Bill Currie
c08c072da7
Make ruamoko docs build properly in out-of-tree builds.
2010-12-12 14:20:23 +09:00
Jeff Teunissen
22dd7cd20d
Avoid wasting a local and giving the compiler a minor aneurysm
...
qfcc doesn't yet like foo[bar++] = baz; let's be nice and not give it
indigestion.
2010-12-12 00:16:33 -05:00
Jeff Teunissen
0371a825b8
Damn, documented wrong method.
2010-12-11 23:49:48 -05:00
Jeff Teunissen
f13c45a9ae
kill extra reference to Array in docs
2010-12-11 23:45:48 -05:00
Jeff Teunissen
537915f5bc
Ruamoko: Document AutoreleasePool
2010-12-11 23:45:19 -05:00
Jeff Teunissen
b45ff85f0c
Add doxyfile for Ruamoko lib
...
Whee, Rua docs!
2010-12-11 23:44:11 -05:00
Jeff Teunissen
8d05b07a26
remove empty -release in AutoreleasePool.
2010-12-11 23:32:04 -05:00
Jeff Teunissen
180450e785
declare ARP_FreeAllPools() @extern
2010-12-11 23:23:55 -05:00
Jeff Teunissen
c58a72842f
Update users of Array to new API
2010-12-11 20:32:19 -05:00
Jeff Teunissen
505076a98d
rewrite Array, AutoreleasePool
...
This version is a bit more useful, and we should be able to get rid of the
Stack class. Also, the Ruamoko parts of the autorelease system should be
almost ready now.
2010-12-11 20:32:19 -05:00
Jeff Teunissen
4bd37e7b64
Switch to C-style function declarations.
...
Doxygen hates the QuakeC-style function prototypes we use, so switch to the
C-style prototypes.
2010-12-11 20:31:59 -05:00
Bill Currie
3b0dbd29ca
make distcheck fixes
2010-12-06 21:24:49 +09:00
Bill Currie
32bf4aed2b
get the message name right
2010-11-28 14:36:21 +09:00
Bill Currie
7ce1fc3be5
Break out all the classes into their own files.
2010-11-24 17:01:19 +09:00
Bill Currie
2b3ba0633e
Break out the menu plist parser into its own file.
2010-11-24 17:01:19 +09:00
Bill Currie
e471ddff47
Use the new file based property list API.
...
Also eleminate the menu_plist global (the plist does not hang around).
2010-11-24 17:01:19 +09:00
Bill Currie
addbcaa09c
Add PL_GetFromFile builtin.
...
This is an extension "wrapper" (no such C function). This allows ruamoko
programs to read property lists without worrying about the memory required
to store the string for the property list being read.
2010-11-24 17:01:19 +09:00
Bill Currie
857f8eb6e4
Get the plist controls menu mostly working.
...
The bindings menu is currently inaccessible.
2010-11-24 17:01:19 +09:00
Bill Currie
9c3c1b9ac1
Use @param instead of id to pass objects within the menu parser.
...
This allows mixed types (eg, objects and Rects). To be passed around. This
sorts out the changes needed for the conversion of Rect from object to
struct.
2010-11-24 17:01:19 +09:00
Bill Currie
730082a393
Make Group set its position (and those of its subviews) correctly.
2010-11-24 17:01:19 +09:00
Bill Currie
e9fea12e47
Must return self in -autorelease
2010-11-24 17:01:19 +09:00
Bill Currie
3878b76cc5
Start using autorelease.
...
Much more testing is required (oh, but for qc-valgrind), but there is now
a ~945kB block of free data in the menu progs heap :).
Also, correct the printed size of the memory block to not include the
block header size.
2010-11-24 17:01:18 +09:00
Bill Currie
4518e6af91
First stab at implementing autorelease.
...
It's probably nowhere near right, but probably ok for now (I need to study
the GNUStep code). I'm unhappy with the menu code hook, but it will have
to do for now.
2010-11-24 17:01:18 +09:00
Bill Currie
7acf8c0570
Must retain before release.
2010-11-24 17:01:18 +09:00
Bill Currie
5fc4ef63f6
Rewrite ruamoko plist support to use handles.
...
The plist code was written long before I thought of resource handles, and
then it was forgotten. This is much nicer and safer than storing C
pointers in progs memory space (*shudder*).
2010-11-24 17:01:18 +09:00
Bill Currie
c460e3c979
Fix setBasePos to get the pos from a view.
...
This fixes Group for the Point/Size/Rect change.
2010-11-24 17:01:18 +09:00
Bill Currie
b0879ba255
Convert Point, Size and Rect to structs.
...
Group and the menu plist parser are currently broken.
2010-11-24 17:01:17 +09:00
Bill Currie
0dfff8fd58
ignore stuff
2010-08-07 10:42:09 +00:00
Bill Currie
997102fea8
audit the usage of "only"
...
There are still a few iffy places (notably around certain prepositions), but
the relevant sentences are now much easier to read.
2010-01-13 06:42:26 +00:00
Bill Currie
8abb9a69aa
remove support for an optional = in struct/union declarations
2010-01-13 06:34:32 +00:00
Bill Currie
ff61dbb329
fix some sillies with QFS_FileList
...
Use dynamic strings instead of temp strings for the list
2010-01-13 06:29:01 +00:00
Bill Currie
334f12e0cf
fix some problems found by the new qfcc warning :)
2010-01-13 06:27:48 +00:00
Bill Currie
128faf773a
give sprintf a real prototype
2010-01-13 06:25:38 +00:00
Bill Currie
bffd9f208f
more sounds in menus
2007-05-13 05:14:32 +00:00
Bill Currie
66ab41534c
make the menu plist reading more efficient
2007-05-13 04:03:04 +00:00
Bill Currie
d996c364b8
massively speedup savegame scanning (and bump the menu progs memory size again :/)
2007-05-13 03:56:08 +00:00
Bill Currie
72daa2fd2b
add some sounds to the menus (not yet finished)
2007-05-07 12:17:12 +00:00
Bill Currie
eae39106c4
undefine BUILTIN before defining it (boost's preprocessor didn't like that)
2007-04-07 11:31:19 +00:00
Bill Currie
6e77198b6f
handle the new save files properly
2007-03-25 02:01:10 +00:00
Bill Currie
c3bb363fb6
add controls settings (don't know if they work, or are used, but again, don't want to lose it)
2007-02-09 09:25:03 +00:00
Bill Currie
33f08b6a43
add QFS_Open and QFS_WOpen
2006-12-20 12:08:57 +00:00
Bill Currie
de5bf80eb8
release the item after removing it from the array, rather than before
2006-12-20 11:33:40 +00:00
Bill Currie
809ce1fb82
fix some leak issues
2006-12-16 14:00:00 +00:00
Bill Currie
68e7b3199d
add finding elements
2006-12-16 13:59:29 +00:00
Bill Currie
70ec9848e7
add PL_RemoveObjectForKey and make PL_D_AddObject take a normal C string for key instead of a pl string.
2006-12-09 06:00:36 +00:00
Bill Currie
eeca330af2
whitespace
2006-12-02 06:51:41 +00:00
Bill Currie
175ad185c2
don't install main.dat* *taniwha beats snax over the head with a large trout
2005-09-07 00:33:11 +00:00
Bill Currie
e257560174
print a message if menu.plist can't be opened
2005-08-18 00:28:14 +00:00
Bill Currie
b7803030c4
some error handling :)
2005-08-18 00:25:09 +00:00