huginConfig.cpp File Reference

functions for interaction with the hugin configuration file More...

#include "huginConfig.h"
#include "hugin_version.h"
#include "hugin/config_defaults.h"
#include "platform.h"

Include dependency graph for huginConfig.cpp:

Include dependency graph

Go to the source code of this file.

Typedefs

typedef std::map< wxString,
wxString > 
Placeholdersmap

Functions

std::string getProgram (wxConfigBase *config, wxString bindir, wxString file, wxString name) throw (wxString)
PTPrograms getPTProgramsConfig (wxString bundledBinDir, wxConfigBase *config)
AssistantPrograms getAssistantProgramsConfig (wxString bundledBinDir, wxConfigBase *config)
wxString getExePath (wxString argv0)
 get the path to the directory where the currently running executable is stored.
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
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


Detailed Description

functions for interaction with the hugin configuration file

Author:
Pablo d'Angelo <pablo.dangelo@web.de>
$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, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Definition in file huginConfig.cpp.


Typedef Documentation

typedef std::map<wxString, wxString> Placeholdersmap
 

Definition at line 284 of file huginConfig.cpp.

Referenced by getDefaultOutputName(), and getDefaultProjectName().


Function Documentation

void FillDefaultPlaceholders Placeholdersmap placeholder  ) 
 

Definition at line 286 of file huginConfig.cpp.

Referenced by getDefaultOutputName(), and getDefaultProjectName().

void FillPlaceholders Placeholdersmap placeholder,
const HuginBase::Panorama pano
 

Definition at line 302 of file huginConfig.cpp.

References HuginBase::SrcPanoImage::getExifDateTime(), HuginBase::Panorama::getImage(), HuginBase::Panorama::getNrOfImages(), HuginBase::Panorama::getOptions(), and HuginBase::PanoramaOptions::getProjection().

Referenced by getDefaultOutputName(), and getDefaultProjectName().

AssistantPrograms getAssistantProgramsConfig wxString  bundledBinDir,
wxConfigBase *  config
 

Definition at line 205 of file huginConfig.cpp.

References HuginBase::AssistantMakefilelibExport::AssistantPrograms::autooptimiser, HuginBase::AssistantMakefilelibExport::AssistantPrograms::celeste, HuginBase::AssistantMakefilelibExport::AssistantPrograms::checkpto, HuginBase::AssistantMakefilelibExport::AssistantPrograms::cpclean, getProgram(), HuginBase::AssistantMakefilelibExport::AssistantPrograms::icpfind, HuginBase::AssistantMakefilelibExport::AssistantPrograms::linefind, and HuginBase::AssistantMakefilelibExport::AssistantPrograms::pano_modify.

Referenced by Batch::Batch(), and MainFrame::RunAssistant().

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 379 of file huginConfig.cpp.

References FillDefaultPlaceholders(), FillPlaceholders(), getDefaultProjectName(), HuginBase::Panorama::getImage(), HuginBase::Panorama::getNrOfImages(), HUGIN_DEFAULT_PROJECT_NAME, and Placeholdersmap.

Referenced by PanoPanel::DoSendToBatch(), PanoPanel::DoStitch(), 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 339 of file huginConfig.cpp.

References FillDefaultPlaceholders(), FillPlaceholders(), HuginBase::Panorama::getImage(), HuginBase::Panorama::getNrOfImages(), HUGIN_DEFAULT_PROJECT_NAME, and Placeholdersmap.

Referenced by getDefaultOutputName(), PossiblePano::GetNewProjectFilename(), MainFrame::OnSaveProjectAs(), MainFrame::OnSavePTStitcherAs(), and PreferencesDialog::OnUpdateProjectFilename().

wxString getExePath wxString  argv0  ) 
 

get the path to the directory where the currently running executable is stored.

Should work well on Windows, might work on OSX and does not work on Unix.

Definition at line 258 of file huginConfig.cpp.

References makefile::path.

Referenced by Batch::Batch(), CanStartProg(), PanoPanel::DoSendToBatch(), EVT_LIST_ITEM_ACTIVATED(), getGNUMakeCmd(), GetProgPath(), BatchFrame::OnButtonOpenWithHugin(), LensCalApp::OnInit(), huginApp::OnInit(), stitchApp::OnInit(), MainFrame::OnOpenPTBatcher(), and MainFrame::OnSendToAssistantQueue().

std::string getProgram wxConfigBase *  config,
wxString  bindir,
wxString  file,
wxString  name
throw (wxString)
 

Definition at line 36 of file huginConfig.cpp.

References hugin_utils::FileExists(), and HUGIN_CONV_FILENAME.

Referenced by getAssistantProgramsConfig(), and getPTProgramsConfig().

PTPrograms getPTProgramsConfig wxString  bundledBinDir,
wxConfigBase *  config
 

Definition at line 115 of file huginConfig.cpp.

References HuginBase::PanoramaMakefilelibExport::PTPrograms::enblend, HuginBase::PanoramaMakefilelibExport::PTPrograms::enblend_opts, HuginBase::PanoramaMakefilelibExport::PTPrograms::enfuse, HuginBase::PanoramaMakefilelibExport::PTPrograms::enfuse_opts, HuginBase::PanoramaMakefilelibExport::PTPrograms::exiftool, HuginBase::PanoramaMakefilelibExport::PTPrograms::exiftool_opts, getProgram(), HuginBase::PanoramaMakefilelibExport::PTPrograms::hdrmerge, HUGIN_CONV_FILENAME, HUGIN_ENBLEND_ARGS, HUGIN_ENFUSE_ARGS, HUGIN_EXIFTOOL_COPY_ARGS, HUGIN_SMARTBLEND_ARGS, HuginBase::PanoramaMakefilelibExport::PTPrograms::nona, HuginBase::PanoramaMakefilelibExport::PTPrograms::PTblender, HuginBase::PanoramaMakefilelibExport::PTPrograms::PTmasker, HuginBase::PanoramaMakefilelibExport::PTPrograms::PTmender, HuginBase::PanoramaMakefilelibExport::PTPrograms::PTroller, HuginBase::PanoramaMakefilelibExport::PTPrograms::smartblend, and HuginBase::PanoramaMakefilelibExport::PTPrograms::smartblend_opts.

Referenced by Batch::Batch(), stitchApp::OnInit(), and MainFrame::OnSaveProject().


Generated on Wed Apr 23 01:25:42 2014 for Hugintrunk by  doxygen 1.3.9.1