|
Hugin trunk 0.1
|
various platfrom specific wxWidgets functions More...
#include "platform.h"#include <hugin_utils/utils.h>#include "wxutils.h"#include <vigra/imageinfo.hxx>
Go to the source code of this file.
Functions | |
| wxString | GetFilterExtensions (const wxString &ext) |
| build filter string "*.ext", adds also upper case version for UNIX paths when needed | |
| wxString | GetVigraImageFilter () |
| wxString | GetFileDialogImageFilters () |
| return filter for image files, needed by file open dialog it contains all image format vigra can read and some other format | |
| wxString | GetMainImageFilters () |
| return a filter for the main image files (JPG/TIFF/PNG) only | |
| wxString | GetFileDialogImageAndRawFilters () |
| return filter for image and raw files, needed by file open dialog | |
| bool | IsRawExtension (const wxString &testExt) |
| return true, if given extension is in list of known raw extension (comparision is case insensitive | |
| const wxString | getInvalidCharacters () |
| returns all invalid characters for the filename (mainly characters, which does not work with gnu make) | |
| bool | containsInvalidCharacters (const wxString stringToTest) |
| returns true, if the given strings contains invalid characters | |
| void | ShowFilenameWarning (wxWindow *parent, const wxArrayString filelist) |
| shows a dialog about filename with invalid characters, all names in filelist will be show in list | |
various platfrom specific wxWidgets functions
This program 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 General Public License for more details.
You should have received a copy of the GNU General Public License along with this software. If not, see http://www.gnu.org/licenses/.
Definition in file platform.cpp.
returns true, if the given strings contains invalid characters
Definition at line 511 of file platform.cpp.
References getInvalidCharacters(), and threshold().
Referenced by PanoOperation::AddImageDialog(), MainFrame::AddImages(), PanoPanel::DoSendToBatch(), PanoPanel::DoStitch(), LensCalFrame::OnAddImage(), BatchFrame::OnButtonChangePrefix(), FileDropTarget::OnDropFiles(), PanoDropTarget::OnDropFiles(), stitchApp::OnInit(), and huginApp::OnInit().
| wxString GetFileDialogImageAndRawFilters | ( | ) |
return filter for image and raw files, needed by file open dialog
Definition at line 90 of file platform.cpp.
References GetFilterExtensions(), hugin_utils::GetRawExtensions(), GetVigraImageFilter(), and threshold().
Referenced by PanoOperation::AddImageDialog().
| wxString GetFileDialogImageFilters | ( | ) |
return filter for image files, needed by file open dialog it contains all image format vigra can read and some other format
Definition at line 70 of file platform.cpp.
References GetFilterExtensions(), GetMainImageFilters(), GetVigraImageFilter(), and threshold().
Referenced by PanoOperation::AddImageDialog(), EnfusePanel::OnAddFiles(), StackerPanel::OnAddFiles(), LensCalFrame::OnAddImage(), PerspectivePanel::OnLoadImage(), PanoCommand::wxLoadPTProjectCmd::processPanorama(), and PanoCommand::wxApplyTemplateCmd::processPanorama().
build filter string "*.ext", adds also upper case version for UNIX paths when needed
Definition at line 34 of file platform.cpp.
References threshold().
Referenced by GetFileDialogImageAndRawFilters(), GetFileDialogImageFilters(), GetMainImageFilters(), and GetVigraImageFilter().
returns all invalid characters for the filename (mainly characters, which does not work with gnu make)
Definition at line 496 of file platform.cpp.
References threshold().
Referenced by containsInvalidCharacters(), stitchApp::OnInit(), and ShowFilenameWarning().
| wxString GetMainImageFilters | ( | ) |
return a filter for the main image files (JPG/TIFF/PNG) only
Definition at line 81 of file platform.cpp.
References GetFilterExtensions(), and threshold().
Referenced by SelectDirectoryFileDialog::FillFileTypeChoice(), GetFileDialogImageFilters(), EnfusePanel::OnGenerateOutput(), StackerPanel::OnGenerateOutput(), and PerspectivePanel::OnSaveOutput().
| wxString GetVigraImageFilter | ( | ) |
Definition at line 45 of file platform.cpp.
References GetFilterExtensions(), hugin_utils::SplitString(), and threshold().
Referenced by GetFileDialogImageAndRawFilters(), and GetFileDialogImageFilters().
return true, if given extension is in list of known raw extension (comparision is case insensitive
Definition at line 112 of file platform.cpp.
References hugin_utils::GetRawExtensions(), and threshold().
Referenced by PanoDropTarget::OnDropFiles(), and huginApp::OnInit().
| void ShowFilenameWarning | ( | wxWindow * | parent, |
| const wxArrayString | filelist | ||
| ) |
shows a dialog about filename with invalid characters, all names in filelist will be show in list
Definition at line 524 of file platform.cpp.
References getInvalidCharacters(), and threshold().
Referenced by PanoOperation::AddImageDialog(), MainFrame::AddImages(), PanoPanel::DoSendToBatch(), PanoPanel::DoStitch(), LensCalFrame::OnAddImage(), BatchFrame::OnButtonChangePrefix(), FileDropTarget::OnDropFiles(), and PanoDropTarget::OnDropFiles().