From: <pst...@us...> - 2008-11-15 14:36:24
|
Revision: 624 http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=624&view=rev Author: pstieber Date: 2008-11-15 14:36:19 +0000 (Sat, 15 Nov 2008) Log Message: ----------- Used wxWidgets standard paths to set the location of the help cache directory in a place writable by the user. This is the first step in allowing a Linux install under /usr/local or some other system directory. Modified Paths: -------------- trunk/jazz/src/JazzPlusPlusApplication.cpp Modified: trunk/jazz/src/JazzPlusPlusApplication.cpp =================================================================== --- trunk/jazz/src/JazzPlusPlusApplication.cpp 2008-11-11 22:30:53 UTC (rev 623) +++ trunk/jazz/src/JazzPlusPlusApplication.cpp 2008-11-15 14:36:19 UTC (rev 624) @@ -22,6 +22,8 @@ #include "WxWidgets.h" +#include <wx/stdpaths.h> + #include "JazzPlusPlusApplication.h" #include "TrackFrame.h" #include "Project.h" @@ -133,6 +135,19 @@ SetVendorName("Jazz"); SetAppName("Jazz"); + wxString ConfigDir = wxStandardPaths::Get().GetUserDataDir(); + if (!wxDirExists(ConfigDir)) + { + if (!wxMkdir(ConfigDir)) + { + wxString String; + String + << "Unable to create directory \"" + << ConfigDir << '"'; + ::wxMessageBox(String, "Directory Creation Error"); + } + } + // Create the one and only top-level Jazz++ project. mpProject = new JZProject; gpProject = mpProject; @@ -200,8 +215,12 @@ if (HelpFileFound) { + // GetUserDataDir returns the directory for the user-dependent application + // data files. The value is $HOME/.appname on Linux, + // c:\Documents and Settings\username\Application Data\appname on + // Windows, and ~/Library/Application Support/appname on the Mac. // The cached version of the help file will be placed in this location. - mHelp.SetTempDir(HelpFilePath); + mHelp.SetTempDir(wxStandardPaths::Get().GetUserDataDir()); // Add the IPVT help file the the help system. mHelp.AddBook(HelpFileNameAndPath); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pst...@us...> - 2008-11-16 00:30:27
|
Revision: 632 http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=632&view=rev Author: pstieber Date: 2008-11-16 00:30:22 +0000 (Sun, 16 Nov 2008) Log Message: ----------- Changed the vendor and application name to match the one in configure.ac. Modified Paths: -------------- trunk/jazz/src/JazzPlusPlusApplication.cpp Modified: trunk/jazz/src/JazzPlusPlusApplication.cpp =================================================================== --- trunk/jazz/src/JazzPlusPlusApplication.cpp 2008-11-15 23:52:28 UTC (rev 631) +++ trunk/jazz/src/JazzPlusPlusApplication.cpp 2008-11-16 00:30:22 UTC (rev 632) @@ -134,8 +134,8 @@ ::wxInitAllImageHandlers(); - SetVendorName("Jazz"); - SetAppName("Jazz"); + SetVendorName("Jazz++"); + SetAppName("Jazz++"); InsureConfigurationFileExistence(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pst...@us...> - 2008-12-24 00:32:08
|
Revision: 647 http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=647&view=rev Author: pstieber Date: 2008-12-24 00:32:03 +0000 (Wed, 24 Dec 2008) Log Message: ----------- 1. Changed the code to set the help path temporary directory only if the help file is found. 2. Changed a comment. Modified Paths: -------------- trunk/jazz/src/JazzPlusPlusApplication.cpp Modified: trunk/jazz/src/JazzPlusPlusApplication.cpp =================================================================== --- trunk/jazz/src/JazzPlusPlusApplication.cpp 2008-12-15 05:40:25 UTC (rev 646) +++ trunk/jazz/src/JazzPlusPlusApplication.cpp 2008-12-24 00:32:03 UTC (rev 647) @@ -213,15 +213,15 @@ HelpFileFound = true; } + // GetUserDataDir returns the directory for the user-dependent application + // data files. The value is $HOME/.appname on Linux, + // c:\Documents and Settings\username\Application Data\appname on + // Windows, and ~/Library/Application Support/appname on the Mac. + // The cached version of the help file will be placed in this location. + mHelp.SetTempDir(wxStandardPaths::Get().GetUserDataDir()); + if (HelpFileFound) { - // GetUserDataDir returns the directory for the user-dependent application - // data files. The value is $HOME/.appname on Linux, - // c:\Documents and Settings\username\Application Data\appname on - // Windows, and ~/Library/Application Support/appname on the Mac. - // The cached version of the help file will be placed in this location. - mHelp.SetTempDir(wxStandardPaths::Get().GetUserDataDir()); - // Add the IPVT help file the the help system. mHelp.AddBook(HelpFileNameAndPath); @@ -243,7 +243,7 @@ //----------------------------------------------------------------------------- void JZJazzPlusPlusApplication::InsureConfigurationFileExistence() const { - // Determine the expected location of the user's data dir for Jazz++. + // Determine the expected location of the user's data directory for Jazz++. wxString UserConfigDir = wxStandardPaths::Get().GetUserDataDir(); // Determine if the directory exists. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pst...@us...> - 2011-08-01 20:55:55
|
Revision: 855 http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=855&view=rev Author: pstieber Date: 2011-08-01 20:55:49 +0000 (Mon, 01 Aug 2011) Log Message: ----------- Fixed the code name. Modified Paths: -------------- trunk/jazz/src/JazzPlusPlusApplication.cpp Modified: trunk/jazz/src/JazzPlusPlusApplication.cpp =================================================================== --- trunk/jazz/src/JazzPlusPlusApplication.cpp 2011-07-31 01:23:52 UTC (rev 854) +++ trunk/jazz/src/JazzPlusPlusApplication.cpp 2011-08-01 20:55:49 UTC (rev 855) @@ -210,7 +210,7 @@ Is.open(HelpFileNameAndPath.c_str()); if (!Is) { - wxString Message = "Failed to add the IPVT book " + mHelpFileName; + wxString Message = "Failed to add the Jazz++ book " + mHelpFileName; ::wxMessageBox(Message); } else @@ -233,7 +233,7 @@ if (HelpFileFound) { - // Add the IPVT help file the the help system. + // Add the Jazz++ help file the the help system. mHelp.AddBook(HelpFileNameAndPath); if (!WasHelpPathRead && pConfig) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pst...@us...> - 2011-08-05 20:30:43
|
Revision: 885 http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=885&view=rev Author: pstieber Date: 2011-08-05 20:30:37 +0000 (Fri, 05 Aug 2011) Log Message: ----------- Change c_str() to wx_str() due to Microsoft template specializations. Modified Paths: -------------- trunk/jazz/src/JazzPlusPlusApplication.cpp Modified: trunk/jazz/src/JazzPlusPlusApplication.cpp =================================================================== --- trunk/jazz/src/JazzPlusPlusApplication.cpp 2011-08-05 20:26:59 UTC (rev 884) +++ trunk/jazz/src/JazzPlusPlusApplication.cpp 2011-08-05 20:30:37 UTC (rev 885) @@ -196,7 +196,7 @@ // Test for the existence of the help file. bool HelpFileFound = false; ifstream Is; - Is.open(HelpFileNameAndPath.c_str()); + Is.open(HelpFileNameAndPath.wx_str()); if (!Is) { // Ask the user to find the help file. @@ -207,7 +207,7 @@ // Try one more time. Is.close(); Is.clear(); - Is.open(HelpFileNameAndPath.c_str()); + Is.open(HelpFileNameAndPath.wx_str()); if (!Is) { wxString Message = "Failed to add the Jazz++ book " + mHelpFileName; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pst...@us...> - 2013-01-06 22:40:44
|
Revision: 941 http://sourceforge.net/p/jazzplusplus/code/941 Author: pstieber Date: 2013-01-06 22:40:42 +0000 (Sun, 06 Jan 2013) Log Message: ----------- 1. Commented out floating-point exception signals for Linux due to an exception being thrown by the scrollbar code in the Ubuntu 12.04 Unity liboveralay-scrollbar code. 2. Changed how wxApp::OnInit is called. Modified Paths: -------------- trunk/jazz/src/JazzPlusPlusApplication.cpp Modified: trunk/jazz/src/JazzPlusPlusApplication.cpp =================================================================== --- trunk/jazz/src/JazzPlusPlusApplication.cpp 2013-01-06 03:13:16 UTC (rev 940) +++ trunk/jazz/src/JazzPlusPlusApplication.cpp 2013-01-06 22:40:42 UTC (rev 941) @@ -106,7 +106,10 @@ // 2. Invalid arguments (for example sqrt of a negative number). // 3. Overflow. // on a Linux box. - feenableexcept(FE_DIVBYZERO | FE_INVALID | FE_OVERFLOW); + + // The scrollbar code in the Ubuntu 12.04 Unity liboveralay-scrollbar code + // is causing floating point exceptions so I'm commenting out this code. +// feenableexcept(FE_DIVBYZERO | FE_INVALID | FE_OVERFLOW); #endif // __LINUX__ } @@ -125,6 +128,12 @@ //----------------------------------------------------------------------------- bool JZJazzPlusPlusApplication::OnInit() { + // Call base class function. This is needed for command line parsing. + if (!wxApp::OnInit()) + { + return false; + } + #if defined(_MSC_VER) && defined(_DEBUG) RedirectIoToConsole(); #endif // _MSC_VER @@ -140,9 +149,6 @@ mpProject = new JZProject; gpProject = mpProject; - // Call base class function. This is needed for command line parsing. - wxApp::OnInit(); - // Create the main application window. mpTrackFrame = JZProjectManager::Instance()->CreateTrackView(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |