00001 // -*-C++ -*- 00062 //#include "Defs.h" 00063 //#include "wx/wx.h" 00064 #include "OutputGuidoFileDeviceShape.h" 00065 //#include "MutApp.h" 00066 //#include "MutIcon.h" 00067 //#include "MutRouteWnd.h" 00068 //#include "OutputDevDlg.h" 00069 //#include "Device.h" 00070 00071 void MutOutputGuidoFileDeviceShape::InitializeDialog(OutputDevDlg * out) const 00072 { 00073 wxASSERT(device); 00074 wxASSERT(device->GetType() == DTGis); 00075 wxASSERT(out); 00076 out -> SetType(DTGis); 00077 out -> SetGUIDOFile(device->GetName()); 00078 } 00079 00080 bool MutOutputGuidoFileDeviceShape::readDialog (OutputDevDlg * out) 00081 { 00082 wxASSERT(device); 00083 wxASSERT(device->GetType() == DTGis); 00084 wxASSERT(out); 00085 wxASSERT (out -> GetType() == DTGis); 00086 DEBUGLOG (other,_T ("File %s"), (out -> GetGUIDOFile()).c_str()); 00087 device->SetName (out -> GetGUIDOFile()); 00088 SetLabel (device->GetName()); 00089 return true; 00090 } 00091 00092 wxPanel * MutOutputGuidoFileDeviceShape::GetOutputFilterPanel(wxWindow * parent, 00093 Route * route) const 00094 { 00095 GisOutputFilterPanel * panel = new GisOutputFilterPanel(parent); 00096 if (!panel) return NULL; 00097 // Room for actions 00098 return panel; 00099 } 00100 00101 00102 void MutOutputGuidoFileDeviceShape::ReadOutputFilterPanel(wxWindow * panel, Route * route) 00103 { 00104 GisOutputFilterPanel * pan = dynamic_cast<GisOutputFilterPanel *> (panel); 00105 if (!pan) { 00106 UNREACHABLEC; 00107 return; 00108 } 00109 // Room for actions 00110 00111 } 00112 00113 00114 00115 IMPLEMENT_DYNAMIC_CLASS(MutOutputGuidoFileDeviceShape, MutOutputDeviceShape) 00116 00117 /* 00118 * \} 00119 */