26#ifndef _BROWSEPTOFILESDIALOG_H
27#define _BROWSEPTOFILESDIALOG_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"
37#include "wx/datetime.h"
38#include "wx/filename.h"
84 void OnOk(wxCommandEvent& e);
Dialog for browsing pto files.
void OnShowOnMap(wxCommandEvent &e)
show current pano on Openstreetmap
wxString GetSelectedPath()
return last selected path
void GeneratePreview(int index)
generate preview for pto file with index
void OnDirectoryChanged(wxTreeEvent &e)
directory changed, load files from new directory
std::vector< PanoInfo > m_ptoInfo
info about the pto file
wxSplitterWindow * m_splitter2
wxStaticText * m_labelControl
void UpdateItemTexts(long newStyle)
update all item texts
ThumbnailThread * m_thumbnailThread
background thumbnail creater thread
void FillPanoInfo(const PanoInfo &info, long index)
add a new item to wxListCtrl and populate all columns
void OnThumbnailUpdate(wxCommandEvent &e)
for notifing from ThumbnailThread about new generated thumbnail generated thumbnail is transfered in ...
wxImageList m_thumbnails
image list with all thumbnails
void OnListMouseMove(wxMouseEvent &e)
mouse move handler to update tooltips
wxGenericDirCtrl * m_dirCtrl
wxString GetSelectedProject()
return full path of selected project
void OnFileChanged(wxListEvent &e)
new file selected, generate preview for new file
long TranslateIndex(const long index)
translate the index to the index of m_ptoInfo
void EndThumbnailThread()
end background thumbnail creating thread
void SortItems()
sort the items according to selected column
void OnListColClick(wxListEvent &e)
click on header to sort by column
~BrowsePTOFilesDialog()
destructor, saves position
wxStaticBitmap * m_previewCtrl
void OnListTypeChanged(wxCommandEvent &e)
Change display of wxListCtrl.
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
wxCriticalSection m_ThreadCS
critical section to synchronize with ThumbnailThread
void OnOk(wxCommandEvent &e)
Saves current expression when closing dialog with Ok.
class to store some information about a pto file on disc
HuginBase::PanoramaOptions options
wxString focalLengthString
background thread to generate thumbnails of all pto files
std::vector< deghosting::BImagePtr > threshold(const std::vector< deghosting::FImagePtr > &inputImages, const double threshold, const uint16_t flags)
Threshold function used for creating alpha masks for images.