Skip to content

Commit

Permalink
Updates menu
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanue1 committed Jun 26, 2015
1 parent e1a93aa commit 6c44342
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions app/src/main/groovy/jd/gui/view/MainDescription.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ actions {
name:'Open File...',
mnemonic:'O',
accelerator:shortcut('O'),
shortDescription:'Open a file'
shortDescription:'Open a file',
smallIcon:imageIcon(resource:'/images/open.png')
)
action(
id:'closeAction',
Expand All @@ -39,12 +40,14 @@ actions {
id:'saveAction',
name:'Save',
accelerator:shortcut('S'),
smallIcon:imageIcon(resource:'/images/save.png'),
enabled:false
)
action(
id:'saveAllSourcesAction',
name:'Save All Sources',
accelerator:shortcut('alt S'),
smallIcon:imageIcon(resource:'/images/save_all.png'),
enabled:false
)
action(
Expand All @@ -59,11 +62,13 @@ actions {
id:'copyAction',
name:'Copy',
accelerator:shortcut('C'),
smallIcon:imageIcon(resource:'/images/copy.png'),
enabled:false
)
action(
id:'pasteAction',
name:'Paste Log',
smallIcon:imageIcon(resource:'/images/paste.png'),
accelerator:shortcut('V')
)
action(
Expand All @@ -82,6 +87,7 @@ actions {
id:'openTypeAction',
name:'Open Type...',
accelerator:shortcut('shift T'),
smallIcon:imageIcon(resource:'/images/open_type.png'),
enabled:false
)
action(
Expand All @@ -100,18 +106,21 @@ actions {
id:'backwardAction',
name:'Back',
accelerator:'alt LEFT',
smallIcon:imageIcon(resource:'/images/backward_nav.png'),
enabled:false
)
action(
id:'forwardAction',
name:'Forward',
accelerator:'alt RIGHT',
smallIcon:imageIcon(resource:'/images/forward_nav.png'),
enabled:false
)
action(
id:'searchAction',
name:'Search...',
accelerator:shortcut('shift S'),
smallIcon:imageIcon(resource:'/images/search_src.png'),
enabled:false
)
action(
Expand All @@ -124,7 +133,8 @@ actions {
id:'preferencesAction',
name:'Preferences...',
accelerator:shortcut('shift P'),
shortDescription:'Preferences'
shortDescription:'Preferences',
smallIcon:imageIcon(resource:'/images/preferences.png')
)
action(
id:'aboutAction',
Expand Down Expand Up @@ -209,13 +219,13 @@ frame(
panel {
borderLayout()
toolBar(constraints:PAGE_START, floatable:false, rollover:true) {
iconButton(action:openAction, text:null, icon:imageIcon(resource:'/images/open.png'))
iconButton(action:openAction, text:null)
separator()
iconButton(action:openTypeAction, text:null, icon:imageIcon(resource:'/images/open_type.png'))
iconButton(action:searchAction, text:null, icon:imageIcon(resource:'/images/search_src.png'))
iconButton(action:openTypeAction, text:null)
iconButton(action:searchAction, text:null)
separator()
iconButton(action:backwardAction, text:null, icon:imageIcon(resource:'/images/backward_nav.png'))
iconButton(action:forwardAction, text:null, icon:imageIcon(resource:'/images/forward_nav.png'))
iconButton(action:backwardAction, text:null)
iconButton(action:forwardAction, text:null)
}
mainTabbedPanel(id:'mainTabbedPanel', constraints:CENTER, api:api)
hbox(id:'findPanel', constraints:PAGE_END, border:emptyBorder(2), visible:false) {
Expand Down
Binary file added app/src/main/resources/images/copy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/resources/images/paste.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/resources/images/preferences.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/resources/images/save.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/resources/images/save_all.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6c44342

Please sign in to comment.