예제 #1
0
void MessageButtonPane::SendTheMessage()
	{
	ZMessage msg;

	msg.SetString( "what", "ButtonMessage:display" );
	msg.SetString( "ButtonMessage:parameter", mMessages[ mSelectedButton ] );

	mMessenger.PostMessage(msg);
	}
예제 #2
0
void ZWindow::CloseAndDispose()
	{
	fOSWindow->SetShownState(eZShownStateHidden);
	ZMessage theMessage;
	theMessage.SetString("what", "Dispose");
	this->QueueMessage(theMessage);
	}
예제 #3
0
void ZWindow::InvokeFunctionFromMessageLoop(MessageProc inProc, const ZTupleValue& inTV)
	{
	ZMessage wrapperMessage;
	wrapperMessage.SetString("what", "zoolib:InvokeFunction");
	wrapperMessage.SetPointer("function", reinterpret_cast<void*>(inProc));
	wrapperMessage.SetValue("param", inTV);
	this->QueueMessage(wrapperMessage);
	}
예제 #4
0
void ZWindow::InvalidateWindowCursor()
	{
	if (!fPostedCursorInvalid)
		{
		fPostedCursorInvalid = true;
		ZMessage theMessage;
		theMessage.SetString("what", "InvalidCursor");
		this->QueueMessage(theMessage);
		}
	}
예제 #5
0
void ZWindow::InvalidateWindowMenuBar()
	{
	ZAssertLocked(kDebug_Window, this->GetLock());
	if (!fPostedInvalidateMenuBar)
		{
		fPostedInvalidateMenuBar = true;
		ZMessage theMessage;
		theMessage.SetString("what", "zoolib:InvalidateMenuBar");
		this->QueueMessage(theMessage);
		}
	}
예제 #6
0
void ZApp::InvalidateAllMenuBars()
	{
	// We don't need to be locked to broadcast this message
	ZTuple theTuple;
	theTuple.SetString("what", "zoolib:InvalidateAllMenuBars");

	ZMessage envelope;
	envelope.SetString("what", "zoolib:Owner");
	envelope.SetTuple("message", theTuple);

	fOSApp->BroadcastMessageToAllWindows(envelope);
	}
예제 #7
0
void ZApp::QueueRequestQuitMessage()
	{
	ZMessage theMessage;
	theMessage.SetString("what", "zoolib:RequestQuit");
	this->QueueMessage(theMessage);
	}