. Just as an exercise I have copied the Fill and Stroke .cpp and .h files and translated the entire dialog to under the name
. Logically this should mean that the entire dialog box shall now be replicated under the pseudonym of
" <verb verb-id=\"DialogFillStroke\" />\n "
This handles the display part of the task. Now what remains is linking the action and verb.
I added a enum value:
SP_VERB_DIALOG_RECOLOR_ARTWORK in verbs.h
and in
verbs.cpp I added:
new DialogVerb(SP_VERB_DIALOG_RECOLOR_ARTWORK, "DialogRecolorArtwork", N_("_Recolor Artwork..."),
N_("Description of Recolor Artwork..."), INKSCAPE_ICON("dialog-fill-and-stroke")),
This links the verb SP_VERB_DIALOG_RECOLOR_ARTWORK and DialogRecolorArtwork.
In the same file verbs.cpp, I added:
case SP_VERB_DIALOG_RECOLOR_ARTWORK:
dt->_dlg_mgr->showDialog("RecolorArtwork");
break;
in the function:
void DialogVerb::perform(SPAction *action, void *data)
which launches the appropriate dialog or rather it should. Sadly this is not the case ?
Can someone please help me point out the what am I missing out ?