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

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

parent 045ba78d
......@@ -4,6 +4,22 @@ KiCad ChangeLog 2010
Please add newer entries at the top, list the date and your name with
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>
================================================================================
Cleanup of all the menubar code to have the same style, remove the C comments.
......
......@@ -540,7 +540,15 @@ wxString& WinEDA_App::GetEditorName()
// We get the preferred editor name from environment variable first.
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
{
......@@ -622,6 +630,8 @@ bool OpenPDF( const wxString& file )
wxT( "/usr/bin/konqueror" ),
wxT( "/usr/bin/kpdf" ),
wxT( "/usr/bin/xpdf" ),
wxT( "/usr/bin/open" ), // BSD and OSX file & dir opener
wxT( "/usr/bin/xdg-open" ), // Freedesktop file & dir opener
wxT( "" ),
};
......
......@@ -33,7 +33,7 @@
<key>CFBundleLongVersionString</key>
<string></string>
<key>CFBundleName</key>
<string>cvpcb</string>
<string>CvPCB</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
......
......@@ -32,7 +32,7 @@
<key>CFBundleLongVersionString</key>
<string></string>
<key>CFBundleName</key>
<string>eeschema</string>
<string>EESchema</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
......
......@@ -8,11 +8,24 @@
<key>CFBundleTypeExtensions</key>
<array>
<string>pen</string>
<string>gba</string>
<string>gbr</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>ger</string>
<string>pho</string>
<string>drl</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>gerbview_doc.icns</string>
......@@ -37,7 +50,7 @@
<key>CFBundleLongVersionString</key>
<string></string>
<key>CFBundleName</key>
<string>gerbview</string>
<string>GerbView</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
......
......@@ -32,7 +32,7 @@
<key>CFBundleLongVersionString</key>
<string></string>
<key>CFBundleName</key>
<string>kicad</string>
<string>KiCad</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
......
......@@ -698,19 +698,6 @@ void TREE_PROJECT_FRAME::ReCreateTreePrj()
wxEmptyString,
m_TreeProject ) );
fn.SetExt( SchematicFileExtension );
// Add at least a .sch / .brd if not existing:
if( !fn.FileExists() )
AddFile( fn.GetFullName(), m_root );
fn.SetExt( PcbFileExtension );
if( !fn.FileExists( ) )
AddFile( fn.GetFullName(), m_root );
fn.SetExt( ProjectFileExtension );
// Now adding all current files if available
if( prjOpened )
{
......@@ -726,7 +713,11 @@ void TREE_PROJECT_FRAME::ReCreateTreePrj()
cont = dir.GetNext( &filename );
}
}
}
else
{
m_TreeProject->AppendItem( m_root, "Empty project" );
}
m_TreeProject->Expand( rootcellule );
......
......@@ -30,7 +30,7 @@
<key>CFBundleLongVersionString</key>
<string></string>
<key>CFBundleName</key>
<string>pcbnew</string>
<string>PCBNew</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
......
......@@ -613,7 +613,7 @@ void PCB_EDIT_FRAME::ReCreateMenuBar()
// About
item = new wxMenuItem( helpMenu, wxID_ABOUT,
_( "&About" ),
_( "&About PCBNew" ),
_( "About PCBnew printed circuit board designer" ));
SET_BITMAP( info_xpm );
helpMenu->Append( item );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment