This class implements the "Diagram" widget shown above.
Class for the diagram (upper part)
Class for the diagram (lower part)
The function "pvCairoTestDiagram()", which is also included there, was used in the above examples to paint the diagram. This is basically the same functionality as in pvbrowser's QDraw widgets.