void TQueueDialog::Init() { // // Locate all child views // // Find buttons m_StopButton = (BButton *)FindView("StopButton"); m_StartButton = (BButton *)FindView("StartButton"); m_AddButton = (BButton *)FindView("AddButton"); m_RemoveButton = (BButton *)FindView("RemoveButton"); // Find and setup list view m_TracksListScrollView = (BScrollView *)FindView("TracksListScrollView"); BListView *tracksListView = (BListView *)FindView("TracksListView"); BRect frame = tracksListView->Frame(); frame.InsetBy(2, 2); m_TracksListView = new TQueueListView(this, frame); tracksListView->Parent()->AddChild(m_TracksListView); tracksListView->RemoveSelf(); delete tracksListView; // Set list view messages BMessage *selectMessage = new BMessage(QUEUE_LIST_SELECT_MSG); m_TracksListView->SetSelectionMessage(selectMessage); BMessage *invokeMessage = new BMessage(QUEUE_LIST_INVOKE_MSG); m_TracksListView->SetInvocationMessage(invokeMessage); // Find status bar m_EncodeStatusBar = (BStatusBar *)FindView("EncodeStatusBar"); m_EncodeStatusBar->Reset("Waiting...", ""); UpdateControls(); }