예제 #1
0
void Device::willEnterForeground() {
	if (_inBackground) {
		_inBackground = false;
		onBackground(this, false);

		bool cb = platform::clipboard::_isAvailable();
		if (_clipboardAvailable != cb) {
			_clipboardAvailable = cb;
			onClipboard(this, _clipboardAvailable);
		}
	}
}
예제 #2
0
int View3D::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QWidget::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: selectionChanged(); break;
        case 1: fitAll(); break;
        case 2: fitArea(); break;
        case 3: zoom(); break;
        case 4: zoomplus(); break;
        case 5: zoomminus(); break;
        case 6: pan(); break;
        case 7: globalPan(); break;
        case 8: front(); break;
        case 9: back(); break;
        case 10: top(); break;
        case 11: bottom(); break;
        case 12: left(); break;
        case 13: right(); break;
        case 14: axo(); break;
        case 15: rotation(); break;
        case 16: reset(); break;
        case 17: hlrOn(); break;
        case 18: hlrOff(); break;
        case 19: updateToggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 20: onBackground(); break;
        case 21: timerEvent(); break;
        case 22: onWireframe(); break;
        case 23: onShading(); break;
        case 24: onColor(); break;
        case 25: onMaterial(); break;
        case 26: onMaterial((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 27: onTransparency(); break;
        case 28: onTransparency((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 29: onDelete(); break;
        case 30: onUnDelete(); break;
        }
        _id -= 31;
    }
    return _id;
}
예제 #3
0
void Device::didEnterBackground() {
	if (!_inBackground) {
		_inBackground = true;
		onBackground(this, true);
	}
}