Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes | List of all members
huginApp Class Reference

The application class for hugin. More...

#include <huginApp.h>

Inheritance diagram for huginApp:
Inheritance graph

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 huginAppGet ()
 hack.. kind of a pseudo singleton... More...
 
static MainFramegetMainFrame ()
 
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...
 
MainFrameframe
 
HuginBase::Panorama pano
 
wxString m_xrcPrefix
 
wxString m_DataDir
 
wxString m_utilsBinDir
 
wxString m_monitorProfileName
 
cmsHPROFILE m_monitorProfile
 

Static Private Attributes

static huginAppm_this = 0
 

Detailed Description

The application class for hugin.

it contains the main frame.

Definition at line 88 of file huginApp.h.

Constructor & Destructor Documentation

huginApp::huginApp ( )

ctor.

Definition at line 153 of file huginApp.cpp.

References DEBUG_TRACE, m_monitorProfile, and m_this.

huginApp::~huginApp ( )
virtual

dtor.

Definition at line 163 of file huginApp.cpp.

References HuginBase::LensDB::LensDB::Clean(), DEBUG_TRACE, and m_monitorProfile.

Member Function Documentation

huginApp * huginApp::Get ( )
static
const wxString& huginApp::GetDataPath ( )
inline

return the current data path

Definition at line 136 of file huginApp.h.

References m_DataDir.

Referenced by MainFrame::GetSVMModel().

wxLocale& huginApp::GetLocale ( )
inline

return currently active locale

Definition at line 119 of file huginApp.h.

References locale.

MainFrame * huginApp::getMainFrame ( )
static

Definition at line 652 of file huginApp.cpp.

References frame, and m_this.

Referenced by TextureManager::TextureInfo::DefineLevels().

const cmsHPROFILE huginApp::GetMonitorProfile ( ) const
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().

const wxString& huginApp::GetMonitorProfileName ( ) const
inline

return filename of monitor profile

Definition at line 157 of file huginApp.h.

References m_monitorProfileName.

const wxString& huginApp::GetUtilsBinDir ( )
inline

Definition at line 141 of file huginApp.h.

References m_utilsBinDir.

Referenced by DCRawImport::GetCmdQueueForImport().

wxString huginApp::GetWorkDir ( )
inline

Definition at line 124 of file huginApp.h.

References m_workDir.

const wxString& huginApp::GetXRCPath ( )
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().

bool huginApp::HasMonitorProfile ( ) const
inline
void huginApp::imageLoadedAsync ( HuginBase::ImageCache::RequestPtr  request,
HuginBase::ImageCache::EntryPtr  entry 
)
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().

int huginApp::OnExit ( )
virtual

just for testing purposes

Definition at line 634 of file huginApp.cpp.

References DEBUG_TRACE.

bool huginApp::OnInit ( )
virtual
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.

Member Data Documentation

MainFrame* huginApp::frame
private

Definition at line 178 of file huginApp.h.

Referenced by getMainFrame(), OnInit(), and relayImageLoaded().

wxLocale huginApp::locale
private

locale for internationalisation

Definition at line 160 of file huginApp.h.

Referenced by GetLocale(), and OnInit().

wxString huginApp::m_DataDir
private

Definition at line 189 of file huginApp.h.

Referenced by GetDataPath(), and OnInit().

cmsHPROFILE huginApp::m_monitorProfile
private

Definition at line 194 of file huginApp.h.

Referenced by GetMonitorProfile(), huginApp(), OnInit(), and ~huginApp().

wxString huginApp::m_monitorProfileName
private

Definition at line 193 of file huginApp.h.

Referenced by GetMonitorProfileName(), HasMonitorProfile(), and OnInit().

huginApp * huginApp::m_this = 0
staticprivate

Definition at line 181 of file huginApp.h.

Referenced by Get(), getMainFrame(), and huginApp().

wxString huginApp::m_utilsBinDir
private

Definition at line 191 of file huginApp.h.

Referenced by GetUtilsBinDir(), and OnInit().

wxString huginApp::m_workDir
private

temporary working directory

Definition at line 176 of file huginApp.h.

Referenced by GetWorkDir(), and OnInit().

wxString huginApp::m_xrcPrefix
private

Definition at line 187 of file huginApp.h.

Referenced by GetXRCPath(), and OnInit().

HuginBase::Panorama huginApp::pano
private

Definition at line 184 of file huginApp.h.

Referenced by OnInit().


The documentation for this class was generated from the following files: