Commit graph

289 commits

Author SHA1 Message Date
Rafaël Carré
c0bd4173aa Make sure files which aren't windows-specific use \n line endings only
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26893 a1c6a512-1295-4272-9138-f99709370657
2010-06-17 16:59:51 +00:00
Robert Bieber
1dc2c5ebcb Theme Editor: Stopped combo boxes in configuration editor from scrolling on mouse-wheel
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26879 a1c6a512-1295-4272-9138-f99709370657
2010-06-17 07:34:24 +00:00
Robert Bieber
75560845aa Theme Editor: Working on renderer infrastructure
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26878 a1c6a512-1295-4272-9138-f99709370657
2010-06-17 06:59:46 +00:00
Jonathan Gordon
36b934d241 Move the skin parser to a seperate library
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26877 a1c6a512-1295-4272-9138-f99709370657
2010-06-17 06:52:02 +00:00
Robert Bieber
ca564287ee Theme Editor: Moved source files into subdirectories
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26876 a1c6a512-1295-4272-9138-f99709370657
2010-06-17 05:37:01 +00:00
Robert Bieber
604b17aa08 Theme Editor: Began working on skin preview viewer
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26874 a1c6a512-1295-4272-9138-f99709370657
2010-06-17 00:40:07 +00:00
Robert Bieber
60d5f5050b Theme Editor: Items from line under cursor now selected in parse tree view
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26870 a1c6a512-1295-4272-9138-f99709370657
2010-06-16 19:24:53 +00:00
Robert Bieber
0d48448500 Theme Editor: Replaced line edits for key names with combo boxes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26868 a1c6a512-1295-4272-9138-f99709370657
2010-06-16 07:47:03 +00:00
Robert Bieber
267a446887 Theme Editor: Implemented save/save as in the configuration file editor
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26863 a1c6a512-1295-4272-9138-f99709370657
2010-06-15 20:55:56 +00:00
Robert Bieber
0c26a790ee Theme Editor: Added copyright headers to ConfigDocument files, continued work on configuration editing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26862 a1c6a512-1295-4272-9138-f99709370657
2010-06-15 20:31:28 +00:00
Maurus Cuelenaere
98a5780d6d Theme editor: only accept valid colors in the preference dialog
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26857 a1c6a512-1295-4272-9138-f99709370657
2010-06-15 11:06:40 +00:00
Robert Bieber
2e320f66f4 Theme Editor: Changed color to colour in preferences. Made parse tree viewer alternate line colors and auto-scroll/expand with cursor in editor window. Implemented TabContent abstract class so that more than just skin documents can be loaded in tabs. Made SkinDocument implement TabContent. Began implementing ConfigDocument for editing configuration files.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26851 a1c6a512-1295-4272-9138-f99709370657
2010-06-15 06:54:58 +00:00
Jonathan Gordon
2e75dae5d6 dont reuse vairbale names
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26845 a1c6a512-1295-4272-9138-f99709370657
2010-06-14 11:30:00 +00:00
Jonathan Gordon
b49577b381 some tags need special handling when they are in the wrong branch of a conditional, so go ahead and make that work :p
also replace malloc with skin_alloc


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26842 a1c6a512-1295-4272-9138-f99709370657
2010-06-14 10:00:22 +00:00
Robert Bieber
d827d20416 Theme Editor: Set window title on the preferences dialog
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26841 a1c6a512-1295-4272-9138-f99709370657
2010-06-14 07:12:53 +00:00
Robert Bieber
44c122b43c Theme Editor: Made new tabs raise to forefront
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26840 a1c6a512-1295-4272-9138-f99709370657
2010-06-14 06:47:05 +00:00
Robert Bieber
046832c821 Theme Editor: Stripped out the sub-classes for ProjectModel and turned ProjectModel into a list model, also replaced the project tree view with a list view
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26839 a1c6a512-1295-4272-9138-f99709370657
2010-06-14 06:20:07 +00:00
Jonathan Gordon
3f5851f41f make the next line after a viewport (if it is on the same skin line) auto-eat the \n
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26837 a1c6a512-1295-4272-9138-f99709370657
2010-06-14 01:08:39 +00:00
Jonathan Gordon
dfce357474 duh, this is needed also
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26834 a1c6a512-1295-4272-9138-f99709370657
2010-06-13 14:42:47 +00:00
Jonathan Gordon
17c3484325 Start dealing with LINE elements... setup a flag which lets tags tell the renderer to not start a new line in the viewport (i.e %we/d/i %X/x/xd etc)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26833 a1c6a512-1295-4272-9138-f99709370657
2010-06-13 14:42:09 +00:00
Jonathan Gordon
21cbdac55f get the renderer working more better! "handle" sublines correctly, dont "draw" in the first viewport if we are using viewports, get rid of the idea of a linear token array (i.e we are going to use the parse tree directly)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26831 a1c6a512-1295-4272-9138-f99709370657
2010-06-13 13:54:34 +00:00
Jonathan Gordon
35b09cb615 initialise the element->type value so TAG types dont accidently get VIEWPORT if it element->type == 0 at alloc time
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26825 a1c6a512-1295-4272-9138-f99709370657
2010-06-13 03:13:01 +00:00
Jonathan Gordon
3f06273e7c count line numbers correctly, handle the VIEWPORT change so it only ever has one child
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26824 a1c6a512-1295-4272-9138-f99709370657
2010-06-13 02:27:13 +00:00
Robert Bieber
ce0d21437e Theme Editor: Made errors display in status bar when cursor is on error'd line
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26801 a1c6a512-1295-4272-9138-f99709370657
2010-06-11 21:24:38 +00:00
Robert Bieber
fa08c83e29 Theme Editor: Fixed status bar update bug
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26798 a1c6a512-1295-4272-9138-f99709370657
2010-06-11 20:51:49 +00:00
Robert Bieber
2aecee81cb Theme Editor: Made editor highlight all errors in a document, not just the first one
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26795 a1c6a512-1295-4272-9138-f99709370657
2010-06-11 20:11:45 +00:00
Robert Bieber
3c95dbb208 Theme Editor: Fixed bug in parser handling empty lines and made ParseTreeModel handle the new VIEWPORT element properly
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26792 a1c6a512-1295-4272-9138-f99709370657
2010-06-11 19:51:34 +00:00
Robert Bieber
0c38353869 Theme Editor: Switched error highlighting to the line numbers
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26785 a1c6a512-1295-4272-9138-f99709370657
2010-06-11 19:03:49 +00:00
Robert Bieber
1b613f583d Theme Editor: Modified parser to integrate the %V tag into the VIEWPORT element, in the same style as CONDITIONAL
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26762 a1c6a512-1295-4272-9138-f99709370657
2010-06-11 08:03:32 +00:00
Jonathan Gordon
b4a9564790 Add my new parser playground to svn.
Currently it can load a skin, and walk the parse tree and output the tags as required. It always chooses the first value for a conditional and subline, but a good working start
there seems to be a error in the new parser if ROCKBOX is defined... need to fix that


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26757 a1c6a512-1295-4272-9138-f99709370657
2010-06-11 04:47:46 +00:00
Robert Bieber
66d9ab289f Theme Editor: Fixed code generation with new CONDITIONAL elements
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26753 a1c6a512-1295-4272-9138-f99709370657
2010-06-10 21:52:53 +00:00
Robert Bieber
4b77e82d67 Theme Editor: Fixed issue with parsing conditionals in sublines
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26752 a1c6a512-1295-4272-9138-f99709370657
2010-06-10 21:22:16 +00:00
Robert Bieber
64321adf43 Theme Editor: Applied FS#11389, switched conditional elements to use tag fields along with children, instead of holding the tag as the first child
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26751 a1c6a512-1295-4272-9138-f99709370657
2010-06-10 21:02:44 +00:00
Jonathan Gordon
466a69814e Fix the bar type param to use nullable ints
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26741 a1c6a512-1295-4272-9138-f99709370657
2010-06-10 14:50:11 +00:00
Robert Bieber
c3a698e46a Theme Editor: Added project settings to the project panel view
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26737 a1c6a512-1295-4272-9138-f99709370657
2010-06-10 07:51:21 +00:00
Robert Bieber
cb26aecf92 Theme Editor: Opening an already opened document no longer spawns a new tab
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26736 a1c6a512-1295-4272-9138-f99709370657
2010-06-10 07:06:38 +00:00
Robert Bieber
fc94a92ad1 Theme Editor: Enabled loading project files from the project panel
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26732 a1c6a512-1295-4272-9138-f99709370657
2010-06-09 21:37:15 +00:00
Robert Bieber
1cc95c541b Theme Editor: Got project viewer displaying WPS files
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26731 a1c6a512-1295-4272-9138-f99709370657
2010-06-09 20:28:51 +00:00
Jonathan Gordon
9ac4b44610 SKIN BREAK: %pb, %bl and %pv (bar types) changed so the image is the last param instead of the first. skin updater, skins and manual all updated.
NEW PARSER: add an 'N' param type which will accept any number of strings, will cause very big problems if this isnt the last param for a tag.



git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26727 a1c6a512-1295-4272-9138-f99709370657
2010-06-09 16:15:01 +00:00
Jonathan Gordon
20b9020adc fix %C, and the viewport colour tags so they parse
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26726 a1c6a512-1295-4272-9138-f99709370657
2010-06-09 14:51:52 +00:00
Jonathan Gordon
45ed0b86eb fix %Vp updating...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26722 a1c6a512-1295-4272-9138-f99709370657
2010-06-09 13:30:10 +00:00
Robert Bieber
ceddd2f1e8 Theme Editor: Working on the project viewer infrastructure
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26714 a1c6a512-1295-4272-9138-f99709370657
2010-06-09 07:51:22 +00:00
Rafaël Carré
811c35957d meizu_dfu: supports a single argument to run some code from RAM
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26708 a1c6a512-1295-4272-9138-f99709370657
2010-06-08 23:04:17 +00:00
Robert Bieber
61b5f0c973 Theme Editor: Began implementing classes to display project files and settings in the project panel
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26706 a1c6a512-1295-4272-9138-f99709370657
2010-06-08 21:30:28 +00:00
Robert Bieber
6c9b0358b0 Theme Editor: Made parser recover memory on error
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26703 a1c6a512-1295-4272-9138-f99709370657
2010-06-08 19:34:27 +00:00
Jonathan Gordon
50356d8387 The real reason to change the %C was to remove a very nasty hack!
%CL - load the AA
%C - check if AA is avilable
%Cd - display the AA


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26696 a1c6a512-1295-4272-9138-f99709370657
2010-06-08 15:09:32 +00:00
Jonathan Gordon
360ed994a3 fix %Vi again
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26695 a1c6a512-1295-4272-9138-f99709370657
2010-06-08 14:55:37 +00:00
Jonathan Gordon
2309d6d1e1 change to %Cd to display albumart (instead of %C to make it more consistant with %Vd/%Vl and %xd/%xl)
Also assume ; in skins are for sublines.. this means if you want ; in text you need to manually escape it (%;) far less false positives then


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26693 a1c6a512-1295-4272-9138-f99709370657
2010-06-08 14:52:03 +00:00
Jonathan Gordon
c4fbb07a76 FS#11383 - fix the touchregion param string
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26692 a1c6a512-1295-4272-9138-f99709370657
2010-06-08 14:45:28 +00:00
Jonathan Gordon
b71dc1f952 fix FS#11384, skinupdater barfed on %Xd and %Vi
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26691 a1c6a512-1295-4272-9138-f99709370657
2010-06-08 14:43:30 +00:00