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)); CaptureHelper.CaptureFile(conf.OutputFileAsFullpath, DestinationHelper.GetDestination(EditorDestination.DESIGNATION));
} }
break; break;
default: case LeftClickActions.CONTEXT_MENU:
MethodInfo oMethodInfo = typeof(NotifyIcon).GetMethod("ShowContextMenu", BindingFlags.Instance | BindingFlags.NonPublic); MethodInfo oMethodInfo = typeof(NotifyIcon).GetMethod("ShowContextMenu", BindingFlags.Instance | BindingFlags.NonPublic);
oMethodInfo.Invoke(notifyIcon, null); oMethodInfo.Invoke(notifyIcon, null);
break; break;
default:
// Do nothing
break;
} }
} }
} }

View file

@ -42,6 +42,13 @@ namespace GreenshotPlugin.Core {
RELEASE_CANDIDATE, RELEASE_CANDIDATE,
RELEASE RELEASE
} }
public enum LeftClickActions {
NOTHING,
OPEN_LAST_IN_EXPLORER,
OPEN_LAST_IN_EDITOR,
CONTEXT_MENU
}
/// <summary> /// <summary>
/// Description of CoreConfiguration. /// Description of CoreConfiguration.
@ -205,6 +212,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")] [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; 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 // Specifies what THIS build is
public BuildStates BuildState = BuildStates.UNSTABLE; public BuildStates BuildState = BuildStates.UNSTABLE;