27 #include "hugin_config.h"
46 #ifdef _INCLUDE_UI_RESOURCES
47 void InitXmlResource();
50 #if defined _WIN32 && defined Hugin_shared
51 DECLARE_LOCAL_EVENT_TYPE( EVT_IMAGE_READY, )
53 DECLARE_EVENT_TYPE( EVT_IMAGE_READY, )
70 : wxEvent (0, EVT_IMAGE_READY)
83 #define EVT_IMAGE_READY2(id, fn) \
84 DECLARE_EVENT_TABLE_ENTRY( EVT_IMAGE_READY, id, -1, \
85 (wxObjectEventFunction) (wxEventFunction) \
86 wxStaticCastEvent( ImageReadyEventFunction, & fn ), (wxObject *) NULL ),
168 void MacOpenFile(
const wxString &fileName);
171 #if wxUSE_ON_FATAL_EXCEPTION
172 #if wxCHECK_VERSION(3,1,0)
173 virtual void OnFatalException() wxOVERRIDE;
175 virtual void OnFatalException();
206 bool m_macOpenFileOnStart;
207 wxString m_macFileNameToOpenOnStart;
210 DECLARE_EVENT_TABLE()
215 #endif // _HUGINAPP_H
The application class for hugin.
const wxString & GetDataPath()
return the current data path
virtual bool OnInit()
pseudo constructor.
cmsHPROFILE m_monitorProfile
void relayImageLoaded(ImageReadyEvent &event)
Relay image loaded event when the UI thread is ready to process it.
const cmsHPROFILE GetMonitorProfile() const
returns the monitor profile, if no monitor profile was found the sRGB profile is used instead ...
wxString m_monitorProfileName
std::vector< HuginBase::UIntSet > Components
stores the components of the graph
static huginApp * Get()
hack.. kind of a pseudo singleton...
HuginBase::ImageCache::EntryPtr entry
std::shared_ptr< Entry > EntryPtr
a shared pointer to the entry
void StoreFramePosition(wxTopLevelWindow *frame, const wxString &basename)
Store window size and position in configfile/registry.
static MainFrame * getMainFrame()
std::shared_ptr< Request > RequestPtr
Reference counted request for an image to load.
bool HasMonitorProfile() const
return true if we found a suitable monitor profile and could loading it
virtual wxEvent * Clone() const
void RestoreFramePosition(wxTopLevelWindow *frame, const wxString &basename)
Restore window size and position from configfile/registry.
void(wxEvtHandler::* ImageReadyEventFunction)(ImageReadyEvent &)
const wxString & GetMonitorProfileName() const
return filename of monitor profile
const wxString & GetUtilsBinDir()
ImageReadyEvent(HuginBase::ImageCache::RequestPtr request, HuginBase::ImageCache::EntryPtr entry)
wxString m_workDir
temporary working directory
virtual int OnExit()
just for testing purposes
wxLocale & GetLocale()
return currently active locale
const wxString & GetXRCPath()
return the current xrc path
HuginBase::ImageCache::RequestPtr request
wxString Components2Str(const HuginGraph::ImageGraph::Components &comp)
static void imageLoadedAsync(HuginBase::ImageCache::RequestPtr request, HuginBase::ImageCache::EntryPtr entry)
Queue up an image loaded event when an image has just loaded.
wxLocale locale
locale for internationalisation