wxPlatform.h File Reference

platform/compiler specific stuff. More...

#include <wx/wxchar.h>
#include <wx/string.h>
#include <hugin_utils/utils.h>

Include dependency graph for wxPlatform.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Namespaces

namespace  hugin_utils

Functions

template<class str>
str wxQuoteStringInternal (const str &arg, const str &quotechar, const str &replacements)
template<class str>
str wxQuoteString (const str &arg)
 Try to escape special chars on windows and linux.
template<class str>
str wxQuoteFilename (const str &arg)
 Quote a filename, so that it is surrounded by "".
wxString doubleTowxString (double d, int digits=-1)


Detailed Description

platform/compiler specific stuff.

Author:
Pablo d'Angelo <pablo.dangelo@web.de>
$Id$

This is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU General Public License along with this software; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Definition in file wxPlatform.h.


Function Documentation

wxString doubleTowxString double  d,
int  digits = -1
[inline]
 

Definition at line 97 of file wxPlatform.h.

References hugin_utils::doubleToString().

Referenced by EVT_BUTTON(), ImagesTreeCtrl::OnBeginEdit(), HFOVDialog::OnCropFactorChanged(), HFOVDialog::OnFocalLengthChanged(), HFOVDialog::OnHFOVChanged(), HFOVDialog::OnLoadLensParameters(), CPListFrame::OnSelectButton(), ImagesPanel::OnSelectionChanged(), HFOVDialog::OnTypeChanged(), GLPreviewFrame::panoramaChanged(), LensCalFrame::ParametersToDisplay(), PreferencesDialog::UpdateDisplayData(), ImagesTreeCtrl::UpdateGroupText(), and ImagesTreeCtrl::UpdateImageText().

template<class str>
str wxQuoteFilename const str &  arg  ) 
 

Quote a filename, so that it is surrounded by "".

I don't know the escape char for windows

Definition at line 83 of file wxPlatform.h.

References hugin_utils::wxQuoteStringInternal().

Referenced by AutoPanoKolor::automatch(), AutoPanoSift::automatch(), RunStitchPanel::DetectProject(), PanoPanel::DoSendToBatch(), PanoPanel::DoStitch(), MyExecuteCommandOnDialog(), MainFrame::OnSendToAssistantQueue(), MainFrame::RunAssistant(), and RunStitchPanel::StitchProject().

template<class str>
str wxQuoteString const str &  arg  ) 
 

Try to escape special chars on windows and linux.

: I'm quite sure that this routine doesn't replace some important shell chars I don't know of. This could lead to nasty behaviour and maybe even security holes.

Definition at line 67 of file wxPlatform.h.

References hugin_utils::wxQuoteStringInternal().

Referenced by PanoPanel::DoSendToBatch(), getGNUMakeCmd(), and RunStitchPanel::StitchProject().

template<class str>
str wxQuoteStringInternal const str &  arg,
const str &  quotechar,
const str &  replacements
 

Definition at line 37 of file wxPlatform.h.

Referenced by hugin_utils::wxQuoteFilename(), and hugin_utils::wxQuoteString().


Generated on Wed Jul 16 01:25:40 2014 for Hugintrunk by  doxygen 1.3.9.1