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
e304b03f
Commit
e304b03f
authored
Mar 16, 2012
by
Anatoly Mihalchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SANKORE-69
Launch Sankore on desktop mode
parent
48bce1d8
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
1160 additions
and
1056 deletions
+1160
-1056
preferences.ui
resources/forms/preferences.ui
+1128
-1046
UBBoardController.cpp
src/board/UBBoardController.cpp
+8
-6
UBApplication.cpp
src/core/UBApplication.cpp
+3
-0
UBApplicationController.cpp
src/core/UBApplicationController.cpp
+3
-2
UBDisplayManager.cpp
src/core/UBDisplayManager.cpp
+3
-1
UBDisplayManager.h
src/core/UBDisplayManager.h
+1
-1
UBPreferencesController.cpp
src/core/UBPreferencesController.cpp
+10
-0
UBSettings.cpp
src/core/UBSettings.cpp
+2
-0
UBSettings.h
src/core/UBSettings.h
+2
-0
No files found.
resources/forms/preferences.ui
View file @
e304b03f
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/board/UBBoardController.cpp
View file @
e304b03f
...
...
@@ -365,7 +365,7 @@ void UBBoardController::connectToolbar()
void
UBBoardController
::
startScript
()
{
freezeW3CWidgets
(
tru
e
);
freezeW3CWidgets
(
fals
e
);
}
void
UBBoardController
::
stopScript
()
...
...
@@ -453,6 +453,7 @@ void UBBoardController::addScene()
setActiveDocumentScene
(
mActiveDocument
,
mActiveSceneIndex
+
1
);
QApplication
::
restoreOverrideCursor
();
centerOn
();
}
...
...
@@ -2162,13 +2163,14 @@ void UBBoardController::freezeW3CWidget(QGraphicsItem *item, bool freeze)
{
if
(
item
->
type
()
==
UBGraphicsW3CWidgetItem
::
Type
)
{
QString
scriptString
;
if
(
freeze
)
scriptString
=
"setfreezed(true);"
;
else
scriptString
=
"setfreezed(false);"
;
UBGraphicsW3CWidgetItem
*
item_casted
=
dynamic_cast
<
UBGraphicsW3CWidgetItem
*>
(
item
);
if
(
0
==
item_casted
)
return
;
if
(
freeze
)
{
item_casted
->
widgetWebView
()
->
page
()
->
mainFrame
()
->
setContent
(
UBW3CWidget
::
freezedWidgetPage
().
toAscii
());
}
else
item_casted
->
widgetWebView
()
->
loadMainHtml
();
item_casted
->
widgetWebView
()
->
page
()
->
mainFrame
()
->
evaluateJavaScript
(
scriptString
);
}
}
src/core/UBApplication.cpp
View file @
e304b03f
...
...
@@ -310,6 +310,9 @@ int UBApplication::exec(const QString& pFileToImport)
static
AEEventHandlerUPP
ub_proc_ae_handlerUPP
=
AEEventHandlerUPP
(
ub_appleEventProcessor
);
AEInstallEventHandler
(
kCoreEventClass
,
kAEReopenApplication
,
ub_proc_ae_handlerUPP
,
SRefCon
(
UBApplication
::
applicationController
),
true
);
#endif
if
(
UBSettings
::
settings
()
->
appStartMode
->
get
()
==
"Desktop"
)
applicationController
->
showDesktop
();
else
applicationController
->
showBoard
();
if
(
UBSettings
::
settings
()
->
appIsInSoftwareUpdateProcess
->
get
().
toBool
())
...
...
src/core/UBApplicationController.cpp
View file @
e304b03f
...
...
@@ -137,7 +137,7 @@ void UBApplicationController::initViewState(int horizontalPosition, int vertical
void
UBApplicationController
::
initScreenLayout
()
{
mDisplayManager
->
setAsControl
(
mMainWindow
);
mDisplayManager
->
setAsControl
(
mMainWindow
,
true
);
mDisplayManager
->
setAsDisplay
(
mDisplayView
);
mDisplayManager
->
setAsPreviousDisplays
(
mPreviousViews
);
...
...
@@ -352,7 +352,8 @@ void UBApplicationController::showBoard()
UBPlatformUtils
::
setDesktopMode
(
false
);
mUninoteController
->
hideWindow
();
mMainWindow
->
show
();
mDisplayManager
->
adjustScreens
(
0
);
emit
mainModeChanged
(
Board
);
}
...
...
src/core/UBDisplayManager.cpp
View file @
e304b03f
...
...
@@ -118,13 +118,15 @@ int UBDisplayManager::numPreviousViews()
}
void
UBDisplayManager
::
setAsControl
(
QWidget
*
pControlWidget
)
void
UBDisplayManager
::
setAsControl
(
QWidget
*
pControlWidget
,
bool
init
)
{
if
(
hasControl
()
&&
pControlWidget
&&
(
pControlWidget
!=
mControlWidget
))
{
mControlWidget
=
pControlWidget
;
mControlWidget
->
hide
();
mControlWidget
->
setGeometry
(
mDesktop
->
screenGeometry
(
mControlScreenIndex
));
if
(
!
init
)
mControlWidget
->
showFullScreen
();
// !!!! Should be included into Windows after QT recompilation
#ifdef Q_WS_MAC
...
...
src/core/UBDisplayManager.h
View file @
e304b03f
...
...
@@ -33,7 +33,7 @@ class UBDisplayManager : public QObject
int
numPreviousViews
();
void
setAsControl
(
QWidget
*
pControlWidget
);
void
setAsControl
(
QWidget
*
pControlWidget
,
bool
init
=
false
);
void
setAsDisplay
(
QWidget
*
pDisplayWidget
);
...
...
src/core/UBPreferencesController.cpp
View file @
e304b03f
...
...
@@ -112,6 +112,7 @@ void UBPreferencesController::wire()
connect
(
mPreferencesUI
->
keyboardPaletteKeyButtonSize
,
SIGNAL
(
currentIndexChanged
(
const
QString
&
)),
settings
->
boardKeyboardPaletteKeyBtnSize
,
SLOT
(
setString
(
const
QString
&
)));
connect
(
mPreferencesUI
->
startModeComboBox
,
SIGNAL
(
currentIndexChanged
(
const
QString
&
)),
settings
->
appStartMode
,
SLOT
(
setString
(
const
QString
&
)));
connect
(
mPreferencesUI
->
useExternalBrowserCheckBox
,
SIGNAL
(
clicked
(
bool
)),
settings
->
webUseExternalBrowser
,
SLOT
(
setBool
(
bool
)));
...
...
@@ -180,6 +181,14 @@ void UBPreferencesController::init()
break
;
}
for
(
int
i
=
0
;
i
<
mPreferencesUI
->
startModeComboBox
->
count
();
i
++
)
if
(
mPreferencesUI
->
startModeComboBox
->
itemText
(
i
)
==
settings
->
appStartMode
->
get
().
toString
())
{
mPreferencesUI
->
startModeComboBox
->
setCurrentIndex
(
i
);
break
;
}
mPreferencesUI
->
useExternalBrowserCheckBox
->
setChecked
(
settings
->
webUseExternalBrowser
->
get
().
toBool
());
mPreferencesUI
->
displayBrowserPageCheckBox
->
setChecked
(
settings
->
webShowPageImmediatelyOnMirroredScreen
->
get
().
toBool
());
mPreferencesUI
->
webHomePage
->
setText
(
settings
->
webHomePage
->
get
().
toString
());
...
...
@@ -293,6 +302,7 @@ void UBPreferencesController::defaultSettings()
mPreferencesUI
->
toolbarDisplayTextCheckBox
->
setChecked
(
defaultValue
);
mPreferencesUI
->
verticalChoice
->
setChecked
(
settings
->
appToolBarOrientationVertical
->
reset
().
toBool
());
mPreferencesUI
->
horizontalChoice
->
setChecked
(
!
settings
->
appToolBarOrientationVertical
->
reset
().
toBool
());
mPreferencesUI
->
startModeComboBox
->
setCurrentIndex
(
0
);
}
else
if
(
mPreferencesUI
->
mainTabWidget
->
currentWidget
()
==
mPreferencesUI
->
penTab
)
{
...
...
src/core/UBSettings.cpp
View file @
e304b03f
...
...
@@ -212,6 +212,8 @@ void UBSettings::init()
appLastSessionPageIndex
=
new
UBSetting
(
this
,
"App"
,
"LastSessionPageIndex"
,
0
);
appUseMultiscreen
=
new
UBSetting
(
this
,
"App"
,
"UseMusliscreenMode"
,
true
);
appStartMode
=
new
UBSetting
(
this
,
"App"
,
"StartMode"
,
""
);
boardPenFineWidth
=
new
UBSetting
(
this
,
"Board"
,
"PenFineWidth"
,
1.5
);
boardPenMediumWidth
=
new
UBSetting
(
this
,
"Board"
,
"PenMediumWidth"
,
3.0
);
boardPenStrongWidth
=
new
UBSetting
(
this
,
"Board"
,
"PenStrongWidth"
,
8.0
);
...
...
src/core/UBSettings.h
View file @
e304b03f
...
...
@@ -229,6 +229,8 @@ class UBSettings : public QObject
UBSetting
*
boardKeyboardPaletteKeyBtnSize
;
UBSetting
*
appStartMode
;
UBColorListSetting
*
boardPenLightBackgroundColors
;
UBColorListSetting
*
boardPenLightBackgroundSelectedColors
;
...
...
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