midora Posted January 3, 2012 Share Posted January 3, 2012 I created a filetype plugin for .xcf, .xcfgz, and .xcfbz2. Load and save works fine. The issue is that I don't know how to allow the user to select (on save) one of the three file extensions (means the type of compression). Is the only solution to implement three different filetype classes in the plugin? Any other proposal? Quote Link to comment Share on other sites More sharing options...
pyrochild Posted January 3, 2012 Share Posted January 3, 2012 If they are being saved differently, then yes you should create separate classes for each type. Quote ambigram signature by Kemaru [i write plugins and stuff] If you like a post, upvote it! Link to comment Share on other sites More sharing options...
Rick Brewster Posted January 4, 2012 Share Posted January 4, 2012 The default extension is simply the first one you provide. If the user wants to use a different extension, they can type it in the Save dialog. This is how the JPEG handler works, since it needs to support .jpg, .jpe, .jpeg. Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
midora Posted January 4, 2012 Author Share Posted January 4, 2012 If they are being saved differently, then yes you should create separate classes for each type. I guess you are right. In the moment this is the best way to do it for the user. OK, I derived the packed variants from the standard one. And there are three entries in the file selector. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.