Exemplo n.º 1
0
/*!
	unregisters a QTMovieWindowH from Movie association
 */
void unregister_QTMovieWindowH_for_Movie( Movie movie )
{
	if( movie && m2qtmwh_initialised && m2qtmwh.count(movie) ){
		m2qtmwh.erase(movie);
		m2qtmwh.resize(0);
	}
}
Exemplo n.º 2
0
/*!
	remove a NativeWindow -> QTMovieWindowH association
 */
void unregister_QTMovieWindowH_from_NativeWindow( NativeWindow hwnd )
{
	if( nw2q_initialised && hwnd && hwnd2qtwmh.count(hwnd) ){
		hwnd2qtwmh.erase(hwnd);
		hwnd2qtwmh.resize(0);
	}
}
Exemplo n.º 3
0
/*!
	unregisters a QTMovieWindowH object
 */
void unregister_QTMovieWindowH( QTMovieWindowH qtwmH )
{ NativeWindow hwnd;
	if( qtwmH && q2nw_initialised && qtwmh2hwnd.count(qtwmH) ){
		hwnd = qtwmh2hwnd[qtwmH];
		if( (*qtwmH)->theView == hwnd ){
			if( nw2q_initialised && hwnd2qtwmh.count(hwnd) ){
				hwnd2qtwmh.erase(hwnd);
				hwnd2qtwmh.resize(0);
			}
		}
		qtwmh2hwnd.erase(qtwmH);
		qtwmh2hwnd.resize(0);
		if( lastQTWMH == qtwmH ){
			lastQTWMH = NULL;
		}
	}
}