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
f6c3ee89
Commit
f6c3ee89
authored
Aug 22, 2011
by
Anatoly Mihalchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Virtual keyboard: desktop mode under linux
parent
0264852f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
UBDesktopAnnotationController.cpp
src/desktop/UBDesktopAnnotationController.cpp
+16
-0
UBDesktopAnnotationController.h
src/desktop/UBDesktopAnnotationController.h
+1
-0
No files found.
src/desktop/UBDesktopAnnotationController.cpp
View file @
f6c3ee89
...
@@ -95,8 +95,14 @@ UBDesktopAnnotationController::UBDesktopAnnotationController(QObject *parent)
...
@@ -95,8 +95,14 @@ UBDesktopAnnotationController::UBDesktopAnnotationController(QObject *parent)
if
(
UBPlatformUtils
::
hasVirtualKeyboard
())
if
(
UBPlatformUtils
::
hasVirtualKeyboard
())
{
{
#ifdef Q_WS_X11
mKeyboardPalette
=
UBKeyboardPalette
::
create
(
0
);
connect
(
mTransparentDrawingView
,
SIGNAL
(
hidden
()),
mKeyboardPalette
,
SLOT
(
hide
()));
connect
(
mTransparentDrawingView
,
SIGNAL
(
shown
()),
this
,
SLOT
(
showKeyboard
()));
#else
mKeyboardPalette
=
UBKeyboardPalette
::
create
(
mTransparentDrawingView
);
mKeyboardPalette
=
UBKeyboardPalette
::
create
(
mTransparentDrawingView
);
mKeyboardPalette
->
setParent
(
mTransparentDrawingView
);
mKeyboardPalette
->
setParent
(
mTransparentDrawingView
);
#endif
connect
(
mKeyboardPalette
,
SIGNAL
(
keyboardActivated
(
bool
)),
mTransparentDrawingView
,
SLOT
(
virtualKeyboardActivated
(
bool
)));
connect
(
mKeyboardPalette
,
SIGNAL
(
keyboardActivated
(
bool
)),
mTransparentDrawingView
,
SLOT
(
virtualKeyboardActivated
(
bool
)));
connect
(
mKeyboardPalette
,
SIGNAL
(
moved
(
QPoint
)),
this
,
SLOT
(
refreshMask
()));
connect
(
mKeyboardPalette
,
SIGNAL
(
moved
(
QPoint
)),
this
,
SLOT
(
refreshMask
()));
}
}
...
@@ -160,6 +166,11 @@ UBDesktopAnnotationController::UBDesktopAnnotationController(QObject *parent)
...
@@ -160,6 +166,11 @@ UBDesktopAnnotationController::UBDesktopAnnotationController(QObject *parent)
void
UBDesktopAnnotationController
::
showKeyboard
(
bool
show
)
void
UBDesktopAnnotationController
::
showKeyboard
(
bool
show
)
{
{
#ifdef Q_WS_X11
if
(
!
mTransparentDrawingView
->
isVisible
())
return
;
#endif
if
(
mKeyboardPalette
)
if
(
mKeyboardPalette
)
{
{
if
(
show
)
if
(
show
)
...
@@ -170,6 +181,11 @@ void UBDesktopAnnotationController::showKeyboard(bool show)
...
@@ -170,6 +181,11 @@ void UBDesktopAnnotationController::showKeyboard(bool show)
}
}
}
}
void
UBDesktopAnnotationController
::
showKeyboard
()
{
if
(
UBApplication
::
mainWindow
->
actionVirtualKeyboard
->
isChecked
())
mKeyboardPalette
->
show
();
}
UBDesktopAnnotationController
::~
UBDesktopAnnotationController
()
UBDesktopAnnotationController
::~
UBDesktopAnnotationController
()
{
{
...
...
src/desktop/UBDesktopAnnotationController.h
View file @
f6c3ee89
...
@@ -71,6 +71,7 @@ class UBDesktopAnnotationController : public QObject
...
@@ -71,6 +71,7 @@ class UBDesktopAnnotationController : public QObject
void
updateBackground
();
void
updateBackground
();
void
showKeyboard
(
bool
show
);
void
showKeyboard
(
bool
show
);
void
showKeyboard
();
//X11 virtual keyboard working only needed
signals
:
signals
:
/**
/**
...
...
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