00001 // -*-C++ -*- 00002 00108 //#include "Defs.h" 00109 //#include "wx/wx.h" 00110 #include "NewBoxShape.h" 00111 //#include "MutApp.h" 00112 //#include "MutIcon.h" 00113 //#include "MutRouteWnd.h" 00114 //#include "InputDevDlg.h" 00115 //#include "Device.h" 00116 00117 IMPLEMENT_CLASS(NewMutBoxShape, MutBoxShape) 00118 00119 MutIcon& NewMutBoxShape::GetMutIcon() 00120 { 00121 00122 DEBUGLOG (other, _T("Checking icon")); 00123 wxASSERT(NewBoxBitmap.IsOk ()); 00124 return NewBoxBitmap; 00125 } 00126 00127 void NewMutBoxShape::InitializeDialog(BoxDlg * dlg) const { 00128 wxASSERT(dlg); 00129 dlg->SetBoxType(Box0); 00130 dlg->SetBoxNumber(0); 00131 dlg->SetTitle(_("Create Box")); 00132 dlg->DisableRemove(true); 00133 } 00134 00135 bool NewMutBoxShape::replaceSelfBy (MutBoxShape * newshape) 00136 { 00137 MutRouteWnd * p = dynamic_cast<MutRouteWnd *> (m_parent); 00138 wxASSERT(p); 00139 // the "New device" icon won't be replaced, so we just append the device 00140 p->AddBox(newshape,sizerFlags); 00141 return false; 00142 } 00143 00144 00145 00146 /* 00147 * \} 00148 */