Commit Graph

9 Commits

Author SHA1 Message Date
Přemysl Eric Janouch d3e5483c84 Make adding symbols to the diagram possible.
This required creating a simple framework for operations to LdCanvas.
It is probable that it's going to require some changes when other
operations are added. The basic idea behind it seems to be good, though.
2011-01-04 09:54:05 +01:00
Přemysl Eric Janouch 2cb570f894 Split in-out parameters into separate in and out.
In functions:
ld_canvas_diagram_to_widget_coords()
ld_canvas_widget_to_diagram_coords()
2011-01-03 05:57:22 +01:00
Přemysl Eric Janouch 9178fb8d81 LdCanvas maintenance.
* Rename ld_canvas_translate_*_coordinates() to ld_canvas_*_to_*_coords().
* Add missing parameter assertions to those functions.
* Rename local variables in draw_grid().
* Use gdk_cairo_rectangle() in expose-event handler.
* Update comments.
2010-12-18 15:34:34 +01:00
Přemysl Eric Janouch 86e73f86c2 Rename LdDocument* to LdDiagram*.
My bad; this name is much more appropriate.
2010-12-16 11:34:02 +01:00
Přemysl Eric Janouch 3419680f25 Implement more of LdCanvas.
1. Add methods for coordinate translation between cairo/GtkWidget
   coordinates and LdDocument coordinates.
2. Draw the grid correctly (also make it significantly faster).
3. Place the canvas into a GtkScrolledWindow and register
   the set_scroll_adjustments signal in the GtkWidget base class.
4. Allow scrolling inside of an area of 200 x 200 units (for now).
   In the future, it should be possible to go to infinity.
2010-12-10 22:36:41 +01:00
Přemysl Eric Janouch 7a0b280854 Add a "library" property to LdCanvas.
Also make the code reference properties properly.
2010-11-19 07:05:44 +01:00
Přemysl Eric Janouch efc3ad6f5c Implemented a skeleton of LdCanvas.
It now paints itself white and draws a simple grid.
Also an LdDocument can be assigned to it.
2010-09-20 05:29:41 +02:00
Přemysl Eric Janouch 354e54826f Changed the object prefix from "logdiag" to "ld".
It was just too long to type and read. My mistake.
2010-09-19 19:12:36 +02:00
Přemysl Eric Janouch 341f51eb41 Renamed source files.
Also a little change in CMakeLists.txt.

The next commit is going to change the object prefix.
2010-09-19 19:12:12 +02:00