Refactoring some more classes, making easier code in plug-ins possible. Needed this for better testing some problems with the CreateShadow function.

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2094 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-09-25 11:36:52 +00:00
parent 017b874de3
commit 9488200886
20 changed files with 128 additions and 190 deletions

View file

@ -36,11 +36,9 @@ namespace ExternalCommand {
public class ExternalCommandDestination : AbstractDestination {
private static log4net.ILog LOG = log4net.LogManager.GetLogger(typeof(ExternalCommandDestination));
private static ExternalCommandConfiguration config = IniConfig.GetIniSection<ExternalCommandConfiguration>();
private IGreenshotHost host;
private string presetCommand;
public ExternalCommandDestination(IGreenshotHost host, string commando) {
this.host = host;
public ExternalCommandDestination(string commando) {
this.presetCommand = commando;
}
@ -79,7 +77,7 @@ namespace ExternalCommand {
string fullPath = captureDetails.Filename;
if (fullPath == null) {
using (Image image = surface.GetImageForExport()) {
fullPath = host.SaveNamedTmpFile(image, captureDetails, outputSettings);
fullPath = ImageOutput.SaveNamedTmpFile(image, captureDetails, outputSettings);
}
}