28 #ifndef _CPIMAGESCOMBOBOX_H
29 #define _CPIMAGESCOMBOBOX_H
34 #include "wx/odcombo.h"
35 #include "wx/xrc/xh_odcombo.h"
42 bool Create(wxWindow* parent, wxWindowID
id,
const wxString& value,
const wxPoint& pos,
const wxSize& size,
43 long style = 0,
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxASCII_STR(wxComboBoxNameStr));
48 int WXUNUSED(
flags))
const;
void CalcCPDistance(HuginBase::Panorama *pano)
Get maximum CP distance for all images pairs containing the reference image.
void SelectPrev(int step=1)
std::vector< double > CPConnection
void OnKeyDown(wxKeyEvent &e)
Key handler to mimic wxChoice behavior.
include file for the hugin project
Owner Drawn ComboBox for showing connected images on CP tab.
virtual void OnDrawItem(wxDC &dc, const wxRect &rect, int item, int WXUNUSED(flags)) const
Paint method for drawing text and indication bar of combo box.
virtual bool CanHandle(wxXmlNode *node)
Internal use to identify right xml handler.
void OnMouseWheel(wxMouseEvent &e)
Mouse wheel handler to mimic wxChoice behavior.
virtual wxObject * DoCreateResource()
Create CPImagesComboBox from resource.
CPImagesComboBoxXmlHandler()
Constructor.
xrc handler for CPImagesComboBox
include file for the hugin project
const unsigned int GetRefImage()
Returns the reference image number.
bool Create(wxWindow *parent, wxWindowID id, const wxString &value, const wxPoint &pos, const wxSize &size, long style=0, const wxValidator &validator=wxDefaultValidator, const wxString &name=wxASCII_STR(wxComboBoxNameStr))
create control, bind events
std::vector< unsigned int > CPCount
void SelectNext(int step=1)
void SetRefImage(HuginBase::Panorama *pano, unsigned int newRefImg)
Set new reference image.