Skip to content

Commit

Permalink
Add Icon for keybindings and findDuplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasgeiger committed Oct 27, 2015
1 parent eaf1b52 commit ee16876
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
2 changes: 2 additions & 0 deletions src/main/java/net/sf/jabref/gui/IconTheme.java
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ public enum JabRefIcon {
FILE_POWERPOINT("\uf2de"), /*css: file-powerpoint */
FILE_TEXT("\uf2d2"), /*css: file-document */
FILE_MULTIPLE("\uf2d9"), /*css: file-multiple */
KEY_BINDINGS("\uf3ad"), /*css: keyboard */
FIND_DUPLICATES("\uf233"), /*css: code-equal */

// STILL MISSING:
GROUP_REGULAR("\uF4E6", Color.RED);
Expand Down
16 changes: 10 additions & 6 deletions src/main/java/net/sf/jabref/gui/JabRefFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,8 @@ void addJToogleButton(JToggleButton button) {

private final AbstractAction copyKey = new GeneralAction(Actions.COPY_KEY, Localization.menuTitle("Copy BibTeX key"),
prefs.getKey(KeyBinds.COPY_BIB_TE_X_KEY));
private final AbstractAction copyCiteKey = new GeneralAction(Actions.COPY_CITE_KEY, Localization.menuTitle("Copy \\cite{BibTeX key}"),
private final AbstractAction copyCiteKey = new GeneralAction(Actions.COPY_CITE_KEY, Localization.menuTitle(
"Copy \\cite{BibTeX key}"),
prefs.getKey(KeyBinds.COPY_CITE_BIB_TE_X_KEY));
private final AbstractAction copyKeyAndTitle = new GeneralAction(Actions.COPY_KEY_AND_TITLE,
Localization.menuTitle("Copy BibTeX key and title"),
Expand Down Expand Up @@ -315,7 +316,8 @@ public void actionPerformed(ActionEvent e) {
prefs.getKey(KeyBinds.TOGGLE_GROUPS_INTERFACE),
IconTheme.JabRefIcon.TOGGLE_GROUPS.getIcon());
private final AbstractAction addToGroup = new GeneralAction(Actions.ADD_TO_GROUP, Localization.lang("Add to group"));
private final AbstractAction removeFromGroup = new GeneralAction(Actions.REMOVE_FROM_GROUP, Localization.lang("Remove from group"));
private final AbstractAction removeFromGroup = new GeneralAction(Actions.REMOVE_FROM_GROUP, Localization.lang(
"Remove from group"));
private final AbstractAction moveToGroup = new GeneralAction(Actions.MOVE_TO_GROUP, Localization.lang("Move to group"));


Expand Down Expand Up @@ -367,7 +369,7 @@ public void actionPerformed(ActionEvent e) {
Localization.lang("Open SPIRES entry"),
prefs.getKey(KeyBinds.OPEN_SPIRES_ENTRY));
private final AbstractAction dupliCheck = new GeneralAction(Actions.DUPLI_CHECK,
Localization.menuTitle("Find duplicates"));
Localization.menuTitle("Find duplicates"), IconTheme.JabRefIcon.FIND_DUPLICATES.getIcon());
private final AbstractAction plainTextImport = new GeneralAction(Actions.PLAIN_TEXT_IMPORT,
Localization.menuTitle("New entry from plain text"),
prefs.getKey(KeyBinds.NEW_FROM_PLAIN_TEXT));
Expand All @@ -376,8 +378,9 @@ public void actionPerformed(ActionEvent e) {
private final AbstractAction customExpAction = new CustomizeExportsAction();
private final AbstractAction customImpAction = new CustomizeImportsAction();
private final AbstractAction customFileTypesAction = ExternalFileTypeEditor.getAction(this);
AbstractAction exportToClipboard = new GeneralAction("exportToClipboard",
Localization.menuTitle("Export selected entries to clipboard"), IconTheme.JabRefIcon.EXPORT_TO_CLIPBOARD.getSmallIcon());
private final AbstractAction exportToClipboard = new GeneralAction("exportToClipboard",
Localization.menuTitle("Export selected entries to clipboard"),
IconTheme.JabRefIcon.EXPORT_TO_CLIPBOARD.getIcon());
private final AbstractAction autoSetFile = new GeneralAction(Actions.AUTO_SET_FILE,
Localization.lang("Synchronize file links"),
Globals.prefs.getKey(KeyBinds.SYNCHRONIZE_FILES));
Expand Down Expand Up @@ -430,7 +433,7 @@ public void actionPerformed(ActionEvent e) {
prefs.getKey(KeyBinds.RESOLVE_DUPLICATE_BIB_TE_X_KEYS));

private final AbstractAction sendAsEmail = new GeneralAction(Actions.SEND_AS_EMAIL,
Localization.lang("Send as email"), IconTheme.JabRefIcon.EMAIL.getSmallIcon());
Localization.lang("Send as email"), IconTheme.JabRefIcon.EMAIL.getIcon());

final MassSetFieldAction massSetField = new MassSetFieldAction(this);
final ManageKeywordsAction manageKeywords = new ManageKeywordsAction(this);
Expand Down Expand Up @@ -1692,6 +1695,7 @@ public void createDisabledIconsForMenuEntries(MenuElement menuElement) {
class SelectKeysAction extends AbstractAction {
public SelectKeysAction() {
super(Localization.lang("Customize key bindings"));
this.putValue(Action.SMALL_ICON, IconTheme.JabRefIcon.KEY_BINDINGS.getSmallIcon());
}

@Override
Expand Down

0 comments on commit ee16876

Please sign in to comment.