Added icons for the new tools, also changed some of the logic so it is possible to show the number of the next "label" in the tool button.

This commit is contained in:
RKrom 2014-05-28 09:35:08 +02:00
commit b37ed3562d
32 changed files with 187 additions and 65 deletions

View file

@ -996,6 +996,12 @@ namespace Greenshot {
/// refreshes all editor controls depending on selected elements and their fields
/// </summary>
private void refreshEditorControls() {
int stepLabels = surface.CountStepLabels(null);
if (stepLabels <= 20) {
this.btnStepLabel.Image = ((System.Drawing.Image)(resources.GetObject(string.Format("btnStepLabel{0:00}.Image", stepLabels))));
} else {
this.btnStepLabel.Image = ((System.Drawing.Image)(resources.GetObject("btnStepLabel20+.Image")));
}
FieldAggregator props = surface.FieldAggregator;
// if a confirmable element is selected, we must disable most of the controls
// since we demand confirmation or cancel for confirmable element