aboutsummaryrefslogtreecommitdiff
path: root/src/ld-canvas.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix comments.Přemysl Janouch2011-01-091-1/+1
|
* Make adding symbols to the diagram possible.Přemysl Janouch2011-01-041-0/+5
| | | | | | 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.
* Split in-out parameters into separate in and out.Přemysl Janouch2011-01-031-2/+2
| | | | | | In functions: ld_canvas_diagram_to_widget_coords() ld_canvas_widget_to_diagram_coords()
* 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.