Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages
hugin1/hugin/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(); 00047 00048 private: 00049 00050 void SortList(); 00051 00052 void SetCPItem(int i, const PT::ControlPoint & p); 00053 00054 void OnCPListSelectionChanged(wxListEvent & e); 00055 void OnCPListHeaderClick(wxListEvent & e); 00056 void OnDeleteButton(wxCommandEvent & e); 00057 void OnFineTuneButton(wxCommandEvent & e); 00058 void OnSelectButton(wxCommandEvent & e); 00059 00060 void updateList(); 00061 00062 void OnColumnWidthChange( wxListEvent & e ); 00063 00064 void OnClose(wxCloseEvent& event); 00065 00066 std::string makePairId(unsigned int id1, unsigned int id2); 00067 00068 MainFrame * m_mainFrame; 00069 PT::Panorama & m_pano; 00070 wxListCtrl * m_list; 00071 00072 // show point coordinates? 00073 bool m_verbose; 00074 00075 // current sorting column 00076 int m_sortCol; 00077 00078 bool m_sortAscend; 00079 00080 // disable list updates.. 00081 bool m_freeze; 00082 00083 std::map<std::string, int> m_localIds; 00084 00085 // needed for receiving events. 00086 DECLARE_EVENT_TABLE(); 00087 }; 00088 00089 00090 00091 #endif // _CPLISTFRAME_H
1.3.9.1