save svg file automatically with out click on save button..!!

Asked by pareshchaudhary

Hi Team,

I have add the one tool button in toolbar but before click on that button i want to save svg file with out click on _Save option OR ctrl+s key means what inkscape team call when we click on _Save button that thing i want to do on my customize button

My code like
case SP_VERB_CONTEXT_MEASURE:
            g_print("clicked \n");
            Here i want to call -->> sp_file_save(*parent, NULL, NULL); ///Is there possible or any another way
            /* Here code for my custom operation that depend on svg file */
           break;
 new ContextVerb(SP_VERB_CONTEXT_MEASURE, "ToolMeasure", N_("Measure"),
                    N_("Measurement tool"), INKSCAPE_ICON_MEASURE),

Thanks

Question information

Language:
English Edit question
Status:
Expired
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
su_v (suv-lp) said :
#1

I would recommend to ask such coding-related questions on the developer mailing list (as you already have before): the chances of getting help and knowledgeable advice is much higher there (since most active developers are subscribed there, and probably only few - if any at all - visit the general support section here at Launchpad on a regular basis).

It might also help with getting more in-depth answers by Inkscape developers if you could share on the mailing list some details about the (private ?) project you are working on, e.g. with a short summary (what is the goal, what tools do you plan to implement, etc.).

<off-topic>
I'm not a developer, but based on the code snippet you provide: are you really reusing/overwriting the measure tool context code (SP_VERB_CONTEXT_MEASURE) without bothering to rename it?
</off-topic>

Revision history for this message
pareshchaudhary (chaudharyparesh1986) said :
#2

as per my think i want to do operation when someone click on my custom toolbutton that i added . for that i used
new ContextVerb(SP_VERB_CONTEXT_MEASURE, "ToolMeasure", N_("Measure"),
                    N_("Measurement tool"), INKSCAPE_ICON_MEASURE),
and

case SP_VERB_CONTEXT_MEASURE:
        Now here i want to store svg file before my operation;

i do not want to rename ... Just do save operation like _Save button in my Case statement,and that execute when someone click on my button

Any idea ?

Revision history for this message
Launchpad Janitor (janitor) said :
#3

This question was expired because it remained in the 'Open' state without activity for the last 15 days.