00001 00014 #ifndef _cMovieWidgetAct_h 00015 #define _cMovieWidgetAct_h 00016 00017 #include "cMovieWidget.h" 00018 #include "cMovie.h" 00019 00020 #include "cImdb.h" 00021 00022 #include "cFile.h" // for cFile && poster constant(F_POSTER) 00023 00024 #include "cImageMainPanel.h" // DisplayPoster(). 00025 00026 #include <string> 00027 using std::string; 00028 00029 class cMovieWidgetAct: public cMovieWidget 00030 { 00031 public: 00033 cMovieWidgetAct(wxWindow *Parent); 00034 00036 ~cMovieWidgetAct(void); 00037 00039 void Clear(void); 00040 00041 cMovie *GetMovie(void); 00042 00044 void DisplayData(void); 00045 00047 void UpdateData(void); 00048 00050 void UpdatePosterFileName(cFile *pFile); 00051 00053 void SetImagePanel(cImageMainPanel *pImageMainPanel); 00054 00055 protected: 00056 00057 DECLARE_EVENT_TABLE() 00058 00059 private: 00060 cMovie *m_pMovie; // 1 per Notebook. 00061 Int iCastNameRowPos; // Position of selected row in cast name list ctrl. 00062 cImdb Imdb; 00063 cFile *m_pFile; 00064 00065 cImageMainPanel *m_pImageMainPanel; // Use as "bridge". 00066 00067 const string GetCastnameStr(void); 00068 void DisplayCastname(string sCastname); 00069 00070 //***************** 00071 // Event functions. 00072 //***************** 00073 void OnSize2(wxSizeEvent &event); 00074 void OnUrlEnter(wxCommandEvent& command); 00075 void OnCastNameEntryEnter(wxCommandEvent& command); 00076 void OnCastNameRowSelected(wxListEvent& event); // Update selected row position in Cast name list ctrl. 00077 void OnDeletePress(wxListEvent& event); // On delete press, delete selected item. 00078 }; 00079 00080 #endif // _cMovieWidgetAct_h