Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenBoard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lifo
Nicolas Ollinger
OpenBoard
Commits
d7b5c0b6
Commit
d7b5c0b6
authored
Oct 27, 2011
by
Ivan Ilin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sankore 329 minor fixes support vkeyboard linux
parent
96d942c8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
8 deletions
+14
-8
UBBoardPaletteManager.cpp
src/board/UBBoardPaletteManager.cpp
+4
-0
UBDesktopAnnotationController.cpp
src/desktop/UBDesktopAnnotationController.cpp
+5
-5
UBWebController.cpp
src/web/UBWebController.cpp
+5
-3
No files found.
src/board/UBBoardPaletteManager.cpp
View file @
d7b5c0b6
...
@@ -756,7 +756,11 @@ void UBBoardPaletteManager::changeMode(eUBDockPaletteWidgetMode newMode, bool is
...
@@ -756,7 +756,11 @@ void UBBoardPaletteManager::changeMode(eUBDockPaletteWidgetMode newMode, bool is
if
(
mKeyboardPalette
->
m_isVisible
)
if
(
mKeyboardPalette
->
m_isVisible
)
{
{
mKeyboardPalette
->
hide
();
mKeyboardPalette
->
hide
();
#ifndef Q_WS_X11
mKeyboardPalette
->
setParent
((
QWidget
*
)
UBApplication
::
applicationController
->
uninotesController
()
->
drawingView
());
mKeyboardPalette
->
setParent
((
QWidget
*
)
UBApplication
::
applicationController
->
uninotesController
()
->
drawingView
());
#else
mKeyboardPalette
->
setParent
(
0
);
#endif
mKeyboardPalette
->
show
();
mKeyboardPalette
->
show
();
}
}
else
else
...
...
src/desktop/UBDesktopAnnotationController.cpp
View file @
d7b5c0b6
...
@@ -97,9 +97,9 @@ UBDesktopAnnotationController::UBDesktopAnnotationController(QObject *parent)
...
@@ -97,9 +97,9 @@ UBDesktopAnnotationController::UBDesktopAnnotationController(QObject *parent)
if
(
UBPlatformUtils
::
hasVirtualKeyboard
())
if
(
UBPlatformUtils
::
hasVirtualKeyboard
())
{
{
#ifdef Q_WS_X11
#ifdef Q_WS_X11
mKeyboardPalette
=
UBKeyboardPalette
::
create
(
0
);
//
mKeyboardPalette = UBKeyboardPalette::create(0);
connect
(
mTransparentDrawingView
,
SIGNAL
(
hidden
()),
mKeyboardPalette
,
SLOT
(
hide
()));
//
connect(mTransparentDrawingView, SIGNAL(hidden()), mKeyboardPalette, SLOT(hide()));
connect
(
mTransparentDrawingView
,
SIGNAL
(
shown
()),
this
,
SLOT
(
showKeyboard
()));
//
connect(mTransparentDrawingView, SIGNAL(shown()), this, SLOT(showKeyboard()));
#else
#else
// mKeyboardPalette = UBKeyboardPalette::create(mTransparentDrawingView);
// mKeyboardPalette = UBKeyboardPalette::create(mTransparentDrawingView);
// mKeyboardPalette->setParent(mTransparentDrawingView);
// mKeyboardPalette->setParent(mTransparentDrawingView);
...
@@ -111,7 +111,7 @@ UBDesktopAnnotationController::UBDesktopAnnotationController(QObject *parent)
...
@@ -111,7 +111,7 @@ UBDesktopAnnotationController::UBDesktopAnnotationController(QObject *parent)
// mTransparentDrawingView, SLOT(virtualKeyboardActivated(bool)));
// mTransparentDrawingView, SLOT(virtualKeyboardActivated(bool)));
#ifdef Q_WS_X11
#ifdef Q_WS_X11
connect
(
mKeyboardPalette
,
SIGNAL
(
moved
(
QPoint
)),
this
,
SLOT
(
refreshMask
()));
connect
(
UBApplication
::
boardController
->
paletteManager
()
->
mKeyboardPalette
,
SIGNAL
(
moved
(
QPoint
)),
this
,
SLOT
(
refreshMask
()));
connect
(
mDesktopPalette
,
SIGNAL
(
refreshMask
()),
this
,
SLOT
(
refreshMask
()));
connect
(
mDesktopPalette
,
SIGNAL
(
refreshMask
()),
this
,
SLOT
(
refreshMask
()));
#endif
#endif
}
}
...
@@ -985,4 +985,4 @@ void UBDesktopAnnotationController::refreshMask()
...
@@ -985,4 +985,4 @@ void UBDesktopAnnotationController::refreshMask()
{
{
updateMask
(
true
);
updateMask
(
true
);
}
}
}
}
\ No newline at end of file
src/web/UBWebController.cpp
View file @
d7b5c0b6
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
#include "gui/UBScreenMirror.h"
#include "gui/UBScreenMirror.h"
#include "gui/UBMainWindow.h"
#include "gui/UBMainWindow.h"
#include "gui/UBWebToolsPalette.h"
#include "gui/UBWebToolsPalette.h"
//
#include "gui/UBKeyboardPalette.h"
#include "gui/UBKeyboardPalette.h"
#include "core/UBSettings.h"
#include "core/UBSettings.h"
#include "core/UBSetting.h"
#include "core/UBSetting.h"
...
@@ -46,6 +46,7 @@
...
@@ -46,6 +46,7 @@
#include "domain/UBGraphicsScene.h"
#include "domain/UBGraphicsScene.h"
#include "desktop/UBCustomCaptureWindow.h"
#include "desktop/UBCustomCaptureWindow.h"
#include "board/UBBoardPaletteManager.h"
UBWebController
::
UBWebController
(
UBMainWindow
*
mainWindow
)
UBWebController
::
UBWebController
(
UBMainWindow
*
mainWindow
)
...
@@ -393,8 +394,9 @@ void UBWebController::setupPalettes()
...
@@ -393,8 +394,9 @@ void UBWebController::setupPalettes()
// (*mKeyboardCurrentPalette) = UBKeyboardPalette::create(*mCurrentWebBrowser);
// (*mKeyboardCurrentPalette) = UBKeyboardPalette::create(*mCurrentWebBrowser);
#ifndef Q_WS_WIN
#ifndef Q_WS_WIN
if
(
*
mKeyboardCurrentPalette
)
if
(
UBPlatformUtils
::
hasVirtualKeyboard
()
&&
UBApplication
::
boardController
->
paletteManager
()
->
mKeyboardPalette
)
connect
(
*
mKeyboardCurrentPalette
,
SIGNAL
(
closed
()),
*
mKeyboardCurrentPalette
,
SLOT
(
onDeactivated
()));
connect
(
UBApplication
::
boardController
->
paletteManager
()
->
mKeyboardPalette
,
SIGNAL
(
closed
()),
UBApplication
::
boardController
->
paletteManager
()
->
mKeyboardPalette
,
SLOT
(
onDeactivated
()));
#endif
#endif
connect
(
mMainWindow
->
actionWebTrapFlash
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
trapFlash
()));
connect
(
mMainWindow
->
actionWebTrapFlash
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
trapFlash
()));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment