00001 00002 // Name: wxGuiTest/VtkWxGuiTesting/CRVtkCapture.cpp 00003 // Author: Reinhold Fuereder 00004 // Created: 2004 00005 // Copyright: (c) 2005 Reinhold Fuereder 00006 // Licence: wxWindows licence 00007 // 00008 // $Id$ 00010 00011 #ifdef __GNUG__ 00012 #pragma implementation "CRVtkCapture.h" 00013 #endif 00014 00015 #include <wxGuiTest/VtkGuiTesting/CRVtkCapture.h> 00016 00017 #include <wx/xrc/xmlres.h> 00018 00019 #include <wxGuiTest/VtkGuiTesting/CRVtkCaptureControl.h> 00020 00021 // VTK capture panel XRC file is compiled into a c++ file with embedded resources: 00022 extern void InitVtkCapturePanelXRC (); 00023 00024 namespace wxTst { 00025 00026 00027 CRVtkCapture::CRVtkCapture () 00028 { 00029 // Nothing to do 00030 } 00031 00032 00033 CRVtkCapture::~CRVtkCapture () 00034 { 00035 // Nothing to do 00036 } 00037 00038 00039 CRCaptureControl * CRVtkCapture::CreateEvtHandler () const 00040 { 00041 return new CRVtkCaptureControl (m_dialog); 00042 } 00043 00044 00045 void CRVtkCapture::CreateDialog () 00046 { 00047 CRCapture::CreateDialog (); 00048 m_dialog->SetTitle (_("VTK Capture Dialog")); 00049 } 00050 00051 00052 wxPanel * CRVtkCapture::LoadPanel () 00053 { 00054 InitVtkCapturePanelXRC (); 00055 return wxXmlResource::Get ()->LoadPanel (m_dialog, _T("VtkCapturePanel")); 00056 } 00057 00058 } // End namespace wxTst