if (isDragging == false) {
QPoint clientPos(hostPosX, hostPosY);
- qDebug() << "drag out of touch screen :" << clientPos;
+ qDebug() << "drag out of touch screen:" << clientPos;
// TODO: modify event
tsHelper->mouseReleased(event, getGuestPos(clientPos));
}
}
+/* override */
void DisplayGLWidget::initializeGL()
{
qDebug("initialize GL");
}
+/* override */
void DisplayGLWidget::paintEvent(QPaintEvent *event)
{
/*
handlePaint(event);
}
+/* override */
void DisplayGLWidget::resizeEvent(QResizeEvent *event)
{
/*
handleResize(event);
}
+/* override */
void DisplayGLWidget::mousePressEvent(QMouseEvent *event)
{
handleMousePress(event);
}
+/* override */
void DisplayGLWidget::mouseReleaseEvent(QMouseEvent *event)
{
handleMouseRelease(event);
}
+/* override */
void DisplayGLWidget::enterEvent(QEvent *event)
{
handleMouseEnter(event);
}
+/* override */
void DisplayGLWidget::leaveEvent(QEvent *event)
{
handleMouseLeave(event);
}
+/* override */
void DisplayGLWidget::mouseMoveEvent(QMouseEvent *event)
{
handleMouseMove(event);
void KeyboardHelper::autoKeyRelease(void)
{
while (!keyCodeList.isEmpty()) {
- qDebug() << "auto release scancode :" << keyCodeList.last();
+ qDebug() << "auto release scancode:" << keyCodeList.last();
do_qt_keyboard_key_event(KEY_RELEASED, keyCodeList.last());
keyCodeList.removeLast();
}
if (keyMapIter == keyMap.end()) {
- qWarning() << "unsupported keycode pressed :" << keyCode;
+ qWarning() << "unsupported keycode pressed:" << keyCode;
return -1;
}
switch(event->key()) {
case Qt::Key_Alt:
if (event->modifiers() == (Qt::ControlModifier | Qt::AltModifier)) {
- qDebug() << "enable multi-touch mode : SYMM";
+ qDebug() << "enable multi-touch mode: SYMM";
set_multi_touch_enable(MultiTouchTracker::MT_SYMM);
mtTracker->leaveTouchPoint(MT_SYMM_MAX_POINT);
break;
case Qt::Key_Shift:
if (event->modifiers() == (Qt::ControlModifier | Qt::ShiftModifier)) {
- qDebug() << "enable multi-touch mode : PARA";
+ qDebug() << "enable multi-touch mode: PARA";
set_multi_touch_enable(MultiTouchTracker::MT_PARA);
} else if (event->modifiers() == Qt::ShiftModifier) {
- qDebug() << "enable multi-touch mode : SEPA";
+ qDebug() << "enable multi-touch mode: SEPA";
set_multi_touch_enable(MultiTouchTracker::MT_SEPA);
}
break;
case Qt::Key_Control:
if (event->modifiers() == Qt::ControlModifier) {
- qDebug() << "enable multi-touch mode : SEPA";
+ qDebug() << "enable multi-touch mode: SEPA";
set_multi_touch_enable(MultiTouchTracker::MT_SEPA);
} else if (event->modifiers() == (Qt::ControlModifier | Qt::ShiftModifier)) {
- qDebug() << "enable multi-touch mode : PARA";
+ qDebug() << "enable multi-touch mode: PARA";
set_multi_touch_enable(MultiTouchTracker::MT_PARA);
}
void KeyboardHelper::keyPressed(QKeyEvent *event)
{
const int keyCode = event->key();
- qDebug() << "key pressed :" << keyCode << event->text() <<
+ qDebug() << "key pressed:" << keyCode << event->text() <<
event->nativeScanCode() << event->modifiers() << event->nativeModifiers();
/* multi-touch checking */
numLockState = OFF;
}
#endif
- qDebug() << "num_lock state : " << numLockState << "pressed";
+ qDebug() << "num_lock state:" << numLockState << "pressed";
return;
} else if (keyCode == Qt::Key_CapsLock) {
#ifdef CONFIG_WIN32
switch(event->key()) {
case Qt::Key_Alt:
if (event->modifiers() == Qt::ControlModifier) {
- qDebug() << "enabled multi-touch mode : SYMM -> SEPA";
+ qDebug() << "enabled multi-touch mode: SYMM -> SEPA";
set_multi_touch_enable(MultiTouchTracker::MT_SEPA);
} else {
qDebug() << "disable multi-touch";
break;
case Qt::Key_Shift:
if (event->modifiers() == Qt::ControlModifier) {
- qDebug() << "enabled multi-touch mode : PARA -> SEPA";
+ qDebug() << "enabled multi-touch mode: PARA -> SEPA";
set_multi_touch_enable(MultiTouchTracker::MT_SEPA);
} else {
qDebug() << "disable multi-touch";
break;
case Qt::Key_Control:
if (event->modifiers() == Qt::ShiftModifier) {
- qDebug() << "enabled multi-touch mode : PARA -> SEPA";
+ qDebug() << "enabled multi-touch mode: PARA -> SEPA";
set_multi_touch_enable(MultiTouchTracker::MT_SEPA);
} else {
qDebug() << "disable multi-touch";
void KeyboardHelper::keyReleased(QKeyEvent *event)
{
int keyCode = event->key();
- qDebug() << "key released :" << event->key() << event->text() <<
+ qDebug() << "key released:" << event->key() << event->text() <<
event->nativeScanCode() << event->modifiers() << event->nativeModifiers();
/* multi-touch checking */
/* NumLock or CapsLock key */
if (keyCode == Qt::Key_NumLock) {
- qDebug() << "num_lock state : " << numLockState << "released";
+ qDebug() << "num_lock state:" << numLockState << "released";
return;
} else if (keyCode == Qt::Key_CapsLock) {
#ifdef CONFIG_DARWIN
capsLockState = OFF;
changeCapsLockState();
#endif
- qDebug() << "caps_lock state : " << capsLockState << "released";
+ qDebug() << "caps_lock state:" << capsLockState << "released";
return;
}
if (mode >= MT_OFF && mode < MT_MAX) {
(this->*(mtProcessingFunc[mode]))(hostPos, guestPos);
} else {
- qWarning() << "invalid MT mode :" << mode;
+ qWarning() << "invalid MT mode:" << mode;
}
}
/* override */
void MainView::resizeEvent(QResizeEvent *event)
{
- qDebug() << "resize skin view :" << size();
+ qDebug() << "resize skin view:" << size();
/* scaling */
const qreal sx = win->getUiState()->getScaleFactor();
} else if (dockPos == -1) {
qDebug("open floating controller %d", index);
} else {
- qDebug("invalid dock position : %d", dockPos);
+ qDebug("invalid dock position: %d", dockPos);
dockPos = -1;
}
createCloseItem(menu, item);
break;
default:
- qWarning("unknown menu item type : %d", item->getType());
+ qWarning("unknown menu item type: %d", item->getType());
}
}
}
void ContextMenu::slotTopMost(bool on)
{
- qDebug("stays on top : %s", on? "on" : "off");
+ qDebug("stays on top: %s", on? "on" : "off");
#ifdef CONFIG_LINUX
/* On Ubuntu, all of the child windows which are higher than parent window in z-order
void ContextMenu::slotHostKeyboard(bool on)
{
- qDebug("host keyboard : %s", on? "on" : "off");
+ qDebug("host keyboard: %s", on? "on" : "off");
if (on) {
do_hotplug(ATTACH_HOST_KEYBOARD, NULL, 0);
void ScreenShotDialog::slotSliderChanged(int level)
{
- qDebug("slider changed : %d", level);
+ qDebug("slider changed: %d", level);
updateRatio(getSliderLevel());
{
ratio = ratioList.at(level);
if (ratio <= 0) {
- qWarning() << "invalid screenshot ratio :" << ratio;
+ qWarning() << "invalid screenshot ratio:" << ratio;
return;
}
/* override */
void RotaryView::resizeEvent(QResizeEvent *event)
{
- qDebug() << "resize rotary view :" << size();
+ qDebug() << "resize rotary view:" << size();
/* scaling */
const qreal sx = win->getUiState()->getScaleFactor();
if (xml.name() == REGION_KEYWORD) {
/* region */
displayRect = parseRegion(xml);
- qDebug("- rect : (%d,%d %dx%d)",
+ qDebug("- rect: (%d,%d %dx%d)",
displayRect.x(), displayRect.y(),
displayRect.width(), displayRect.height());
} else if (xml.name() == ANGLE_KEYWORD) {
parseShortcuts(xml, item->getShortcutMap());
} else if (xml.name() == MENULIST_KEYWORD) {
int cnt = parseMenuList(xml, item->getMenuList());
- qDebug("- advanced menuList : %d", cnt);
+ qDebug("- advanced menuList: %d", cnt);
}
}
} else if (xml.name() == FACTORLIST_KEYWORD) {
int defaultFactor = 0;
int cnt = parseFactorList(xml, item->getFactorMap(), &defaultFactor);
- qDebug("- scale factorList : %d", cnt);
+ qDebug("- scale factorList: %d", cnt);
item->setDefaultScaleFactor(defaultFactor);
}
/* hover */
form->setHoverType(parseHover(xml));
} else {
- qWarning() << "undefined element :" << xml.name();
+ qWarning() << "undefined element:" << xml.name();
}
}