| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Make existing code emit this signal.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Store all colors in LdCanvasPrivate and initialize them upon
object creation. This creates a base for color themes.
Make attempts to try adding an object that's not a part
of the document to the selection issue a warning.
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
draw_symbol() had been doing too much.
|
|
|
|
|
|
| |
In functions:
ld_canvas_diagram_to_widget_coords()
ld_canvas_widget_to_diagram_coords()
|
|
|
|
|
|
|
| |
* Set the working directory for glib-genmarshal correctly.
* Use one more path suffix when searching for glibconfig.h.
* Don't assume that gdk_screen_get_resolution() returns
a useful value.
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
| |
This way when the user clicks outside the menu when it is open,
the menu will close itself first.
Keyboard input is however still not handled.
The symbol menu should be redesigned.
|
|
|
|
| |
My bad; this name is much more appropriate.
|
|
|
|
|
|
|
|
|
| |
* Add missing asserts to exported functions.
* Unify formatting.
* Fix the gtk-doc comment for ld_symbol_category_set_human_name().
* Make ld_library_load() reflect it's declaration.
* Remove an unused variable in ld_library_load_cb().
* Change all char's to gchar's.
|
|
|
|
|
|
|
| |
* Now diagrams can be created, loaded and saved.
* Define descriptions and accelerators for actions.
* Set irrelevant actions unsensitive.
* Also remove redundant comments for clarity.
|
|
|
|
|
|
| |
Also fix the "human-name" property in LdSymbolCategory
and correct gtk-doc comments for coordinates properties
accessors in LdDocumentObject.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
| |
Use a "real" prefix, as GTK+ does.
|
|
|
|
| |
Prototypes for these functions were wrong; fixed.
|
|
|
|
|
|
|
| |
The property is set to TRUE whenever the document changes.
The user may set it back to FALSE with ld_document_set_modified().
Also don't emit the "changed" signal when nothing has happened.
|
|
|
|
|
|
|
| |
Use a "real" prefix, as GTK+ does.
Also make the implementations of virtual functions
really static, as they prototypes were telling.
|
|
|
|
| |
So far it has no special powers. This should change in the future.
|
| |
|
|
|
|
|
|
|
|
| |
category.json contains a JSON object/table with localized
names of the category directory they are located within.
If a localized name cannot be found, the name of the category
is used as the human name, too.
|
|
|
|
|
|
|
| |
Just as LdSymbol has a human name for localization purposes,
LdSymbolCategory also needs to have this property.
Use the human name in tooltips.
|
|
|
|
| |
Just the minimal implementation so far.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
Now it contains coordinates of the top-left delimiting
point and computed dimensions (instead of coorinates of
both delimiting points).
|
|
|
|
| |
This required writing a special CMake find module.
|
|
|
|
| |
Mostly found by -Wextra.
|
|
|
|
| |
The document maintains a list of LdDocumentObject objects.
|
|
|
|
| |
Also make the code reference properties properly.
|
| |
|
|
|
|
|
|
| |
So far it does not add symbols to the document,
as there is momentarily no interface for neither
the document nor the canvas.
|
| |
|
| |
|
|
|
|
|
|
|
| |
Originally, ld_lua_load_file_to_category() was adding
registered symbols into a passed LdSymbolCategory object.
This interface has been rewritten to be more generic
by using callbacks to notify about new symbols.
|
|
|
|
| |
The human name and area now gets resolved.
|
| |
|
|
|
|
|
| |
To accomplish this, LdSymbolArea had to be converted
to a regular boxed type.
|
|
|
|
|
| |
Also move the actual storage of symbol properties to implementations
of the abstract LdSymbol class. All the properties are read only.
|
|
|
|
|
| |
This function tries to return a symbol that corresponds
to the given identifier.
|
|
|
|
|
|
|
|
|
| |
The previous method of containment, that is using GHashTable,
did not list children in any particular order.
Also names of children were duplicated. One copy has been
stored as a hash table index and another was present in the
child itself.
|
|
|
|
|
| |
There's a very strong bond between LdLua and LdLuaSymbol.
LdLuaSymbol is more like an interface to LdLua than a separate object.
|
| |
|
|
|
|
|
| |
Added GObject properties for object parameters.
Implemented methods for children management.
|
| |
|
|
|
|
|
|
|
|
|
| |
This step is needed, since the current design is quite chaotic
and it would not be possible to finish the application.
There's still a lot to be done.
After this step, it's time to implement the rest of LdLua.
|
|
|
|
|
|
|
| |
The "new" method requires to be passed a parameter that
makes it possible to call the appropriate render function.
Stub-plemented the "draw" method.
|