void MainView::AttachedToWindow() { //ensure messages are sent to the view and not the window LayoutView::AttachedToWindow(); textInputView->SetTarget(this); m_pcStart->SetTarget(this); mainMenuBar->SetTargetForItems( this ); }
void DockCamera::AttachedToWindow() { pcCameraDelayedLooper = new CameraDelayedLooper(); pcCameraDelayedLooper->Run(); /* Load default icons */ pcFile = new os::File( m_pcPlugin->GetPath() ); os::Resources cCol( pcFile ); pcStream = cCol.GetResourceStream( "camera.png" ); m_pcIcon = new os::BitmapImage( pcStream ); delete( pcStream ); delete pcFile; /* Load settings */ LoadSettings(); pcContextMenu->SetTargetForItems(this); m_pcPrintKeyEvent = new os::Event(); m_pcPrintKeyEvent->SetToRemote("os/System/PrintKeyWasHit",-1); m_pcPrintKeyEvent->SetMonitorEnabled(true,this,M_PRINT_SCREEN); }