26 #ifndef _BROWSEPTOFILESDIALOG_H
27 #define _BROWSEPTOFILESDIALOG_H
29 #include "wx/dialog.h"
30 #include "wx/dirctrl.h"
31 #include "wx/listctrl.h"
32 #include "wx/statbmp.h"
33 #include "wx/stattext.h"
34 #include "wx/splitter.h"
35 #include "wx/arrstr.h"
36 #include "wx/thread.h"
37 #include "wx/datetime.h"
38 #include "wx/filename.h"
86 void OnOk(wxCommandEvent& e);
141 #endif //_BROWSEPTOFILESDIALOG_H
~BrowsePTOFilesDialog()
destructor, saves position
BrowsePTOFilesDialog(wxWindow *parent, const wxString startDirectory)
Constructor, read from xrc ressource; restore last uses settings and position.
void FillPanoInfo(const PanoInfo &info, long index)
add a new item to wxListCtrl and populate all columns
void OnFileChanged(wxListEvent &e)
new file selected, generate preview for new file
void OnThumbnailUpdate(wxCommandEvent &e)
for notifing from ThumbnailThread about new generated thumbnail generated thumbnail is transfered in ...
void OnDblClickListCtrl(wxMouseEvent &e)
double click does open file
wxSplitterWindow * m_splitter1
PanoInfo ParsePTOFile(const wxFileName file)
read the given pto file and add all information to wxListCtrl
void OnListColClick(wxListEvent &e)
click on header to sort by column
wxString focalLengthString
wxStaticText * m_labelControl
Dialog for browsing pto files.
wxGenericDirCtrl * m_dirCtrl
void OnDirectoryChanged(wxTreeEvent &e)
directory changed, load files from new directory
wxImageList m_thumbnails
image list with all thumbnails
HuginBase::PanoramaOptions options
void GeneratePreview(int index)
generate preview for pto file with index
wxSplitterWindow * m_splitter2
std::vector< PanoInfo > m_ptoInfo
info about the pto file
void SortItems()
sort the items according to selected column
wxString GetSelectedProject()
return full path of selected project
wxCriticalSection m_ThreadCS
critical section to synchronize with ThumbnailThread
background thread to generate thumbnails of all pto files
wxStaticBitmap * m_previewCtrl
void OnListTypeChanged(wxCommandEvent &e)
Change display of wxListCtrl.
static void info(const char *fmt,...)
class to store some information about a pto file on disc
void OnOk(wxCommandEvent &e)
Saves current expression when closing dialog with Ok.
ThumbnailThread * m_thumbnailThread
background thumbnail creater thread
long TranslateIndex(const long index)
translate the index to the index of m_ptoInfo
void OnShowOnMap(wxCommandEvent &e)
show current pano on Openstreetmap
void EndThumbnailThread()
end background thumbnail creating thread
void UpdateItemTexts(long newStyle)
update all item texts
wxString GetSelectedPath()
return last selected path