Hi, all,
i recently upgraded my system from Ubuntu 11.04 to 10.10 (yes, backwards WAS an upgrade) and with that i downgraded by geany. So... despite popular current convention i'm building it from sources (just like in the good old days...).
And now i'm curious about its plugin API. An idea came to mind, but before i pursue it i'd need to know if the plugin layer could handle something like this: an integrated db browser.
i recently wrote a DB abstraction API supporting mysql/sqlite:
http://fossil.wanderinghorse.net/repos/cpdo/ http://code.google.com/p/v8-juice/wiki/JSPDO (javascript bindings for Google v8 JS engine)
and i think this might be a useful addition in the form of a plugin.
On Tue, 28 Jun 2011 22:30:35 +0200 Stephan Beal sgbeal@googlemail.com wrote:
And now i'm curious about its plugin API. An idea came to mind, but before i pursue it i'd need to know if the plugin layer could handle something like this: an integrated db browser.
Well, not sure whether its useful for everybody but I think it might is useful for a bunch of people. Beside of the database related stuff I don't see any major issue or things missing in Geany-API or on GTK/GLIB side. But to be honest, didn't thought about too much.
I could imagine a plugin like this could be useful, so +1 from my end if you like to start some. ;)
Cheers, Frank
On Tue, Jun 28, 2011 at 11:23 PM, Frank Lanitz frank@frank.uvena.de wrote:
I could imagine a plugin like this could be useful, so +1 from my end if you like to start some. ;)
Could you recommend a good starting point (code) for a plugin, e.g. is there a dummy/skeleton plugin somewhere?
i have absolutely no experience with GTK, and 99.999% of my code the past 10 years or so has been library-level with no UI, but the past months i've been considering GTK because the UIs i did were Qt and i got really sick of having to fix them every time a new .x release for qt was released. gtk-based apps, OTOH, seem to "stay runnable" a lot longer that qt-based code.
On Tue, 28 Jun 2011 23:38:21 +0200 Stephan Beal sgbeal@googlemail.com wrote:
On Tue, Jun 28, 2011 at 11:23 PM, Frank Lanitz frank@frank.uvena.de wrote:
I could imagine a plugin like this could be useful, so +1 from my end if you like to start some. ;)
Could you recommend a good starting point (code) for a plugin, e.g. is there a dummy/skeleton plugin somewhere?
i have absolutely no experience with GTK, and 99.999% of my code the past 10 years or so has been library-level with no UI, but the past months i've been considering GTK because the UIs i did were Qt and i got really sick of having to fix them every time a new .x release for qt was released. gtk-based apps, OTOH, seem to "stay runnable" a lot longer that qt-based code.
A very start could be http://www.geany.org/manual/reference/howto.html Also you could browse through Geany's common plugin project repository. http://git.geany.org/geany-plugins/tree/geany-plugins
Hard to really give you a plugin you should take as an example, as I'm not 100% knowing your plans how plugin shall be look like ;) (OK, there is the demoplugin inside Geany's sources inside plugins-folder you could use as some kind of a dummy)
Cheers, Frank
On Tue, Jun 28, 2011 at 11:44 PM, Frank Lanitz frank@frank.uvena.de wrote:
A very start could be http://www.geany.org/manual/reference/howto.html Also you could browse through Geany's common plugin project repository. http://git.geany.org/geany-plugins/tree/geany-plugins
Great, thanks :).
Hard to really give you a plugin you should take as an example, as I'm not 100% knowing your plans how plugin shall be look like ;)
Me, neither ;).
(OK, there is the demoplugin inside Geany's sources inside plugins-folder you could use as some kind of a dummy)
Thanks again :).
i can't promise i'll do this, but i've been looking for an excuse to write a GTK-based GUI app, but didn't really have an app in mind. This would give me a good starting point.
On 06/28/11 13:30, Stephan Beal wrote:
And now i'm curious about its plugin API. An idea came to mind, but before i pursue it i'd need to know if the plugin layer could handle something like this: an integrated db browser.
This thread might be (slightly) interesting and/or relevant to you: http://www.mail-archive.com/geany-devel@uvena.de/msg03181.html
Cheers, Matthew Brush
On Wed, Jun 29, 2011 at 1:01 AM, Matthew Brush mbrush@codebrainz.ca wrote:
This thread might be (slightly) interesting and/or relevant to you: http://www.mail-archive.com/**geany-devel@uvena.de/msg03181.**htmlhttp://www.mail-archive.com/geany-devel@uvena.de/msg03181.html
Again, thanks. It sounds like the poster made some good progress (but i have no idea what Vala is). But he posted no link and the thread died out in February. But the reference to gnome-db is interesting (i wasn't aware of it, or i might not have rolled my own ;).
i've read through the hello-world example and it seems simple enough to do. The learning curve for me will be in gtk, i think.
On 06/28/11 16:10, Stephan Beal wrote:
Again, thanks. It sounds like the poster made some good progress (but i have no idea what Vala is). But he posted no link and the thread died out in February. But the reference to gnome-db is interesting (i wasn't aware of it, or i might not have rolled my own ;).
Vala is a language similar to C# that compiles down to pure C/GLib. It's quite popular in the GTK+/Glib community and it's substantially easier to learn if you don't know C and pretty awesome even if you do know C. You can see an example of a Geany plugin using Vala in my Geany-MultiTerm repository[1]. The .vala files are code I wrote, and the .c/.h files are the compiled C files that you can compile with gcc or whatever you use.
[1] https://github.com/codebrainz/geany-multiterm/tree/master/src
Cheers, Matthew Brush
On Wed, Jun 29, 2011 at 1:47 AM, Matthew Brush mbrush@codebrainz.ca wrote:
Vala is a language similar to C# that compiles down to pure C/GLib. It's quite popular in the GTK+/Glib community and it's substantially easier to learn if you don't know C and pretty awesome even if you do know C. You can see an example of a Geany plugin using Vala in my Geany-MultiTerm repository[1]. The .vala files are code I wrote, and the .c/.h files are the compiled C files that you can compile with gcc or whatever you use.
i'm quite a non-fan of C#, but i write boatloads of C, and a script language which compiles down to C sounds very interesting. i'll take a look :).