Re: [JPP-Devel] OpenJUMP roadmap 1.5 - New Task, OpenWizard and Save icons on Toolbar

2011-11-23 Thread Giuseppe Aruta


Hi Michael,

thanks to you for your job.
Your way was probably easier than mine. But this way affects not only icon 
dimension on toolbar but also in other menus.

My codes were to have 20x20 icons only on toolbar. As I can see on OJ 23nov 
"open" and "new file" on File menu are a bit bigger than the others.

Michael, Stefen and Ede, in the future I want to contribute with these small 
jobs of routine (set some icons for plugins, modify menus) directly on the 
repository of OJ.
If you agree.
But a need some lessons to understand how to access and what to do (to avoid 
mistakes and fatal error :-).
You can write mi directly to my mail.

Thanks

Peppe




Da: Stefan Steiniger 
A: OpenJump develop and use  
Inviato: Mercoledì 23 Novembre 2011 22:10
Oggetto: Re: [JPP-Devel] OpenJUMP roadmap 1.5 - New Task, OpenWizard and Save 
icons on Toolbar


yeah - thanks!

On 23/11/2011 1:45 PM, Michaël Michaud wrote: 
Hi Giuseppe,
>
>I replaced the 3 first icons by yours.
>I did not change code, just renamed your icons with the name used
  in the source code and save original icons as ***_small.png.
>
>Thanks for your effort,
>
>Michaël
>
>Le 22/11/2011 09:31, Giuseppe Aruta a écrit : 
>
>>
>>Hi all,
>>
>>
>>going back to OpenJUMPO roadmap 
>>(http://sourceforge.net/apps/mediawiki/jump-pilot/index.php?title=OpenJUMP_Roadmap)
>> 
>>OJ 1.5 "Other UI Improvements"   size of
  toolbar icon is varying (3 first icons too small,
  Sextante icon very small...) 
>>
>>I made some modifications to the icons and I found
  this solution.
>>I add to this mail the modified icons
>>
>>This is the solution, I think, with less modifications in
  the OJ core
>>
>>*   New Task 
  *
>>A) In the folder
  com.vividsolutions.jump.workbench.ui.images  add this icon
  'layout_add_big.png'
>>
>>B) In JumpConfiguration.java
>>Modify
>>
>> frame.getToolBar().addPlugIn(NewTaskPlugIn.getIcon(),
>>            newTaskPlugIn,
>>           
  NewTaskPlugIn.createEnableCheck(workbenchContext),
>>                workbenchContext);    
>>To
>>
>> frame.getToolBar().addPlugIn(IconLoader.icon("layout_add_big.png"),
>>            newTaskPlugIn,
>>           
  NewTaskPlugIn.createEnableCheck(workbenchContext),
>>                workbenchContext);   
>>
>>*   Open Wizard 
  *
>>
>>a) In the folder org.openjump.core.ui.images 
>>add this icon 'folder_add_big.png'
>>
>>b) On OpenWizardPlugin (org.openjump.core.ui.plugin.file)
>>
>>Modify
>>
>>  // Add tool-bar Icon
>>    WorkbenchToolBar toolBar = frame.getToolBar();
>>    toolBar.addPlugIn(1, this, icon, enableCheck,
  workbenchContext);
>>
>>To
>>
>>  // garuta 21.11.2011 Add tool-bar Icon 20x20
>>    WorkbenchToolBar toolBar = frame.getToolBar();
>>    toolBar.addPlugIn(1, this,
  IconLoader.icon("folder_add_big.png"), enableCheck,
  workbenchContext);
>>
>>
>>*   Save Datasets PlugIn 
  *
>>
>>a) In the folder org.openjump.core.ui.images 
>>add this icon 'disk_multiple_big.png'
>>
>>b) on SaveDatasetsPlugIn
  (org.openjump.core.ui.plugin.mousemenu)
>>
>>modify the line
>>
>> // Add tool-bar Icon
>>    WorkbenchToolBar toolBar = frame.getToolBar();
>>    toolBar.addPlugIn(2, this, ICON, enableCheck,
  workbenchContext);
>>
>>to
>>
>> // Add tool-bar Icon
>>  // garuta 21.11.2011 Add tool-bar Icon 20x20
>>    WorkbenchToolBar toolBar = frame.getToolBar();
>>    toolBar.addPlugIn(2, this,
  IconLoader.icon("disk_multiple_big.png"), enableCheck,
  workbenchContext);
>>
>>***
>>
>>With these modifications we are a little bit closer to OJ
  1.5
>>
>>
>>regards
>>
>>
>>Peppe
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense. 
http://p.sf.net/sfu/splunk-novd2d
>>
>>
>>___
Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>
>
>
>--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense. 
http://p.sf.net/sf

Re: [JPP-Devel] OpenJUMP roadmap 1.5 - New Task, OpenWizard and Save icons on Toolbar

2011-11-23 Thread Stefan Steiniger

yeah - thanks!

On 23/11/2011 1:45 PM, Michaël Michaud wrote:

Hi Giuseppe,

I replaced the 3 first icons by yours.
I did not change code, just renamed your icons with the name used in 
the source code and save original icons as ***_small.png.


Thanks for your effort,

Michaël

Le 22/11/2011 09:31, Giuseppe Aruta a écrit :


Hi all,

going back to OpenJUMPO roadmap 
(http://sourceforge.net/apps/mediawiki/jump-pilot/index.php?title=OpenJUMP_Roadmap) 

OJ 1.5 "Other UI Improvements"   size of toolbar icon is varying 
(3 first icons too small, Sextante icon very small...)


I made some modifications to the icons and I found this solution.
I add to this mail the modified icons

This is the solution, I think, with less modifications in the OJ core

*   New Task  *
A) In the folder com.vividsolutions.jump.workbench.ui.images  add 
this icon 'layout_add_big.png'


B) In JumpConfiguration.java
Modify

 frame.getToolBar().addPlugIn(NewTaskPlugIn.getIcon(),
newTaskPlugIn,
NewTaskPlugIn.createEnableCheck(workbenchContext),
workbenchContext);
To

 frame.getToolBar().addPlugIn(IconLoader.icon("layout_add_big.png"),
newTaskPlugIn,
NewTaskPlugIn.createEnableCheck(workbenchContext),
workbenchContext);

*   Open Wizard  *

a) In the folder org.openjump.core.ui.images
add this icon 'folder_add_big.png'

b) On OpenWizardPlugin (org.openjump.core.ui.plugin.file)

Modify

  // Add tool-bar Icon
WorkbenchToolBar toolBar = frame.getToolBar();
toolBar.addPlugIn(1, this, icon, enableCheck, workbenchContext);

To

  // garuta 21.11.2011 Add tool-bar Icon 20x20
WorkbenchToolBar toolBar = frame.getToolBar();
toolBar.addPlugIn(1, this, IconLoader.icon("folder_add_big.png"), 
enableCheck, workbenchContext);



*   Save Datasets PlugIn  *

a) In the folder org.openjump.core.ui.images
add this icon 'disk_multiple_big.png'

b) on SaveDatasetsPlugIn (org.openjump.core.ui.plugin.mousemenu)

modify the line

 // Add tool-bar Icon
WorkbenchToolBar toolBar = frame.getToolBar();
toolBar.addPlugIn(2, this, ICON, enableCheck, workbenchContext);

to

 // Add tool-bar Icon
  // garuta 21.11.2011 Add tool-bar Icon 20x20
WorkbenchToolBar toolBar = frame.getToolBar();
toolBar.addPlugIn(2, this, 
IconLoader.icon("disk_multiple_big.png"), enableCheck, workbenchContext);


***

With these modifications we are a little bit closer to OJ 1.5


regards


Peppe








--
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d


___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel




--
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d


___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] OpenJUMP roadmap 1.5 - New Task, OpenWizard and Save icons on Toolbar

2011-11-23 Thread Michaël Michaud

Hi Giuseppe,

I replaced the 3 first icons by yours.
I did not change code, just renamed your icons with the name used in the 
source code and save original icons as ***_small.png.


Thanks for your effort,

Michaël

Le 22/11/2011 09:31, Giuseppe Aruta a écrit :


Hi all,

going back to OpenJUMPO roadmap 
(http://sourceforge.net/apps/mediawiki/jump-pilot/index.php?title=OpenJUMP_Roadmap) 

OJ 1.5 "Other UI Improvements"   size of toolbar icon is varying 
(3 first icons too small, Sextante icon very small...)


I made some modifications to the icons and I found this solution.
I add to this mail the modified icons

This is the solution, I think, with less modifications in the OJ core

*   New Task  *
A) In the folder com.vividsolutions.jump.workbench.ui.images  add this 
icon 'layout_add_big.png'


B) In JumpConfiguration.java
Modify

 frame.getToolBar().addPlugIn(NewTaskPlugIn.getIcon(),
newTaskPlugIn,
NewTaskPlugIn.createEnableCheck(workbenchContext),
workbenchContext);
To

 frame.getToolBar().addPlugIn(IconLoader.icon("layout_add_big.png"),
newTaskPlugIn,
NewTaskPlugIn.createEnableCheck(workbenchContext),
workbenchContext);

*   Open Wizard  *

a) In the folder org.openjump.core.ui.images
add this icon 'folder_add_big.png'

b) On OpenWizardPlugin (org.openjump.core.ui.plugin.file)

Modify

  // Add tool-bar Icon
WorkbenchToolBar toolBar = frame.getToolBar();
toolBar.addPlugIn(1, this, icon, enableCheck, workbenchContext);

To

  // garuta 21.11.2011 Add tool-bar Icon 20x20
WorkbenchToolBar toolBar = frame.getToolBar();
toolBar.addPlugIn(1, this, IconLoader.icon("folder_add_big.png"), 
enableCheck, workbenchContext);



*   Save Datasets PlugIn  *

a) In the folder org.openjump.core.ui.images
add this icon 'disk_multiple_big.png'

b) on SaveDatasetsPlugIn (org.openjump.core.ui.plugin.mousemenu)

modify the line

 // Add tool-bar Icon
WorkbenchToolBar toolBar = frame.getToolBar();
toolBar.addPlugIn(2, this, ICON, enableCheck, workbenchContext);

to

 // Add tool-bar Icon
  // garuta 21.11.2011 Add tool-bar Icon 20x20
WorkbenchToolBar toolBar = frame.getToolBar();
toolBar.addPlugIn(2, this, 
IconLoader.icon("disk_multiple_big.png"), enableCheck, workbenchContext);


***

With these modifications we are a little bit closer to OJ 1.5


regards


Peppe








--
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d


___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel