summaryrefslogtreecommitdiffstats
path: root/lib/bb/ui
AgeCommit message (Collapse)Author
2011-06-09bitbake/event/ast: Add RecipePreFinalise eventRichard Purdie
One of the implications is we need to register the event handlers before executing the anonymous python functions. I can't find any issue with making that change in any existing metadata use cases. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-08knotty: If any error messages are seen, set our exit code accordinglyRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-08bitbake/hob: fix cancel buttonJoshua Lock
An accidental logic inversion (aka thinko) had the cancel button only cancel a build when the user didn't confirm the cancellation (i.e. clicked no)... (From Poky rev: ff3e326269d27662c830b04e05b571d257b89346) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-08bitbake/goggle: closing the progress dialog kills the UIJoshua Lock
It's unlikely that someone wants to close the progress dialog yet leave the UI (and BitBake process) running, so hook up the progress dialogs delete-event to exit gtk. (From Poky rev: c9bb30b232396bbdd3c97c1059e972d6a4abf637) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-08bitbake/depexp: closing progress dialog kills guiJoshua Lock
It seems safe to assume a user hitting the close button on the dialog wants to kill the whole UI. (From Poky rev: e21150f2b18ff4ac85e64ed8814f0268007830c0) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-08bitbake/hob: only show one progress dialog when changing machineJoshua Lock
Remove a spurious signal emission which resulted in two progress dialogs being shown after changing the machine. (From Poky rev: 7738e86e8b4881056bd44d0f767d17b36159a7bb) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-08hob/crumbs/hobeventhandler: Remove server specific implementation details ↵Richard Purdie
missed in the precious cleanup Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-08xmlrpc/event: Add ability to send pickled events to UI if requestedRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-08bitbake/server/process: Move implementation knowledge of event queue into ↵Richard Purdie
the server Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-07cache: Introduce new param caches_array into Cache impl.Liping Ke
When using hob ui interface, we need extra cache fields. We will save ui required extra cache fields into a separate cache file. This patch introduce this caches_array parameter. It will be used in the extra cache implementation (following patch). Caches_array at least contains CoreRecipeInfo. If users need extra cache fields support, such as 'hob', caches_array will contain more relevant elements such as HobRecipeInfo. Signed-off-by: Liping Ke <liping.ke@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-05-27uievent: fix queueing of events for xmlrpc before UI has loadedJoshua Lock
The change to Queue up events before the UI is spawned broke the xmlrpc server because the uievent implementation of BBUIEventQueue expects pickled strings for its queue_event() method. This is because the RPC exposed event.send() method must accept pickled strings, but for xmlrpc event.send() is just mapped to queue_event(). Work around this by adding a send_event method which unpickles strings and hands them off to queue_event() which can then be used for the remapping. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2011-05-16bitbake/ui: Fix Gtk+ GUI's after recent cache changesJoshua Lock
Signed-off-by: Joshua Lock <josh@linux.intel.com>
2011-05-06bitbake/cache.py: Ensure skipped recipes make it into the cache to avoid ↵Richard Purdie
reparsing (From Poky rev: 001a555c2f755d4f8a69b113656d9307ca7ee597) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-03-07hob: adjust for master's eventHandler APIChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-03-07goggle: exit quietly on ^CChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-03-03bitbake/progress: make progress dialog modal for parent windowJoshua Lock
(From Poky rev: f258cedfe8432d61eebd21a239381e9510be7109) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-03-03Add new UI hob, a prototype Gtk+ GUI for creating imagesJoshua Lock
Hob is a first stab at implementing an interactive GUI for BitBake. (From Poky rev: 6dbceb0be9a1b8d7d5124b4fbd74f18609bc6146) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-03-03bitbake/progress: add method to pulse the progress barJoshua Lock
When we're running a long operation with indeterminate duration it's useful to use the gtk.ProgressBar's pulse method to show that something is happening but we don't know how long it will take. (From Poky rev: fb62c54e13e875dd81e0b5220c54a7753b4d5fa2) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-03-03bitbake/crumbs: update documentation headerJoshua Lock
(From Poky rev: 7f8aa691c52547ee5f1272a7931ca9cccd1a120a) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-03-03introduce crumbs.TaskListModel a gtk.ListStore subclassJoshua Lock
Provide a gtk.ListStore subclass which includes a function, populate(), which takes as input the data emitted by bb.event.TargetsTreeGenerated and fills the ListStore model appropriately. Furthermore convenience functions are provided by which the caller can get gtk.TreeModel subclasses which provide filtered views of the data. (From Poky rev: 9b43eaff99615d8bd58b2f3a54c280e5470d3a9c) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-16uihelper: import bb.build, kill commented linesChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-01-12bitbake/knotty.py: Ensure task note messages are only surpressed at default ↵Richard Purdie
log levels (From Poky rev: 3f08b7f1eadc8d181c76339d14c7abb4f49cad57) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-01-10bitbake/knotty.py: Don't show log messages of NOTE and below for task processesRichard Purdie
This cleans up the knotty console messages to be a lot quieter and cleaning, in keeping with the expectations of most users. (From Poky rev: b22e345e05efcc3f66278af8f09fb083afe32b68) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2010-12-29Add support for 'noexec' tasksRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-12-21depexp: add sorting of all package listsBob Foerster
Without sorting, it's very difficult to find the information you're looking for. Now, the lists are all sorted alphabetically for easy viewing. Signed-off-by: Bob Foerster <robert@erafx.com>
2010-12-17logger usage cleanupChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-17Revert "build: stop injecting os/bb into __builtins__"Chris Larson
Temporary revert, will resurrect. This reverts commit 566657c13de3fefb5043b71de953fb805799da95.
2010-12-17Fix logging level names for post-server-ui-splitChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-17build: stop injecting os/bb into __builtins__Chris Larson
For one, we should be able to avoid this via _context in bb.utils. For two, __builtins__ only has to exist for CPython, so this causes problems running bitbake under other python implementations (though we could change to doing setattr()s against the __builtin__ module, let's avoid this instead). Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-17Resurrect alternative UIsBob Foerster
The various alternative UIs have been updated to once again be functional with the latest bitbake internals. Each of the UIs still have much room for functional improvement. In particular, they have been updated to: - interact with the new process based server - handle the current set of events and notifications fired from the server and its associated subsystems Signed-off-by: Bob Foerster <robert@erafx.com>
2010-12-16Show the user progress when loading the cacheBob Foerster
Signed-off-by: Bob Foerster <robert@erafx.com> Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-16Run the server and UI in separate processesBob Foerster
This uses the python multiprocessing module, both to spawn the server process and for communication between the processes. Signed-off-by: Bob Foerster <robert@erafx.com> Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-15knotty: exit with 1 if we see a critical log messageChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-13Move the runq task start/failed messages to the UIChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-10Rename command events, adjust compareRevisionsChris Larson
- Moved the logic for comparing revisions from cooker into command - Removed 'Cooker' from the event names - Renamed the 'ExitCode' event into CommandExit, and changed CommandFailed to be a subclass of CommandExit Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-10build: send logging messages to the log file for python functionsChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-09Rename the ui 'init' method to 'main'Chris Larson
As these may run the UI in a blocking fashion and then return the exit code, 'init' was an inappropriate name, and 'main' is more appropriate. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-08bitbake/goggle: interaction tweaksJoshua Lock
Set the goggle window to a more sane default size (640x480) and hook up the close button. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-12-08bitbake/depexp: Factor ProgressBar into a separate class in crumbs/Joshua Lock
ProgressBar will be useful in other UI elements so make it it's own class. Make ProgressBar a subclass of gtk.Dialog, rather than gtk.Window, so that we can suggest the window manager parent the ProgressBar to the widget passed at as parent. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-12-08bitbake/crumbs: add optional pbar parameter to RunningBuild.handle_event()Joshua Lock
Defaults to None, but if set will pass the ParseProgress sofar and total to pbar's update() method. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-12-08bitbake/goggle: add a ProgressBar for parse progressJoshua Lock
Construct a ProgressBar and pass it to the RunningBuild.handle_event() so that goggle users are notified of metadata parsing progress. UI's with status make users less nervous Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-12-08bitbake/goggle: automatically show most recently added messageJoshua Lock
It seems likely that the user would want to view the most recently emitted messages so this patch sets the message dislay treeview to scroll to any newly added rows. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-12-08bitbake/crumbs: fix the event name determinationJoshua Lock
Due to some recent change *somewhere* we need to explicitly look at the name attribute on the instances class, rather than the name attribute of the instance. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-12-08bitbake/crumbs: do the test for ignored messages soonerJoshua Lock
Move the test for ignored messages to the start of the message handling loop to avoid doing work for messages which are only going to be ignored. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-12-08bitbake/crumbs: Fix crumbs UI for bitbake event class name changesJoshua Lock
Some of the events we where trying to look for have had their class names changed, fix these references. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-12-06knotty: use enumerate for task waitingChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-06knotty: shift non-interactive progress into a classChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-11-30cooker: no cached in progressbar and add ETAChris Larson
Rather than updating the progress bar based on the recipe being processed (whether cached or parsed), consider only parsed recipes. This reduces the instability in progress rate introduced by the cached entries, and allows the ETA to be resurrected and be a bit more useful. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-11-23knotty: drop the ETA from the progressbar for nowChris Larson
Currently, the progress bar is an indication of the processing of our recipes, which includes loading the cache file, then for each recipe, either adding the existing cached information to the CacheData or parsing the recipe from disk. These tasks clearly take different amounts of time, so the ETA is unreliable today. We'll resurrect this functionality after we revamp the progress handling, fully incorporating the load of the cache file. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-11-21Split up the ParseProgress eventChris Larson
We now have ParseStarted, ParseProgress, and ParseCompleted. I think this clarifies matters, and avoids sending all our statistics with every parse progress event. Signed-off-by: Chris Larson <chris_larson@mentor.com>