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
715eb229
Commit
715eb229
authored
Jul 03, 2012
by
Claudio Valerio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed issue of windows on double screen
parent
ea9217ad
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
23 additions
and
53 deletions
+23
-53
UBBoardPaletteManager.cpp
src/board/UBBoardPaletteManager.cpp
+1
-1
UBApplication.cpp
src/core/UBApplication.cpp
+19
-19
UBDisplayManager.cpp
src/core/UBDisplayManager.cpp
+2
-0
UBDesktopAnnotationController.cpp
src/desktop/UBDesktopAnnotationController.cpp
+1
-31
UBWebController.cpp
src/web/UBWebController.cpp
+0
-1
UBWebController.h
src/web/UBWebController.h
+0
-1
No files found.
src/board/UBBoardPaletteManager.cpp
View file @
715eb229
...
...
@@ -775,7 +775,7 @@ void UBBoardPaletteManager::addItem(const QPixmap& pPixmap, const QPointF& pos,
mPos
=
pos
;
mScaleFactor
=
scaleFactor
;
QRect
controlGeo
=
UBApplication
::
applicationController
->
displayManager
()
->
controlGeometry
();
QRect
controlGeo
=
UBApplication
::
applicationController
->
displayManager
()
->
controlGeometry
();
mAddItemPalette
->
show
();
mAddItemPalette
->
adjustSizeAndPosition
();
...
...
src/core/UBApplication.cpp
View file @
715eb229
...
...
@@ -325,31 +325,31 @@ int UBApplication::exec(const QString& pFileToImport)
applicationController
->
showBoard
();
if
(
UBSettings
::
settings
()
->
appIsInSoftwareUpdateProcess
->
get
().
toBool
())
{
UBSettings
::
settings
()
->
appIsInSoftwareUpdateProcess
->
set
(
false
);
//
if (UBSettings::settings()->appIsInSoftwareUpdateProcess->get().toBool())
//
{
//
UBSettings::settings()->appIsInSoftwareUpdateProcess->set(false);
// clean potential updater in temp directory
UBFileSystemUtils
::
cleanupGhostTempFolders
();
//
// clean potential updater in temp directory
//
UBFileSystemUtils::cleanupGhostTempFolders();
QUuid
docUuid
(
UBSettings
::
settings
()
->
appLastSessionDocumentUUID
->
get
().
toString
());
//
QUuid docUuid( UBSettings::settings()->appLastSessionDocumentUUID->get().toString());
if
(
!
docUuid
.
isNull
())
{
UBDocumentProxy
*
proxy
=
UBPersistenceManager
::
persistenceManager
()
->
documentByUuid
(
docUuid
);
//
if (!docUuid.isNull())
//
{
//
UBDocumentProxy* proxy = UBPersistenceManager::persistenceManager()->documentByUuid(docUuid);
if
(
proxy
)
{
bool
ok
;
int
lastSceneIndex
=
UBSettings
::
settings
()
->
appLastSessionPageIndex
->
get
().
toInt
(
&
ok
);
//
if (proxy)
//
{
//
bool ok;
//
int lastSceneIndex = UBSettings::settings()->appLastSessionPageIndex->get().toInt(&ok);
if
(
!
ok
)
lastSceneIndex
=
0
;
//
if (!ok)
//
lastSceneIndex = 0;
boardController
->
setActiveDocumentScene
(
proxy
,
lastSceneIndex
);
}
}
}
//
boardController->setActiveDocumentScene(proxy, lastSceneIndex);
//
}
//
}
//
}
...
...
src/core/UBDisplayManager.cpp
View file @
715eb229
...
...
@@ -147,6 +147,8 @@ void UBDisplayManager::setDisplayWidget(QWidget* pDisplayWidget)
if
(
pDisplayWidget
&&
(
pDisplayWidget
!=
mDisplayWidget
))
{
mDisplayWidget
=
pDisplayWidget
;
mDisplayWidget
->
setGeometry
(
mDesktop
->
screenGeometry
(
mDisplayScreenIndex
));
mDisplayWidget
->
showFullScreen
();
// !!!! Should be included into Windows after QT recompilation
#ifdef Q_WS_MAC
// mDisplayWidget->setAttribute(Qt::WA_MacNoShadow);
...
...
src/desktop/UBDesktopAnnotationController.cpp
View file @
715eb229
...
...
@@ -69,7 +69,6 @@ UBDesktopAnnotationController::UBDesktopAnnotationController(QObject *parent)
mTransparentDrawingView
=
new
UBBoardView
(
UBApplication
::
boardController
,
0
);
// deleted in UBDesktopAnnotationController::destructor
mTransparentDrawingView
->
setAttribute
(
Qt
::
WA_TranslucentBackground
,
true
);
// !!!! Should be included into Windows after QT recompilation
#ifdef Q_WS_MAC
mTransparentDrawingView
->
setAttribute
(
Qt
::
WA_MacNoShadow
,
true
);
#endif
...
...
@@ -111,8 +110,7 @@ UBDesktopAnnotationController::UBDesktopAnnotationController(QObject *parent)
connect
(
mTransparentDrawingView
,
SIGNAL
(
resized
(
QResizeEvent
*
)),
this
,
SLOT
(
onTransparentWidgetResized
()));
connect
(
UBDrawingController
::
drawingController
(),
SIGNAL
(
stylusToolChanged
(
int
))
,
this
,
SLOT
(
stylusToolChanged
(
int
)));
connect
(
UBDrawingController
::
drawingController
(),
SIGNAL
(
stylusToolChanged
(
int
)),
this
,
SLOT
(
stylusToolChanged
(
int
)));
// Add the desktop associated palettes
mDesktopPenPalette
=
new
UBDesktopPenPalette
(
mTransparentDrawingView
);
...
...
@@ -147,39 +145,11 @@ UBDesktopAnnotationController::UBDesktopAnnotationController(QObject *parent)
#ifdef Q_WS_X11
connect
(
mDesktopPalette
,
SIGNAL
(
moving
()),
this
,
SLOT
(
refreshMask
()));
// connect(mRightPalette, SIGNAL(resized()), this, SLOT(refreshMask()));
connect
(
UBApplication
::
boardController
->
paletteManager
()
->
rightPalette
(),
SIGNAL
(
resized
()),
this
,
SLOT
(
refreshMask
()));
#endif
onDesktopPaletteMaximized
();
}
// void UBDesktopAnnotationController::showKeyboard(bool show)
// {
// #ifdef Q_WS_X11
// if (!mTransparentDrawingView->isVisible())
// return;
// #endif
//
// if(mKeyboardPalette)
// {
// if(show)
// UBDrawingController::drawingController()->setStylusTool(UBStylusTool::Selector);
// mKeyboardPalette->setVisible(show);
//
// #ifdef Q_WS_X11
// updateMask(true);
// #endif
//
// }
//
// }
// void UBDesktopAnnotationController::showKeyboard()
// {
// if (UBApplication::mainWindow->actionVirtualKeyboard->isChecked())
// mKeyboardPalette->show();
// }
UBDesktopAnnotationController
::~
UBDesktopAnnotationController
()
{
delete
mTransparentDrawingScene
;
...
...
src/web/UBWebController.cpp
View file @
715eb229
...
...
@@ -32,7 +32,6 @@
#include "network/UBNetworkAccessManager.h"
#include "gui/UBWidgetMirror.h"
#include "gui/UBScreenMirror.h"
#include "gui/UBMainWindow.h"
#include "gui/UBWebToolsPalette.h"
#include "gui/UBKeyboardPalette.h"
...
...
src/web/UBWebController.h
View file @
715eb229
...
...
@@ -23,7 +23,6 @@
class
WBBrowserWindow
;
class
UBApplication
;
class
UBScreenMirror
;
class
UBTrapFlashController
;
class
UBMainWindow
;
class
UBWebToolsPalette
;
...
...
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