void MessageButtonPane::SendTheMessage() { ZMessage msg; msg.SetString( "what", "ButtonMessage:display" ); msg.SetString( "ButtonMessage:parameter", mMessages[ mSelectedButton ] ); mMessenger.PostMessage(msg); }
void ZWindow::CloseAndDispose() { fOSWindow->SetShownState(eZShownStateHidden); ZMessage theMessage; theMessage.SetString("what", "Dispose"); this->QueueMessage(theMessage); }
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); }
void ZWindow::InvalidateWindowCursor() { if (!fPostedCursorInvalid) { fPostedCursorInvalid = true; ZMessage theMessage; theMessage.SetString("what", "InvalidCursor"); this->QueueMessage(theMessage); } }
void ZWindow::InvalidateWindowMenuBar() { ZAssertLocked(kDebug_Window, this->GetLock()); if (!fPostedInvalidateMenuBar) { fPostedInvalidateMenuBar = true; ZMessage theMessage; theMessage.SetString("what", "zoolib:InvalidateMenuBar"); this->QueueMessage(theMessage); } }
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); }
void ZApp::QueueRequestQuitMessage() { ZMessage theMessage; theMessage.SetString("what", "zoolib:RequestQuit"); this->QueueMessage(theMessage); }