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
d2ec994e
Commit
d2ec994e
authored
Nov 16, 2012
by
Claudio Valerio
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'release-candidate' of github.com:Sankore/Sankore-3.1 into release-candidate
parents
51a5421b
468965d4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
9 deletions
+23
-9
UBBoardPaletteManager.h
src/board/UBBoardPaletteManager.h
+1
-0
UBDesktopAnnotationController.cpp
src/desktop/UBDesktopAnnotationController.cpp
+22
-9
No files found.
src/board/UBBoardPaletteManager.h
View file @
d2ec994e
...
...
@@ -65,6 +65,7 @@ class UBBoardPaletteManager : public QObject
UBLeftPalette
*
leftPalette
(){
return
mLeftPalette
;}
UBRightPalette
*
rightPalette
(){
return
mRightPalette
;}
UBStylusPalette
*
stylusPalette
(){
return
mStylusPalette
;}
UBActionPalette
*
addItemPalette
()
{
return
mAddItemPalette
;}
void
showVirtualKeyboard
(
bool
show
=
true
);
void
initPalettesPosAtStartup
();
void
connectToDocumentController
();
...
...
src/desktop/UBDesktopAnnotationController.cpp
View file @
d2ec994e
...
...
@@ -157,6 +157,7 @@ UBDesktopAnnotationController::UBDesktopAnnotationController(QObject *parent, UB
#ifdef Q_WS_X11
connect
(
mDesktopPalette
,
SIGNAL
(
moving
()),
this
,
SLOT
(
refreshMask
()));
connect
(
UBApplication
::
boardController
->
paletteManager
()
->
rightPalette
(),
SIGNAL
(
resized
()),
this
,
SLOT
(
refreshMask
()));
connect
(
UBApplication
::
boardController
->
paletteManager
()
->
addItemPalette
(),
SIGNAL
(
closed
()),
this
,
SLOT
(
refreshMask
()));
#endif
onDesktopPaletteMaximized
();
...
...
@@ -865,6 +866,16 @@ void UBDesktopAnnotationController::updateMask(bool bTransparent)
p
.
drawRect
(
tabsPalette
);
}
#ifdef Q_WS_X11
//Rquiered only for compiz wm
//TODO. Window manager detection screen
if
(
UBApplication
::
boardController
->
paletteManager
()
->
addItemPalette
()
->
isVisible
())
{
p
.
drawRect
(
UBApplication
::
boardController
->
paletteManager
()
->
addItemPalette
()
->
geometry
());
}
#endif
p
.
end
();
// Then we add the annotations. We create another painter because we need to
...
...
@@ -909,6 +920,7 @@ void UBDesktopAnnotationController::updateMask(bool bTransparent)
void
UBDesktopAnnotationController
::
refreshMask
()
{
if
(
mTransparentDrawingScene
&&
mTransparentDrawingView
->
isVisible
())
{
if
(
mIsFullyTransparent
||
UBDrawingController
::
drawingController
()
->
stylusTool
()
==
UBStylusTool
::
Selector
//Needed to work correctly when another actions on stylus are checked
...
...
@@ -919,6 +931,7 @@ void UBDesktopAnnotationController::refreshMask()
{
updateMask
(
true
);
}
}
}
void
UBDesktopAnnotationController
::
onToolClicked
()
...
...
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