Beispiel #1
0
void helpMenuCall(Widget w, XtPointer clientData, XtPointer callData)
{
    int itemNum;
    
    itemNum = (int) clientData;
    switch (itemNum)
    {
    case 0:
	displayAboutBox();
	break;
    case 1:
	displayCommandsHelpBox();
	break;
    default:
    	break;
    }
}
int AccessorApp::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QMainWindow::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: wantsToExit(); break;
        case 1: handleNewConnection(); break;
        case 2: handleStartAction(); break;
        case 3: saveImageLabelSize(); break;
        case 4: handleStopAction(); break;
        case 5: showPixmap(); break;
        case 6: handleExitAction(); break;
        case 7: displayAboutBox(); break;
        default: ;
        }
        _id -= 8;
    }
    return _id;
}