1 ///////////////////////////////////////////////////////////////////////////// 2 // Name: NewProjectDlg.h 3 // Purpose: New project dialog 4 // Author: Alex Thuering 5 // Created: 29.10.2006 6 // RCS-ID: $Id: NewProjectDlg.h,v 1.9 2013/01/10 15:29:57 ntalex Exp $ 7 // Copyright: (c) Alex Thuering 8 // Licence: GPL 9 ///////////////////////////////////////////////////////////////////////////// 10 11 #ifndef NEW_PROJECT_DLG_H 12 #define NEW_PROJECT_DLG_H 13 14 #include <wx/wx.h> 15 #include <wxVillaLib/PropDlg.h> 16 #include "DVD.h" 17 18 class NewProjectDlg: public wxPropDlg { 19 public: 20 /** 21 * Constructor. 22 */ 23 NewProjectDlg(wxWindow *parent, bool create = true); ~NewProjectDlg()24 virtual ~NewProjectDlg() {} 25 26 wxString GetLabel(); 27 DvdResolution GetDvdResolution(); 28 DiscCapacity GetCapacity(); 29 int GetVideoBitrate(); 30 int GetAudioBitrate(); 31 VideoFormat GetVideoFormat(); 32 AudioFormat GetAudioFormat(); 33 AspectRatio GetAspectRatio(); 34 DefaultPostCommand GetDefPostCommand(); 35 36 protected: 37 int propIndex; 38 virtual void CreatePropPanel(wxSizer* sizer); 39 virtual void CreateDVDPropPanel(wxSizer* sizer, DVD* dvd); 40 virtual bool SetValues(); 41 virtual bool Validate(); 42 43 void UpdateResolutionIcon(int sel); 44 void OnChangeResolution(wxCommandEvent& evt); 45 DECLARE_EVENT_TABLE() 46 }; 47 48 #endif // NEW_PROJECT_DLG_H 49