Hugintrunk
0.1
|
functions for interaction with the hugin configuration file More...
Go to the source code of this file.
Typedefs | |
typedef std::map< wxString, wxString > | Placeholdersmap |
Functions | |
wxString | CleanDateTime (const wxString &input) |
void | FillDefaultPlaceholders (Placeholdersmap &placeholder) |
void | FillPlaceholders (Placeholdersmap &placeholder, const HuginBase::Panorama &pano) |
wxString | getDefaultProjectName (const HuginBase::Panorama &pano, const wxString filenameTemplate) |
gets the default project name, as defined in the preferences More... | |
wxString | getDefaultOutputName (const wxString projectname, const HuginBase::Panorama &pano, const wxString filenameTemplate) |
gets the default output prefix, based on filename and images in project the setting is read from the preferences More... | |
functions for interaction with the hugin configuration file
$Id$
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 huginConfig.cpp.
typedef std::map<wxString, wxString> Placeholdersmap |
Definition at line 32 of file huginConfig.cpp.
wxString CleanDateTime | ( | const wxString & | input | ) |
Definition at line 34 of file huginConfig.cpp.
Referenced by FillDefaultPlaceholders(), and FillPlaceholders().
void FillDefaultPlaceholders | ( | Placeholdersmap & | placeholder | ) |
Definition at line 49 of file huginConfig.cpp.
References CleanDateTime().
Referenced by getDefaultOutputName(), and getDefaultProjectName().
void FillPlaceholders | ( | Placeholdersmap & | placeholder, |
const HuginBase::Panorama & | pano | ||
) |
Definition at line 65 of file huginConfig.cpp.
References CleanDateTime(), HuginBase::SrcPanoImage::getExifDateTime(), HuginBase::Panorama::getImage(), HuginBase::Panorama::getNrOfImages(), HuginBase::Panorama::getOptions(), and HUGIN_CONV_FILENAME.
Referenced by getDefaultOutputName(), and getDefaultProjectName().
wxString getDefaultOutputName | ( | const wxString | projectname, |
const HuginBase::Panorama & | pano, | ||
const wxString | filenameTemplate | ||
) |
gets the default output prefix, based on filename and images in project the setting is read from the preferences
Definition at line 161 of file huginConfig.cpp.
References FillDefaultPlaceholders(), FillPlaceholders(), getDefaultProjectName(), HuginBase::Panorama::getImage(), HuginBase::Panorama::getNrOfImages(), HUGIN_CONV_FILENAME, and HUGIN_DEFAULT_PROJECT_NAME.
Referenced by PanoPanel::DoSendToBatch(), PanoPanel::DoStitch(), HuginExecutor::OnRun(), PreferencesDialog::OnUpdateOutputFilename(), and Project::ReadOptions().
wxString getDefaultProjectName | ( | const HuginBase::Panorama & | pano, |
const wxString | filenameTemplate | ||
) |
gets the default project name, as defined in the preferences
Definition at line 115 of file huginConfig.cpp.
References FillDefaultPlaceholders(), FillPlaceholders(), HuginBase::Panorama::getImage(), HuginBase::Panorama::getNrOfImages(), HUGIN_CONV_FILENAME, and HUGIN_DEFAULT_PROJECT_NAME.
Referenced by getDefaultOutputName(), PossiblePano::GetNewProjectFilename(), GetNewProjectFilename(), MainFrame::OnSaveProjectAs(), MainFrame::OnSavePTStitcherAs(), and PreferencesDialog::OnUpdateProjectFilename().