Hugintrunk
0.1
|
The application class for hugin. More...
#include <huginApp.h>
Public Member Functions | |
huginApp () | |
ctor. More... | |
virtual | ~huginApp () |
dtor. More... | |
virtual bool | OnInit () |
pseudo constructor. More... | |
virtual int | OnExit () |
just for testing purposes More... | |
void | relayImageLoaded (ImageReadyEvent &event) |
Relay image loaded event when the UI thread is ready to process it. More... | |
wxLocale & | GetLocale () |
return currently active locale More... | |
wxString | GetWorkDir () |
const wxString & | GetXRCPath () |
return the current xrc path More... | |
const wxString & | GetDataPath () |
return the current data path More... | |
const wxString & | GetUtilsBinDir () |
const cmsHPROFILE | GetMonitorProfile () const |
returns the monitor profile, if no monitor profile was found the sRGB profile is used instead More... | |
bool | HasMonitorProfile () const |
return true if we found a suitable monitor profile and could loading it More... | |
const wxString & | GetMonitorProfileName () const |
return filename of monitor profile More... | |
Static Public Member Functions | |
static huginApp * | Get () |
hack.. kind of a pseudo singleton... More... | |
static MainFrame * | getMainFrame () |
static void | imageLoadedAsync (HuginBase::ImageCache::RequestPtr request, HuginBase::ImageCache::EntryPtr entry) |
Queue up an image loaded event when an image has just loaded. More... | |
Private Attributes | |
wxLocale | locale |
locale for internationalisation More... | |
wxString | m_workDir |
temporary working directory More... | |
MainFrame * | frame |
HuginBase::Panorama | pano |
wxString | m_xrcPrefix |
wxString | m_DataDir |
wxString | m_utilsBinDir |
wxString | m_monitorProfileName |
cmsHPROFILE | m_monitorProfile |
Static Private Attributes | |
static huginApp * | m_this = 0 |
The application class for hugin.
it contains the main frame.
Definition at line 88 of file huginApp.h.
huginApp::huginApp | ( | ) |
ctor.
Definition at line 153 of file huginApp.cpp.
References DEBUG_TRACE, m_monitorProfile, and m_this.
|
virtual |
dtor.
Definition at line 163 of file huginApp.cpp.
References HuginBase::LensDB::LensDB::Clean(), DEBUG_TRACE, and m_monitorProfile.
|
static |
hack.. kind of a pseudo singleton...
Definition at line 641 of file huginApp.cpp.
References DEBUG_ASSERT, DEBUG_FATAL, and m_this.
Referenced by AboutDialog::AboutDialog(), BrowsePTOFilesDialog::BrowsePTOFilesDialog(), RawImport::CheckExe(), CPDetectorDialog::CPDetectorDialog(), CPListFrame::CPListFrame(), ImagesPanel::Create(), PreviewPanel::Create(), CPImageCtrl::Create(), TextureManager::TextureInfo::DefineLevels(), EditOutputIniDialog::EditOutputIniDialog(), BrowsePTOFilesDialog::GeneratePreview(), DCRawImport::GetCmdQueueForImport(), DCRawImport::GetCmdQueueForReference(), MainFrame::GetSVMModel(), AboutDialog::GetSystemInformation(), MainFrame::GetXRCPath(), GLPreviewFrame::GLPreviewFrame(), HDRMergeOptionsDialog::HDRMergeOptionsDialog(), imageLoadedAsync(), ImageVariableDialog::ImageVariableDialog(), ImageVariablesExpressionDialog::ImageVariablesExpressionDialog(), MainFrame::MainFrame(), MaskLoadDialog::MaskLoadDialog(), CPImageCtrl::OnMouseEnter(), PreferencesDialog::OnRestoreDefaults(), PanoOutputDialog::PanoOutputDialog(), Papywizard::PapywizardImportDialog::PapywizardImportDialog(), PreferencesDialog::PreferencesDialog(), PreviewFrame::PreviewFrame(), RawImportDialog::RawImportDialog(), MaskImageCtrl::rescaleImage(), CPImageCtrl::rescaleImage(), ResetDialog::ResetDialog(), SelectAspectRatioDialog::SelectAspectRatioDialog(), PreviewPanel::updatePreview(), and ImagesPanel::UpdatePreviewImage().
|
inline |
return the current data path
Definition at line 136 of file huginApp.h.
References m_DataDir.
Referenced by MainFrame::GetSVMModel().
|
inline |
|
static |
Definition at line 652 of file huginApp.cpp.
Referenced by TextureManager::TextureInfo::DefineLevels().
|
inline |
returns the monitor profile, if no monitor profile was found the sRGB profile is used instead
Definition at line 147 of file huginApp.h.
References m_monitorProfile.
Referenced by MaskImageCtrl::rescaleImage(), CPImageCtrl::rescaleImage(), and ImagesPanel::UpdatePreviewImage().
|
inline |
return filename of monitor profile
Definition at line 157 of file huginApp.h.
References m_monitorProfileName.
|
inline |
Definition at line 141 of file huginApp.h.
References m_utilsBinDir.
Referenced by DCRawImport::GetCmdQueueForImport().
|
inline |
Definition at line 124 of file huginApp.h.
References m_workDir.
|
inline |
return the current xrc path
Definition at line 130 of file huginApp.h.
References m_xrcPrefix.
Referenced by AboutDialog::AboutDialog(), PreviewPanel::Create(), CPImageCtrl::Create(), MainFrame::GetXRCPath(), and MainFrame::MainFrame().
|
inline |
return true if we found a suitable monitor profile and could loading it
Definition at line 152 of file huginApp.h.
References m_monitorProfileName.
Referenced by TextureManager::TextureInfo::DefineLevels(), BrowsePTOFilesDialog::GeneratePreview(), MaskImageCtrl::rescaleImage(), CPImageCtrl::rescaleImage(), PreviewPanel::updatePreview(), and ImagesPanel::UpdatePreviewImage().
|
static |
Queue up an image loaded event when an image has just loaded.
Definition at line 678 of file huginApp.cpp.
References Get().
Referenced by OnInit().
|
virtual |
|
virtual |
pseudo constructor.
with the ability to fail gracefully.
Definition at line 183 of file huginApp.cpp.
References PanoCommand::CommandHistory::addCommand(), RawImportDialog::CheckRawFiles(), PanoCommand::CommandHistory::clear(), containsInvalidCharacters(), DEBUG_DEBUG, DEBUG_ERROR, DEBUG_TRACE, frame, MainFrame::getGLPreview(), MainFrame::GetGuiLevel(), MainFrame::GetHelpController(), PanoCommand::GlobalCmdHist::getInstance(), HuginBase::Color::GetMonitorProfile(), RawImportDialog::GetPanoCommand(), GUI_SIMPLE, HUGIN_CONV_FILENAME, HUGIN_LANGUAGE, imageLoadedAsync(), IsRawExtension(), item2, MainFrame::LoadProjectFile(), locale, m_DataDir, m_monitorProfile, m_monitorProfileName, m_utilsBinDir, m_workDir, m_xrcPrefix, MainFrame::OnTipOfDay(), pano, registerPTWXDlgFcn(), and RestoreFramePosition().
void huginApp::relayImageLoaded | ( | ImageReadyEvent & | event | ) |
Relay image loaded event when the UI thread is ready to process it.
Definition at line 661 of file huginApp.cpp.
References ImageReadyEvent::entry, frame, HUGIN_CONV_FILENAME, and ImageReadyEvent::request.
|
private |
Definition at line 178 of file huginApp.h.
Referenced by getMainFrame(), OnInit(), and relayImageLoaded().
|
private |
locale for internationalisation
Definition at line 160 of file huginApp.h.
Referenced by GetLocale(), and OnInit().
|
private |
Definition at line 189 of file huginApp.h.
Referenced by GetDataPath(), and OnInit().
|
private |
Definition at line 194 of file huginApp.h.
Referenced by GetMonitorProfile(), huginApp(), OnInit(), and ~huginApp().
|
private |
Definition at line 193 of file huginApp.h.
Referenced by GetMonitorProfileName(), HasMonitorProfile(), and OnInit().
|
staticprivate |
Definition at line 181 of file huginApp.h.
Referenced by Get(), getMainFrame(), and huginApp().
|
private |
Definition at line 191 of file huginApp.h.
Referenced by GetUtilsBinDir(), and OnInit().
|
private |
temporary working directory
Definition at line 176 of file huginApp.h.
Referenced by GetWorkDir(), and OnInit().
|
private |
Definition at line 187 of file huginApp.h.
Referenced by GetXRCPath(), and OnInit().
|
private |
Definition at line 184 of file huginApp.h.
Referenced by OnInit().