27 #include "hugin_config.h"
46 #ifdef _INCLUDE_UI_RESOURCES
47 void InitXmlResource();
66 : wxEvent (0, EVT_IMAGE_READY)
79 #define EVT_IMAGE_READY2(id, fn) \
80 DECLARE_EVENT_TABLE_ENTRY( EVT_IMAGE_READY, id, -1, \
81 (wxObjectEventFunction) (wxEventFunction) \
82 wxStaticCastEvent( ImageReadyEventFunction, & fn ), (wxObject *) NULL ),
164 void MacOpenFile(
const wxString &fileName);
167 #if wxUSE_ON_FATAL_EXCEPTION
168 virtual void OnFatalException() wxOVERRIDE;
198 bool m_macOpenFileOnStart;
199 wxString m_macFileNameToOpenOnStart;
202 DECLARE_EVENT_TABLE()
207 #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
wxDECLARE_EVENT(wxEVT_COMMAND_THUMBNAILTHREAD_UPDATE, wxCommandEvent)
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)
Event for when a requested image finished loading.
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