Commit 312c16b3 authored by Jerry Jacobs's avatar Jerry Jacobs
Browse files

Minor UI changes that affect OS X, see CHANGELOG.txt

parent 045ba78d
Loading
Loading
Loading
Loading
+16 −0
Original line number Original line Diff line number Diff line
@@ -4,6 +4,22 @@ KiCad ChangeLog 2010
Please add newer entries at the top, list the date and your name with
Please add newer entries at the top, list the date and your name with
email address.
email address.


2011-Apr-12, UPDATE Jerry Jacobs <xor.gate.engineering@gmail.com>
================================================================================
Minor UI changes that affect OS X platform.
 - Fix for opening the help contents
 - Fix for opening files with the default editor
 - Fix for opening PDF files

Solved all with the BSD open command, for other OS'es which have X11 and
utilities they can use the xdg-open command which I added to the pdf viewer tries
list.

Kicad projectview:
Remove not-existing files when a empty project is created, this confuses when
users try to open it. Show a entry that the project is empty instead of these
void files.

2011-Apr-6, UPDATE Jerry Jacobs <xor.gate.engineering@gmail.com>
2011-Apr-6, UPDATE Jerry Jacobs <xor.gate.engineering@gmail.com>
================================================================================
================================================================================
Cleanup of all the menubar code to have the same style, remove the C comments.
Cleanup of all the menubar code to have the same style, remove the C comments.
+11 −1
Original line number Original line Diff line number Diff line
@@ -540,7 +540,15 @@ wxString& WinEDA_App::GetEditorName()
    // We get the preferred editor name from environment variable first.
    // We get the preferred editor name from environment variable first.
    if( editorname.IsEmpty() )
    if( editorname.IsEmpty() )
    {
    {
        wxGetEnv( wxT( "EDITOR" ), &editorname );
	// If there is no EDITOR variable set, try the desktop default
        if(!wxGetEnv( wxT( "EDITOR" ), &editorname ))
        {
#ifdef __WXOSX__
          editorname = "/usr/bin/open";
#elif __WXX11__
          editorname = "/usr/bin/xdg-open";
#endif
        }
    }
    }
    if( editorname.IsEmpty() ) // We must get a preferred editor name
    if( editorname.IsEmpty() ) // We must get a preferred editor name
    {
    {
@@ -622,6 +630,8 @@ bool OpenPDF( const wxString& file )
                wxT( "/usr/bin/konqueror" ),
                wxT( "/usr/bin/konqueror" ),
                wxT( "/usr/bin/kpdf" ),
                wxT( "/usr/bin/kpdf" ),
                wxT( "/usr/bin/xpdf" ),
                wxT( "/usr/bin/xpdf" ),
                wxT( "/usr/bin/open" ),     // BSD and OSX file & dir opener
                wxT( "/usr/bin/xdg-open" ), // Freedesktop file & dir opener
                wxT( "" ),
                wxT( "" ),
            };
            };


+1 −1
Original line number Original line Diff line number Diff line
@@ -33,7 +33,7 @@
	<key>CFBundleLongVersionString</key>
	<key>CFBundleLongVersionString</key>
	<string></string>
	<string></string>
	<key>CFBundleName</key>
	<key>CFBundleName</key>
	<string>cvpcb</string>
	<string>CvPCB</string>
	<key>CFBundlePackageType</key>
	<key>CFBundlePackageType</key>
	<string>APPL</string>
	<string>APPL</string>
	<key>CFBundleShortVersionString</key>
	<key>CFBundleShortVersionString</key>
+1 −1
Original line number Original line Diff line number Diff line
@@ -32,7 +32,7 @@
	<key>CFBundleLongVersionString</key>
	<key>CFBundleLongVersionString</key>
	<string></string>
	<string></string>
	<key>CFBundleName</key>
	<key>CFBundleName</key>
	<string>eeschema</string>
	<string>EESchema</string>
	<key>CFBundlePackageType</key>
	<key>CFBundlePackageType</key>
	<string>APPL</string>
	<string>APPL</string>
	<key>CFBundleShortVersionString</key>
	<key>CFBundleShortVersionString</key>
+14 −1
Original line number Original line Diff line number Diff line
@@ -8,11 +8,24 @@
			<key>CFBundleTypeExtensions</key>
			<key>CFBundleTypeExtensions</key>
			<array>
			<array>
				<string>pen</string>
				<string>pen</string>
				<string>gba</string>
				<string>gbr</string>
				<string>gbr</string>
				<string>gbx</string>
				<string>gbx</string>
				<string>gbo</string>
				<string>gbl</string>
				<string>gtl</string>
				<string>gto</string>
				<string>gta</string>
				<string>gbp</string>
				<string>gbp</string>
				<string>gbs</string>
				<string>gts</string>
				<string>gtp</string>
				<string>gbx</string>
				<string>lgr</string>
				<string>lgr</string>
				<string>ger</string>
				<string>ger</string>
				<string>pho</string>
				<string>pho</string>
				<string>drl</string>
			</array>
			</array>
			<key>CFBundleTypeIconFile</key>
			<key>CFBundleTypeIconFile</key>
			<string>gerbview_doc.icns</string>
			<string>gerbview_doc.icns</string>
@@ -37,7 +50,7 @@
	<key>CFBundleLongVersionString</key>
	<key>CFBundleLongVersionString</key>
	<string></string>
	<string></string>
	<key>CFBundleName</key>
	<key>CFBundleName</key>
	<string>gerbview</string>
	<string>GerbView</string>
	<key>CFBundlePackageType</key>
	<key>CFBundlePackageType</key>
	<string>APPL</string>
	<string>APPL</string>
	<key>CFBundleShortVersionString</key>
	<key>CFBundleShortVersionString</key>
Loading