aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-06-21add a select callback on a clock from the search resultDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-21find a clock with a clock nameDaniel Lezcano
and add a 'find' ops. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-21implement the find callbackDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-21Optimize the displayDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-21split header and footer displayDaniel Lezcano
Splitting the header and the footer will help to display a new footer like the search string. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-21Add the find callbackDaniel Lezcano
Switch the keyboard callback when we switch to the find mode. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-21Cleanup the headersDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-21Factor out display codeDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-21remove maxx and maxy global variablesDaniel Lezcano
The maxx and maxy variables are already global functions defined in the ncurses library. They are accessible through the getmaxyx macro. Is it not needed to add two more global variables to our code, let's use the code ncurses gives to us. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-21remove useless definitionDaniel Lezcano
Remove the 'print' wrapper which inverts the screen coordinate. This is opposite to the ncurses function convention and may lead to wrong code. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-21simplify the windowsDaniel Lezcano
We don't need a window per pm block, just a main window refreshed at the right moment is needed. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-21make use of the mainloop codeDaniel Lezcano
Use the mainloop we added in the previous patch. Some reorg is needed with the functions, they are moved up and down to prevent forward declarations. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-21add a real mainloopDaniel Lezcano
Add a mainloop code with registering of the callbacks and co. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-15make some display functions staticDaniel Lezcano
Make some functions static as they are no longer out of the scope of the display code. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-15remove unselect lineDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-15Remove the useless defineDaniel Lezcano
The less we have define for pm blocks the easier is to add more pm blocks. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-15Encapsulate the display (10)Daniel Lezcano
The keystroke callback could be moved to the display code. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-15cleanup the headersDaniel Lezcano
Make some cleanup around the headers. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-15change the keystroke callback for less testDaniel Lezcano
We can use a switch here to check the key which was stroke. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-15Encapsulate the display (9)Daniel Lezcano
Remove unused parameter for the keystroke callback. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-15Encapsulate the display (8)Daniel Lezcano
We don't have anymore a specific case for each pm block as we use some ops now. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-15Encapsulate the display (7)Daniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-15Encapsulate the display (6)Daniel Lezcano
Let's create some ops to be registered by the pm blocks to the display. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-15Remove unused variablesDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-15Encapsulate the display (4)Daniel Lezcano
Remove the old "findparent" code. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-15Encapsulate the display (3)Daniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-15Encapsulate the display (2)Daniel Lezcano
Remove the specific cases in the mainloop and encapsulate the display functions. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-15Encapsulate the display (1)Daniel Lezcano
Remove some corner cases for the footer display we have the same display feature for all the pm blocks. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-15make the functions name consistentDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-15add sensors displayDaniel Lezcano
Add the sensor display. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-15assign a pad for each windowDaniel Lezcano
Create a pad for each pm blocks, so we can use the same code to scroll the values on the display. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-15Rewrite the sensor code with the treeDaniel Lezcano
Use the tree to build a sensor tree and make the code consistent with the other pm blocks. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-15Rewrite the regulator code based on the treeDaniel Lezcano
Make the code consistent with the clocks and use the tree to build the regulators. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-15make all pm block own their display dataDaniel Lezcano
That allows to keep track of the different selections from the different windows. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-15Add some helper functions in a specific utils fileDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-08remove unused 'hrow' and 'selected' parametersDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-08rewrite the powerdebug clock codeDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-08document the tree codeDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-08compute the number of children for a specific nodeDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-08add a tree function to return a list of elementsDaniel Lezcano
This patch provides a function returning all the node of the tree matching the substring passed a parameter. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-08make the mainloop immune against the signalsDaniel Lezcano
... needed at least for gdb ... Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-08add a function to browse at reverse order the treeDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-08remove unused 'verbose' optionDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-08remove unused code and parameter for clock dump functionDaniel Lezcano
the verbose option is unused. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-08remove unused parameter 'options->dump'Daniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-08remove unused parameterDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-08use 'find' tree functionDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-08add 'find' function for the treeDaniel Lezcano
That will be useful to search for a specific node name. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-08Remove old clock tree dump codeDaniel Lezcano
It is replaced by the tree code. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-08use the tree code to dump the clocksDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>