예제 #1
0
void TVideoSettingsTabView::Init() 
{
	BMessage *theMessage = NULL;
		
	//
	// Create all the tab views
	//
			
	// Get VideoCompressionView from resource
	BTab *compressionTab = new BTab(); 	
	theMessage = GetWindowFromResource("VideoCompressionView");
	ASSERT(theMessage);
	m_CompressionView = new TVideoCompressionView(this, theMessage);
	AddTab(m_CompressionView, compressionTab); 
	compressionTab->SetLabel("Compression"); 
	
	// Get VideoImageView from resource
	BTab *imageTab = new BTab(); 	
	theMessage = GetWindowFromResource("VideoImageView");
	ASSERT(theMessage);		
	m_ImageView = new TVideoImageView(this, theMessage);
	AddTab(m_ImageView, imageTab); 
	imageTab->SetLabel("Image"); 
	
	// Get VideoImageSource from resource
	BTab *sourceTab = new BTab(); 	
	theMessage = GetWindowFromResource("VideoSourceView");
	ASSERT(theMessage);		
	m_SourceView = new TVideoSourceView(this, theMessage);
	AddTab(m_SourceView, sourceTab); 
	sourceTab->SetLabel("Source"); 
}
예제 #2
0
void TCueSheetTimeView::ShowProjectSettingDialog(BPoint where)
{
		
	// If we have created the dialog bring it to the front and show it
	if( m_ProjectSettings)
	{
		if (m_ProjectWindow)
		{	
			m_ProjectWindow->Show();
			m_ProjectWindow->Activate(true);
		}
	}
	// Create the Project Settings dialog from a resource archive
	else
	{
		BMessage *theMessage = GetWindowFromResource("ProjectSettingsWindow");
		m_ProjectWindow = new TProjectSettings(this, m_CueSheetWindow->GetCueSheetView(), theMessage);
							
		// Move it under the mouse
		//ConvertToScreen(&where);
		//m_ProjectWindow->MoveTo(where.x, where.y);
		CenterWindow(m_ProjectWindow);
	
		// Show the dialog
		m_ProjectWindow->Show();		
	}
	return;
}
예제 #3
0
void TMovieCue::OpenEditor()
{

	// If editor is already open, bring it to front
	if (m_EditorOpen)
	{
		if (m_Editor)
		{	
			m_Editor->Show();
			m_Editor->Activate(true);
		}
	}
	else
	{		
		BMessage *theMessage = GetWindowFromResource("VideoEditorWindow");
		m_Editor = new TVideoEditor(&m_FileRef, this, theMessage);
	
		if (m_Editor)
		{
			m_EditorOpen = true;
			m_Editor->Show();
		}
		else
			m_EditorOpen = false;
	}
}
예제 #4
0
void TInfoBox::ShowCDInfo()
{
	// Create the dialog from a resource archive
	BMessage *theMessage = GetWindowFromResource("AlbumInfo");
	TInfoDialog *theDialog = new TInfoDialog(m_Parent, theMessage);
	ASSERT(theDialog);
	delete(theMessage);
	
	CenterWindow(theDialog);
	theDialog->Show();
}