|
|
Theme/WPS EditorThis Page is about the new upcoming WPS / Theme editor, which is developed as a gsoc2008 project for rockbox.GeneralThis application will allow users to preview, create and edit existing WPS's and themes for Rockbox.PlanThe main aim is - create a GUI application with redefined drawing functions that uses Rockbox' drawing mechanism (second variant).StatusWPS preview is done.Who's working on thisStudent: RostislavChekan Mentor: DominikWenger Co - Mentor: NicolasPennequinDescriptionThis variant is fully based on rockbox code. Yes! As I see now we can use functions described in gwps-common.h.How? We can redefine struct screen *display; in gui_wps. If I'm right only display is charged with direct drawing to the screen. It calls functions from lcd.h to draw received data. So we can assign functions to draw in our application. If it can be used as a standalone library we will have already made display mechanism. I think it can be done, same as checkwps. If so, I'll only need to create drawing functions. But there will be needed lots of callbacks which will not be included in the dll. So which of them is another research, I haven't done yet. Any advice here? display is used in:
Update.Basic mechanism for editing:User clicks left mouse button, editor detects it. Now we know coordinates on the wps. So, we know child viewport. And can calculate the line clicked in that viewport. If we know line - we can take all needed tokens from wps_data structure, and display some basic representation of native rockbox tokens. Than user can edit line. After that we take original text representation of the wps, and replace edited and original line in our viewport. r13 - 02 Apr 2021 - 20:46:07 - UnknownUser
Copyright © by the contributing authors.
|