00001 // -*-C++ -*- 00002 00067 #include "NewInputDeviceShape.h" 00068 00069 void MutNewInputDeviceShape::InitializeDialog(InputDevDlg * in) const 00070 { 00071 in -> SetType(DTNotSet); 00072 in -> DisableRemove(); 00073 } 00074 00075 bool MutNewInputDeviceShape::replaceSelfBy (MutInputDeviceShape * newshape) 00076 { 00077 MutRouteWnd * p = dynamic_cast<MutRouteWnd *> (m_parent); 00078 wxASSERT(p); 00079 // the "New device" icon won't be replaced, so we just append the device 00080 p->AddInputDevice(newshape,sizerFlags); 00081 return false; 00082 } 00083 00084 00085 00086 IMPLEMENT_DYNAMIC_CLASS(MutNewInputDeviceShape, MutInputDeviceShape) 00087 /* 00088 * \} 00089 */