void JobSetupWindow::MessageReceived(BMessage *msg) { switch (msg->what) { case OK_MSG: { UpdateJobMessage(); Quit(B_OK); } break; case CANCEL_MSG: { Quit(B_ERROR); } break; case ALL_PAGES_MGS : { fTo->SetEnabled(false); fFrom->SetEnabled(false); } break; case RANGE_SELECTION_MSG : { fTo->SetEnabled(true); fFrom->SetEnabled(true); } break; default: { BlockingWindow::MessageReceived(msg); } break; } }
// -------------------------------------------------- void JobSetupWindow::MessageReceived(BMessage *msg) { switch (msg->what) { case OK_MSG: UpdateJobMessage(); fResult = B_OK; release_sem(fExitSem); break; case CANCEL_MSG: release_sem(fExitSem); break; case ALL_PAGES_MGS: fTo->SetEnabled(false); fFrom->SetEnabled(false); break; case RANGE_SELECTION_MSG: fTo->SetEnabled(true); fFrom->SetEnabled(true); break; case DOC_INFO_MSG: (new DocInfoWindow(&fDocInfo))->Show(); break; default: inherited::MessageReceived(msg); break; } }
// -------------------------------------------------- void JobSetupWindow::MessageReceived(BMessage *msg) { switch (msg->what) { case OK_MSG: UpdateJobMessage(); fResult = B_OK; release_sem(fExitSem); break; case CANCEL_MSG: release_sem(fExitSem); break; case RANGE_FROM_MSG: case RANGE_TO_MSG: fRange->SetValue(B_CONTROL_ON); break; case DOC_INFO_MSG: (new DocInfoWindow(&fDocInfo))->Show(); break; default: inherited::MessageReceived(msg); break; } }