Forgot to commit files.

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2328 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-11-28 20:01:21 +00:00
parent 2a26be0a37
commit f6b944048b
2 changed files with 14 additions and 1 deletions

View file

@ -1119,10 +1119,13 @@ namespace Greenshot {
CaptureHelper.CaptureFile(conf.OutputFileAsFullpath, DestinationHelper.GetDestination(EditorDestination.DESIGNATION));
}
break;
default:
case LeftClickActions.CONTEXT_MENU:
MethodInfo oMethodInfo = typeof(NotifyIcon).GetMethod("ShowContextMenu", BindingFlags.Instance | BindingFlags.NonPublic);
oMethodInfo.Invoke(notifyIcon, null);
break;
default:
// Do nothing
break;
}
}
}

View file

@ -43,6 +43,13 @@ namespace GreenshotPlugin.Core {
RELEASE
}
public enum LeftClickActions {
NOTHING,
OPEN_LAST_IN_EXPLORER,
OPEN_LAST_IN_EDITOR,
CONTEXT_MENU
}
/// <summary>
/// Description of CoreConfiguration.
/// </summary>
@ -206,6 +213,9 @@ namespace GreenshotPlugin.Core {
[IniProperty("WindowCornerCutShape", Description = "The cutshape which is used to remove the window corners, is mirrorred for all corners", DefaultValue = "5,3,2,1,1")]
public List<int> WindowCornerCutShape;
[IniProperty("LeftClickAction", Description = "Specify what action is made if the tray icon is left clicked", DefaultValue = "CONTEXT_MENU")]
public LeftClickActions LeftClickAction;
// Specifies what THIS build is
public BuildStates BuildState = BuildStates.UNSTABLE;