Jump to content

Get filename on OnSave


Recommended Posts

Hi,

 

On a FileType plugin, is there a way to access (is any) the filename of the stream on the OnSave callback ?

 

I am writing an XPM plugin, and it will help is I can put this name into the file instead of hard coded value - not very usefull for embedded XPM into a source file.

 

Regards

 

Link to comment
Share on other sites

You know we have an XPM filetype plugin?  XPM Filetype

 

You know - you posted there already :)

Link to comment
Share on other sites

Is filetype plugin can open a dialog box to specify some params ? (I think the answer is yes because the PPM plugin do it, but to be sure)

 

One could be a string value to replace the "pixmap" string a one entered by the user.

Even if I am not sure it was user friendly (better or worse than using external text editor to do it...)

Link to comment
Share on other sites

You could start from a property based filetype template.

Because XPM can be included in a source file it makes sense to allow the user to change the symbol name.

 

But you can not preinitialize the edit field with the document title. What would make sense.

midoras signature.gif

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...