View Issue Details

IDProjectCategoryView StatusLast Update
0001859FreeCADBugpublic2014-12-22 02:20
Reporterpiffpoof Assigned Towmayer  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformMacintoshOSMac OS XOS Version10.6.8
Product Version0.14 
Summary0001859: Unable to select PNG files for icons for macros in Tools-Customize
DescriptionWhen trying to add customs icons (i.e. icons that are 64x64 bit PNG files) to the Tools->Customize, Macros tab, valid PNG files remain greyed out (i.e. non-selectable) in the file selection dialog. This may only be a problem on the Macintosh platform only as no one else reported it or corroborated it in the forums.
Steps To Reproduce1 start FreeCAD
2 Tools->Customize
3 select Macros tab
4 select a Macro
5 click the button marked "…" beside the label "Pixmap"
6 in the new window "Choose Icon" click on the button "Add icons…"
7 the system specific standard file selection dialog will open, navigate to a folder with 64x64 bit PNG files
8 any PNG files will be greyed out the same as text files etc.

Both the console and Report View remain empty of any error message
Additional InformationBased on suggestions in the forums, I executed the following lines through the console:

Gui.addIconPath("/Users/macmini2/Library/Preferences/FreeCAD")
Gui.addIconPath("/Users/macmini2/Desktop/scratch")

There was no change to the system behavour. I used the file extension ".PNG" and ".png" just in case but with no change.

Relevant forum postings are:
http://forum.freecadweb.org/viewtopic.php?f=3&t=8707&start=20#p71911
http://forum.freecadweb.org/viewtopic.php?f=3&t=8707&start=30#p72589
http://forum.freecadweb.org/viewtopic.php?f=3&t=8707&start=30#p72601

I have tried to upload a screen snapshot of the file selection dialog but am not sure if it will make it

OS: Mac OS X
Word size: 64-bit
Version: 0.14.3703 (Git)
Branch: releases/FreeCAD-0-14
Hash: c6edd47334a3e6f209e493773093db2b9b4f0e40
Python version: 2.7.5
Qt version: 4.8.6
Coin version: 3.1.3
SoQt version: 1.5.0
OCC version: 6.7.0
TagsNo tags attached.
FreeCAD Information

Activities

piffpoof

2014-12-17 09:45

reporter  

screen snapshot.jpg (Attachment missing)

piffpoof

2014-12-21 19:56

reporter   ~0005427

I contacted peterl94 who was able to clarify the system behaviour as follows:

-------------------------------------
The "Add icons" button is asking you to choose a folder where icons can be found, not individual icons. Any images in the folder that you choose will then show up in the list of icons, where you can then select the specific one that you want.

I wonder if this is documented anywhere, because it is probably not what a lot of people expect.
--------------------------------------

Apparently the 870 readers of the forum post and 34 responders weren't clear on this either.

So perhaps the button label and the file selection window title should both be changed from "Select Icon" to "Select Icon Folder"

That should make it a bit clearer for users.

wmayer

2014-12-22 02:10

administrator   ~0005431

The button has been renamed to "Icon folders..." and it opens a sub-dialog where you can add or remove custom icon folders.

Related Changesets

FreeCAD: master 5aefd2d3

2014-12-22 03:07:26

wmayer

Details Diff
+ fixes 0001859: Unable to select PNG files for icons for macros in Tools-Customize Affected Issues
0001859
mod - src/Gui/BitmapFactory.cpp Diff File
mod - src/Gui/BitmapFactory.h Diff File
mod - src/Gui/DlgActionsImp.cpp Diff File
mod - src/Gui/DlgActionsImp.h Diff File
mod - src/Gui/DlgChooseIcon.ui Diff File

Issue History

Date Modified Username Field Change
2014-12-17 09:45 piffpoof New Issue
2014-12-17 09:45 piffpoof File Added: screen snapshot.jpg
2014-12-21 19:56 piffpoof Note Added: 0005427
2014-12-22 02:10 wmayer Note Added: 0005431
2014-12-22 02:20 wmayer Changeset attached => FreeCAD Master master 5aefd2d3
2014-12-22 02:20 wmayer Assigned To => wmayer
2014-12-22 02:20 wmayer Status new => closed
2014-12-22 02:20 wmayer Resolution open => fixed