| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
In functions:
ld_canvas_diagram_to_widget_coords()
ld_canvas_widget_to_diagram_coords()
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
| |
My bad; this name is much more appropriate.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Also make the code reference properties properly.
|
|
|
|
|
| |
It now paints itself white and draws a simple grid.
Also an LdDocument can be assigned to it.
|
|
|
|
| |
It was just too long to type and read. My mistake.
|
|
Also a little change in CMakeLists.txt.
The next commit is going to change the object prefix.
|