Skip to content

Commit

Permalink
Schöne Icons für KontoAuswahlDialog (#111)
Browse files Browse the repository at this point in the history
* Schöne Icons für KontoAuswahlDialog

Habe auch "keine Konten" in "alle Konten" umbenannt. Man wählt ja mit dem Button alle Konten aus.

* Andere Icons und Großschrift
  • Loading branch information
JohannMaierhofer authored Jan 22, 2024
1 parent 3b891c4 commit 2051de0
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public void handleAction(Object context)
{
throw new OperationCanceledException();
}
}, null, false, "stop-circle.png");
}, null, false, "process-stop.png");
group.addButtonArea(buttons);
getShell()
.setMinimumSize(getShell().computeSize(WINDOW_WIDTH, SWT.DEFAULT));
Expand Down
12 changes: 6 additions & 6 deletions src/de/jost_net/JVerein/gui/dialogs/KontoAuswahlDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public void handleAction(Object context)
konten.paint(parent);

ButtonArea b = new ButtonArea();
b.addButton(i18n.tr("übernehmen"), new Action()
b.addButton(i18n.tr("Übernehmen"), new Action()
{

@Override
Expand All @@ -134,10 +134,10 @@ public void handleAction(Object context)
choosen = (Konto) o;
close();
}
});
}, null, false, "ok.png");
if (keinkonto)
{
b.addButton("kein Konto", new Action()
b.addButton("Alle Konten", new Action()
{

@Override
Expand All @@ -146,17 +146,17 @@ public void handleAction(Object context)
choosen = null;
close();
}
});
}, null, false, "list.png");
}
b.addButton("abbrechen", new Action()
b.addButton("Abbrechen", new Action()
{

@Override
public void handleAction(Object context)
{
throw new OperationCanceledException();
}
});
}, null, false, "process-stop.png");
b.paint(parent);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ protected void paint(Composite parent) throws Exception
group.addLabelPair("", getStatus());

ButtonArea buttons = new ButtonArea();
buttons.addButton("übernehmen", new Action()
buttons.addButton("Übernehmen", new Action()
{

@Override
Expand All @@ -101,8 +101,8 @@ public void handleAction(Object context)
ueberschr = (Boolean) getUeberschreiben().getValue();
close();
}
}, null, true, "check.png");
buttons.addButton("entfernen", new Action()
}, null, true, "ok.png");
buttons.addButton("Entfernen", new Action()
{

@Override
Expand All @@ -114,7 +114,7 @@ public void handleAction(Object context)
close();
}
}, null, false, "undo.png");
buttons.addButton("abbrechen", new Action()
buttons.addButton("Abbrechen", new Action()
{

@Override
Expand All @@ -123,7 +123,7 @@ public void handleAction(Object context)
abort = true;
close();
}
}, null, false, "stop-circle.png");
}, null, false, "process-stop.png");
getShell().addListener(SWT.Close,new Listener()
{
public void handleEvent(Event event)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public void handleAction(Object context)

ButtonArea b = new ButtonArea();

b.addButton("übernehmen", new Action()
b.addButton("Übernehmen", new Action()
{

@Override
Expand All @@ -169,9 +169,9 @@ public void handleAction(Object context)
}
return;
}
}, null, false, "check.png");
}, null, false, "ok.png");

b.addButton("entfernen", new Action()
b.addButton("Entfernen", new Action()
{

@Override
Expand All @@ -185,7 +185,7 @@ public void handleAction(Object context)
b.addButton("Hilfe", new DokumentationAction(),
DokumentationUtil.MITGLIEDSKONTO_AUSWAHL, false, "question-circle.png");

b.addButton("abbrechen", new Action()
b.addButton("Abbrechen", new Action()
{

@Override
Expand All @@ -194,7 +194,7 @@ public void handleAction(Object context)
abort = true;
close();
}
}, null, false, "stop-circle.png");
}, null, false, "process-stop.png");

getShell().addListener(SWT.Close,new Listener()
{
Expand Down
10 changes: 5 additions & 5 deletions src/de/jost_net/JVerein/gui/dialogs/ProjektAuswahlDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ protected void paint(Composite parent) throws Exception
group.addLabelPair("", getStatus());

ButtonArea buttons = new ButtonArea();
buttons.addButton("übernehmen", new Action()
buttons.addButton("Übernehmen", new Action()
{
@Override
public void handleAction(Object context)
Expand All @@ -90,8 +90,8 @@ public void handleAction(Object context)
ueberschr = (boolean) getUeberschreiben().getValue();
close();
}
}, null, false, "check.png");
buttons.addButton("entfernen", new Action()
}, null, false, "ok.png");
buttons.addButton("Entfernen", new Action()
{
@Override
public void handleAction(Object context)
Expand All @@ -100,7 +100,7 @@ public void handleAction(Object context)
close();
}
}, null, false, "undo.png");
buttons.addButton("abbrechen", new Action()
buttons.addButton("Abbrechen", new Action()
{

@Override
Expand All @@ -109,7 +109,7 @@ public void handleAction(Object context)
abort = true;
close();
}
}, null, false, "stop-circle.png");
}, null, false, "process-stop.png");
getShell().addListener(SWT.Close,new Listener()
{
public void handleEvent(Event event)
Expand Down

0 comments on commit 2051de0

Please sign in to comment.