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
4a051f2a
Commit
4a051f2a
authored
Jan 27, 2012
by
Ivan Ilin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
linux hotfix
6bbecff5
SANKORE-329 Visibility of palette based on children elements
parent
6bbecff5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
6 deletions
+23
-6
UBBoardPaletteManager.cpp
src/board/UBBoardPaletteManager.cpp
+3
-3
UBDesktopAnnotationController.cpp
src/desktop/UBDesktopAnnotationController.cpp
+18
-1
UBDockPaletteWidget.h
src/gui/UBDockPaletteWidget.h
+1
-1
UBTeacherBarWidget.h
src/gui/UBTeacherBarWidget.h
+1
-1
No files found.
src/board/UBBoardPaletteManager.cpp
View file @
4a051f2a
...
@@ -692,7 +692,7 @@ void UBBoardPaletteManager::changeMode(eUBDockPaletteWidgetMode newMode, bool is
...
@@ -692,7 +692,7 @@ void UBBoardPaletteManager::changeMode(eUBDockPaletteWidgetMode newMode, bool is
{
{
case
eUBDockPaletteWidget_BOARD
:
case
eUBDockPaletteWidget_BOARD
:
{
{
mLeftPalette
->
set
Parent
(
UBApplication
::
boardController
->
controlContainer
());
mLeftPalette
->
assign
Parent
(
UBApplication
::
boardController
->
controlContainer
());
mRightPalette
->
assignParent
(
UBApplication
::
boardController
->
controlContainer
());
mRightPalette
->
assignParent
(
UBApplication
::
boardController
->
controlContainer
());
if
(
UBPlatformUtils
::
hasVirtualKeyboard
()
&&
mKeyboardPalette
!=
NULL
)
if
(
UBPlatformUtils
::
hasVirtualKeyboard
()
&&
mKeyboardPalette
!=
NULL
)
{
{
...
@@ -721,7 +721,7 @@ void UBBoardPaletteManager::changeMode(eUBDockPaletteWidgetMode newMode, bool is
...
@@ -721,7 +721,7 @@ void UBBoardPaletteManager::changeMode(eUBDockPaletteWidgetMode newMode, bool is
case
eUBDockPaletteWidget_DESKTOP
:
case
eUBDockPaletteWidget_DESKTOP
:
{
{
mLeftPalette
->
set
Parent
((
QWidget
*
)
UBApplication
::
applicationController
->
uninotesController
()
->
drawingView
());
mLeftPalette
->
assign
Parent
((
QWidget
*
)
UBApplication
::
applicationController
->
uninotesController
()
->
drawingView
());
mRightPalette
->
assignParent
((
QWidget
*
)
UBApplication
::
applicationController
->
uninotesController
()
->
drawingView
());
mRightPalette
->
assignParent
((
QWidget
*
)
UBApplication
::
applicationController
->
uninotesController
()
->
drawingView
());
if
(
UBPlatformUtils
::
hasVirtualKeyboard
()
&&
mKeyboardPalette
!=
NULL
)
if
(
UBPlatformUtils
::
hasVirtualKeyboard
()
&&
mKeyboardPalette
!=
NULL
)
{
{
...
@@ -775,7 +775,7 @@ void UBBoardPaletteManager::changeMode(eUBDockPaletteWidgetMode newMode, bool is
...
@@ -775,7 +775,7 @@ void UBBoardPaletteManager::changeMode(eUBDockPaletteWidgetMode newMode, bool is
{
{
mLeftPalette
->
setVisible
(
leftPaletteVisible
);
mLeftPalette
->
setVisible
(
leftPaletteVisible
);
mRightPalette
->
setVisible
(
rightPaletteVisible
);
mRightPalette
->
setVisible
(
rightPaletteVisible
);
mLeftPalette
->
set
Parent
(
0
);
mLeftPalette
->
assign
Parent
(
0
);
mRightPalette
->
assignParent
(
0
);
mRightPalette
->
assignParent
(
0
);
if
(
UBPlatformUtils
::
hasVirtualKeyboard
()
&&
mKeyboardPalette
!=
NULL
)
if
(
UBPlatformUtils
::
hasVirtualKeyboard
()
&&
mKeyboardPalette
!=
NULL
)
{
{
...
...
src/desktop/UBDesktopAnnotationController.cpp
View file @
4a051f2a
...
@@ -888,12 +888,16 @@ void UBDesktopAnnotationController::TransparentWidgetResized()
...
@@ -888,12 +888,16 @@ void UBDesktopAnnotationController::TransparentWidgetResized()
void
UBDesktopAnnotationController
::
onTransparentWidgetResized
()
void
UBDesktopAnnotationController
::
onTransparentWidgetResized
()
{
{
int
rW
=
UBApplication
::
boardController
->
paletteManager
()
->
rightPalette
()
->
width
();
int
rW
=
UBApplication
::
boardController
->
paletteManager
()
->
rightPalette
()
->
width
();
int
rH_
=
UBApplication
::
boardController
->
paletteManager
()
->
rightPalette
()
->
height
();
int
lW
=
UBApplication
::
boardController
->
paletteManager
()
->
leftPalette
()
->
width
();
int
rH
=
mTransparentDrawingView
->
height
();
int
rH
=
mTransparentDrawingView
->
height
();
UBApplication
::
boardController
->
paletteManager
()
->
rightPalette
()
->
resize
(
rW
+
1
,
rH
);
UBApplication
::
boardController
->
paletteManager
()
->
rightPalette
()
->
resize
(
rW
+
1
,
rH
);
UBApplication
::
boardController
->
paletteManager
()
->
rightPalette
()
->
resize
(
rW
,
rH
);
UBApplication
::
boardController
->
paletteManager
()
->
rightPalette
()
->
resize
(
rW
,
rH
);
UBApplication
::
boardController
->
paletteManager
()
->
leftPalette
()
->
resize
(
lW
+
1
,
rH
);
UBApplication
::
boardController
->
paletteManager
()
->
leftPalette
()
->
resize
(
lW
,
rH
);
// mRightPalette->resize(mRightPalette->width(), mTransparentDrawingView->height());
// mRightPalette->resize(mRightPalette->width(), mTransparentDrawingView->height());
}
}
...
@@ -923,6 +927,19 @@ void UBDesktopAnnotationController::updateMask(bool bTransparent)
...
@@ -923,6 +927,19 @@ void UBDesktopAnnotationController::updateMask(bool bTransparent)
UBApplication
::
boardController
->
paletteManager
()
->
mKeyboardPalette
->
width
(),
UBApplication
::
boardController
->
paletteManager
()
->
mKeyboardPalette
->
height
());
UBApplication
::
boardController
->
paletteManager
()
->
mKeyboardPalette
->
width
(),
UBApplication
::
boardController
->
paletteManager
()
->
mKeyboardPalette
->
height
());
}
}
if
(
UBApplication
::
boardController
->
paletteManager
()
->
leftPalette
()
->
isVisible
())
{
QRect
leftPalette
(
UBApplication
::
boardController
->
paletteManager
()
->
leftPalette
()
->
geometry
().
x
(),
UBApplication
::
boardController
->
paletteManager
()
->
leftPalette
()
->
geometry
().
y
(),
UBApplication
::
boardController
->
paletteManager
()
->
leftPalette
()
->
width
(),
UBApplication
::
boardController
->
paletteManager
()
->
leftPalette
()
->
height
());
QRect
tabsPalette
(
UBApplication
::
boardController
->
paletteManager
()
->
leftPalette
()
->
getTabPaletteRect
());
p
.
drawRect
(
leftPalette
);
p
.
drawRect
(
tabsPalette
);
}
if
(
UBApplication
::
boardController
->
paletteManager
()
->
rightPalette
()
->
isVisible
())
if
(
UBApplication
::
boardController
->
paletteManager
()
->
rightPalette
()
->
isVisible
())
{
{
QRect
rightPalette
(
UBApplication
::
boardController
->
paletteManager
()
->
rightPalette
()
->
geometry
().
x
(),
QRect
rightPalette
(
UBApplication
::
boardController
->
paletteManager
()
->
rightPalette
()
->
geometry
().
x
(),
...
...
src/gui/UBDockPaletteWidget.h
View file @
4a051f2a
...
@@ -25,7 +25,7 @@ public:
...
@@ -25,7 +25,7 @@ public:
QPixmap
iconToLeft
();
QPixmap
iconToLeft
();
QString
name
();
QString
name
();
virtual
bool
visibleInMode
(
eUBDockPaletteWidgetMode
mode
)
=
NULL
;
virtual
bool
visibleInMode
(
eUBDockPaletteWidgetMode
mode
)
=
0
;
bool
visibleState
(){
return
mVisibleState
;}
bool
visibleState
(){
return
mVisibleState
;}
void
setVisibleState
(
bool
state
){
mVisibleState
=
state
;}
void
setVisibleState
(
bool
state
){
mVisibleState
=
state
;}
...
...
src/gui/UBTeacherBarWidget.h
View file @
4a051f2a
...
@@ -48,7 +48,7 @@ public:
...
@@ -48,7 +48,7 @@ public:
bool
visibleInMode
(
eUBDockPaletteWidgetMode
mode
)
bool
visibleInMode
(
eUBDockPaletteWidgetMode
mode
)
{
{
return
mode
==
eUBDockPaletteWidget_BOARD
;
return
(
mode
==
eUBDockPaletteWidget_BOARD
)
||
(
mode
==
eUBDockPaletteWidget_DESKTOP
)
;
}
}
public
slots
:
public
slots
:
...
...
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