| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
The lucky ones are: capacitor, resistor and diode.
More symbols can be expected later, when more cairo
functions are exported to Lua and relevant standards
become accessible to me.
|
|
|
|
| |
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.
|
|
|
|
| |
Some comments in the source code have been updated.
|
|
|
|
| |
Created LdLuaSymbol, which subclasses LdSymbol.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
FindGTK2.cmake required a change for successful program compilation.
It seems that gdk_pixbuf has been put as a separate library.
The new tools also generate a slightly different version
of marshallers, so I've added it to the tree.
|
|
|
|
|
| |
Originally, there were three object classes defined in this file.
It would later become rather chaotic if left that way.
|
| |
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
Added two empty sample categories with corresponding icons.
The categories are now being loaded into the toolbar
in the main program window.
|