summaryrefslogtreecommitdiff
path: root/src/ld-canvas.h
Commit message (Collapse)AuthorAgeFilesLines
* LdCanvas maintenance.Přemysl Janouch2010-12-181-2/+2
| | | | | | | | * 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.
* Rename LdDocument* to LdDiagram*.Přemysl Janouch2010-12-161-3/+3
| | | | My bad; this name is much more appropriate.
* Implement more of LdCanvas.Přemysl Janouch2010-12-101-4/+15
| | | | | | | | | | 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.
* Add a "library" property to LdCanvas.Přemysl Janouch2010-11-191-0/+3
| | | | Also make the code reference properties properly.
* Implemented a skeleton of LdCanvas.Přemysl Janouch2010-09-201-0/+10
| | | | | It now paints itself white and draws a simple grid. Also an LdDocument can be assigned to it.
* Changed the object prefix from "logdiag" to "ld".Přemysl Janouch2010-09-191-23/+23
| | | | It was just too long to type and read. My mistake.
* Renamed source files.Přemysl Janouch2010-09-191-0/+59
Also a little change in CMakeLists.txt. The next commit is going to change the object prefix.