Skip to content

Commit

Permalink
Add static method to find msexport app
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@5803 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Sep 10, 2006
1 parent 8b7c713 commit a42798e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/core/qgsapplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,18 @@ const QString QgsApplication::helpAppPath()
helpAppPath += "/qgis_help";
return helpAppPath;
}
/*!
Returns the path to the mapserverexport application.
*/
const QString QgsApplication::msexportAppPath()
{
QString msexportAppPath = applicationDirPath();
#ifdef Q_OS_MACX
msexportAppPath += "/bin/msexport.app/Contents/MacOS";
#endif
msexportAppPath += "/msexport";
return msexportAppPath;
}

/*!
Returns the path to the translation directory.
Expand Down
3 changes: 3 additions & 0 deletions src/core/qgsapplication.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ class QgsApplication: public QApplication
//! Returns the path to the help application.
static const QString helpAppPath();

//! Returns the path to the mapserver export application.
static const QString msexportAppPath();

//! Returns the path to the translation directory.
static const QString i18nPath();

Expand Down

0 comments on commit a42798e

Please sign in to comment.