ANNOUNCE: GtkExtra-0.99.12



Hi! I'm pleased to announce a new release of GtkExtra featuring major
changes in GtkPlot, and including new widgets for 3d and polar plots. Here
is a summary of the changes:

 - New plot subclasses for 3D and polar plots: GtkPlot3d and GtkPlotPolar.

   GtkPlot3D has its own API, but GtkPlotPolar can be casted as a GtkPlot
 considering the equivalence x->r, y->angle.

 - GtkPlotData is a widget. The API is almost the same. You may have to
 cast the widget using data = GTK_PLOT_DATA(gtk_plot_data_new());

 - The other Data subclasses are Bar, Box, Flux, Surface and
 CSurface.

 - I added new arguments to the datasets (z, dz, a, da): z is obviously
for
 3d plots. However, it is used in GtkPlotBox to specify the size of the
boxes.
 "a" is used to determine the size of the symbols, and "da", the color.

 - The color of the symbols, when "da" is specified, is detemined using
the
 gradient. the gradient has (min, max) values, and corresponding colors.
The
 symbol's color is interpolated between these values using
hue/saturation/value
 depending on the gradient_mask.

 - GtkOrientation was replaced with GtkPlotOrientation
 (GTK_PLOT_AXIS_X/Y/Z)

 - the fields xticks and yticks were removed from gtkplot.

 - GtkPlotSymbol has a new field GtkPlotLine border and you set/get the
 attributes with gtk_plot_data_set/get_symbol

 - I removed the symbol type: GTK_PLOT_SYMBOL_BAR, because this is a new
 data subclass. I added TRIANGLE_LEFT/RIGHT and DOT.

 - After gtk_plot_canvas_paint, you have to use gtk_plot_canvas_refresh to
 refresh the pixmap in the window. This is because paint can be
 used to print or save plots in other formats, depending on the GtkPlotPC
 you are using (see below).

 - The drawing engine, called GtkPlotPC has been rewritten. Now
 it's a GtkObject, and you can derive subclasses as GtkPlotGdk and
 GtkPlotPS in our case (You can define your own if you want to use a
 different library to draw your plots!).

 How does it work:
 1) Instead of creating a GdkGC, you create either a GtkPlotGdk or
 GtkPlotPS.
 2) you do the following replacements:

 gdk_gc_set_foreground -> gtk_plot_pc_set_color
 gdk_gc_set_dash -> gtk_plot_pc_set_dash
 gdk_gc_set_line_attributes -> gtk_plot_pc_set_lineattr
 gdk_gc_draw_... -> gtk_plot_pc_draw_...

 The output will be either on a drawable or a file according to the
 GtkPlotPC you chose.

 All the redundant code for the PS output in gtkplotprint was eliminated!
 Elegant, isn't it?

 - I also added a new widget: gtktogglecombo, a gtkcombobox subclass (See
it
 in action in testgtksheet)

 - New demos are included.

 - BugFixes in GtkSheet






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]