Hugin trunk 0.1
Loading...
Searching...
No Matches
ProjectListBox.h
Go to the documentation of this file.
1// -*- c-basic-offset: 4 -*-
2
27#include <wx/listctrl.h>
28#include <wx/xrc/xh_listc.h>
29#include "ProjectArray.h"
30#include "Batch.h"
31
32class ProjectListBox : public wxListCtrl
33{
34public:
35 //Constructor
36 bool Create(wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxTAB_TRAVERSAL, const wxString& name = "panel");
37
38 //Appends project to list
39 void AppendProject(Project* project);
40 void ChangePrefix(int index, wxString newPrefix);
42 void Deselect(int index);
43 void Fill(Batch* batch);
44 int GetIndex(int id);
46 int GetProjectId(int index);
48 wxString GetText(int row, int column);
49 void ReloadProject(int index, Project* project);
50 void Select(int index);
51 void SetMissing(int index);
52 void SwapProject(int index);
53 bool UpdateStatus(int index, Project* project);
54
55protected:
57 void OnChar(wxKeyEvent& e);
58 void OnChangePrefix(wxCommandEvent& e);
59 void OnResetProject(wxCommandEvent& e);
60 void OnEditProject(wxCommandEvent& e);
61 void OnRemoveProject(wxCommandEvent& e);
62 void OnChangeUserDefined(wxCommandEvent& e);
63
64private:
67
68 wxString GetAttributeString(int i, Project* project);
69 wxString GetLongerFormatName(std::string str);
71
84 //options taken from enum in PanoramaOptions.h. Should it change
85 //in the future, these arrays should be corrected also
86 static const wxString fileFormat[];
87 static const wxString outputMode[];
88 static const wxString HDRMergeType[];
89 static const wxString blendingMechanism[];
90
92};
93
95class ProjectListBoxXmlHandler : public wxListCtrlXmlHandler
96{
98
99public:
101 virtual wxObject* DoCreateResource();
102 virtual bool CanHandle(wxXmlNode* node);
103};
Batch processor for Hugin.
Batch processor for Hugin.
Definition Batch.h:47
virtual bool CanHandle(wxXmlNode *node)
virtual wxObject * DoCreateResource()
void SwapProject(int index)
void AppendProject(Project *project)
wxString GetLongerFormatName(std::string str)
wxString GetText(int row, int column)
void OnChangeUserDefined(wxCommandEvent &e)
void OnRemoveProject(wxCommandEvent &e)
void ChangePrefix(int index, wxString newPrefix)
int GetIndex(int id)
int GetProjectId(int index)
static const wxString blendingMechanism[]
wxString GetAttributeString(int i, Project *project)
void OnChangePrefix(wxCommandEvent &e)
HuginBase::UIntSet GetSelectedProjects()
bool UpdateStatus(int index, Project *project)
void OnResetProject(wxCommandEvent &e)
int GetProjectCountByPath(wxString path)
void OnChar(wxKeyEvent &e)
void OnColumnWidthChange(wxListEvent &event)
void ReloadProject(int index, Project *project)
void Deselect(int index)
static const wxString outputMode[]
void Fill(Batch *batch)
static const wxString fileFormat[]
static const wxString HDRMergeType[]
void OnContextMenu(wxContextMenuEvent &e)
void ChangeUserDefined(int index, wxString newUserDefined)
void Select(int index)
void SetMissing(int index)
void OnEditProject(wxCommandEvent &e)
bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name="panel")
std::set< unsigned int > UIntSet
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.
Definition threshold.h:41