/*
* Greenshot - a free and open source screenshot tool
* Copyright (C) 2007-2011 Thomas Braun, Jens Klingen, Robin Krom
*
* For more information see: http://getgreenshot.org/
* The Greenshot project is hosted on Sourceforge: http://sourceforge.net/projects/greenshot/
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 1 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
using System;
using System.Collections.Generic;
using GreenshotPlugin.Core;
namespace RunAtOutput {
///
/// Description of FlickrConfiguration.
///
[IniSection("RunAtOutput", Description="Greenshot TitRunAtOutputleFix Plugin configuration")]
public class RunAtOutputConfiguration : IniSection {
[IniProperty("Commands", Description="The commands that are available.")]
public List commands;
//[IniProperty("Matcher", Description="Match filenames or types.")]
//public Dictionary matchers;
[IniProperty("Commandline", Description="The commandline for the output command.")]
public Dictionary commandlines;
[IniProperty("Argument", Description="The arguments for the output command.")]
public Dictionary arguments;
[IniProperty("ActiveCommands", Description="The commands that are active.")]
public List active;
///
/// Supply values we can't put as defaults
///
/// The property to return a default for
/// object with the default value for the supplied property
public override object GetDefault(string property) {
switch(property) {
case "Commands":
List commandDefaults = new List();
commandDefaults.Add("Paint.NET");
return commandDefaults;
case "Commandline":
Dictionary commandlineDefaults = new Dictionary();
commandlineDefaults.Add("Paint.NET", @"C:\Programme\Paint.NET\PaintDotNet.exe");
return commandlineDefaults;
// case "Matcher":
// Dictionary matcherDefaults = new Dictionary();
// matcherDefaults.Add("Paint.NET", "*");
// return matcherDefaults;
case "ActiveCommands":
return new List();
case "Argument":
Dictionary argumentDefaults = new Dictionary();
argumentDefaults.Add("Paint.NET", "\"{0}\"");
return argumentDefaults;
}
return null;
}
}
}