[no subject]
Looking at the API (the uncommitted glue version) i see this:
const char * (*add_source) (GbfProject *project,
const char *target_id,
const char *uri,
GError **error);
So basically, you need to tell the backend to which target you want to
add a new source and the source uri. Now since how you configure a
source differs between projects, there's a function in the backend for
this:
GtkWidget * (*configure_new_source) (GbfProject *project,
GError **error);
So far so good. Now for some questions :) :
Do you have any idea what should go in the configure_new_source dialog?
A target list where you select a target to which you want to add the
source? Do we want some sanity checks so you can't add a C file to a
"ui" target (xml only) for example?
When is a project "saved"? The Makefile.am needs to be updated first if
you want to build a project after adding a new file. Is it possible to
undo the add source action? (add a source first, don't save the project,
exit anjuta2).
What if a user wants to (implicitly) create a new target? Say the user
wants to create a test.c file and there's no test target yet? How does
that translate to a user action?
What happens when a user removes a source and there's no more sources in
the target left? Does the target get removed implicitly?
A lot of questions, but i'm trying to figure out what's needed to get it
all to work :)
Thanks,
Jeroen
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]