CPListFrame.h

Go to the documentation of this file.
00001 // -*- c-basic-offset: 4 -*-
00024 #ifndef _CPLISTFRAME_H
00025 #define _CPLISTFRAME_H
00026 
00027 class MainFrame;
00028 
00033 class CPListFrame : public wxFrame, public PT::PanoramaObserver
00034 {
00035 public:
00038     CPListFrame(MainFrame * parent, PT::Panorama & pano);
00039         
00042     virtual ~CPListFrame();
00043     void panoramaImagesChanged(PT::Panorama &pano, const PT::UIntSet & imgNr);
00044 
00046     void DeleteSelected();
00048     void SelectAll();
00049 
00050 private:
00051 
00052     void SortList();
00053 
00054     void SetCPItem(int i, const PT::ControlPoint & p);
00055 
00056     void OnCPListSelectionChanged(wxListEvent & e);
00057     void OnCPListHeaderClick(wxListEvent & e);
00058     void OnDeleteButton(wxCommandEvent & e);
00059     void OnFineTuneButton(wxCommandEvent & e);
00060     void OnSelectButton(wxCommandEvent & e);
00061 
00062     void updateList();
00063 
00064     void OnColumnWidthChange( wxListEvent & e );
00065     
00066     void OnClose(wxCloseEvent& event);
00067 
00068     std::string makePairId(unsigned int id1, unsigned int id2);
00069 
00070     MainFrame * m_mainFrame;
00071     PT::Panorama & m_pano;
00072     wxListCtrl * m_list;
00073 
00074     // show point coordinates?
00075     bool m_verbose;
00076 
00077     // current sorting column
00078     int m_sortCol;
00079 
00080     bool m_sortAscend;
00081 
00082     // disable list updates..
00083     bool m_freeze;
00084 
00085     std::map<std::string, int> m_localIds;
00086 
00087     // needed for receiving events.
00088     DECLARE_EVENT_TABLE();
00089 };
00090 
00091 
00092 
00093 #endif // _CPLISTFRAME_H

Generated on Mon Sep 1 01:25:32 2014 for Hugintrunk by  doxygen 1.3.9.1