Přemysl Eric Janouch
a56bfd6087
LdWindowMain cleanup.
...
* Restructure the initialization code.
* Move LdCanvas event mask setting to ld-canvas.c.
* Remove some redundant code.
* Use consistent naming.
* Update comments.
Practically no functional change.
2010-12-12 17:56:59 +01:00
Přemysl Eric Janouch
fdab244e2e
Rename local LdCanvas methods.
...
Use a "real" prefix, as GTK+ does.
2010-12-12 17:30:28 +01:00
Přemysl Eric Janouch
dea23f1204
Draw symbols from LdDocument in LdCanvas.
...
Just the minimal implementation so far.
2010-12-10 22:58:36 +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
147cf2977a
Initial LdDocument implementation.
...
The document maintains a list of LdDocumentObject objects.
2010-12-05 15:15:52 +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
b66704114e
Little improvements, overall cleanup.
2010-09-19 19:12:36 +02:00
Přemysl Eric Janouch
65bbe06267
Add marshaller files generated by glib-genmarshal.
2010-09-19 19:12:36 +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