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
532f9f6c
Commit
532f9f6c
authored
Oct 12, 2011
by
Claudio Valerio
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:Sankore/Sankore-3.1
parents
0850098a
0d8350e5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
62 additions
and
11 deletions
+62
-11
UBDocumentPublisher.cpp
src/adaptors/publishing/UBDocumentPublisher.cpp
+2
-1
UBGraphicsScene.cpp
src/domain/UBGraphicsScene.cpp
+10
-1
UBTrapFlashController.cpp
src/web/UBTrapFlashController.cpp
+47
-9
UBTrapFlashController.h
src/web/UBTrapFlashController.h
+3
-0
No files found.
src/adaptors/publishing/UBDocumentPublisher.cpp
View file @
532f9f6c
...
@@ -56,6 +56,7 @@ UBDocumentPublisher::UBDocumentPublisher(UBDocumentProxy* pDocument, QObject *pa
...
@@ -56,6 +56,7 @@ UBDocumentPublisher::UBDocumentPublisher(UBDocumentProxy* pDocument, QObject *pa
,
bLoginCookieSet
(
false
)
,
bLoginCookieSet
(
false
)
{
{
//NOOP
//NOOP
init
();
}
}
...
@@ -555,8 +556,8 @@ void UBDocumentPublisher::init()
...
@@ -555,8 +556,8 @@ void UBDocumentPublisher::init()
mDocInfos
.
title
=
""
;
mDocInfos
.
title
=
""
;
mDocInfos
.
description
=
""
;
mDocInfos
.
description
=
""
;
mpNetworkMgr
=
new
QNetworkAccessManager
(
this
);
mpCookieJar
=
new
QNetworkCookieJar
();
mpCookieJar
=
new
QNetworkCookieJar
();
mpNetworkMgr
=
new
QNetworkAccessManager
(
this
);
connect
(
mpNetworkMgr
,
SIGNAL
(
finished
(
QNetworkReply
*
)),
this
,
SLOT
(
onFinished
(
QNetworkReply
*
)));
connect
(
mpNetworkMgr
,
SIGNAL
(
finished
(
QNetworkReply
*
)),
this
,
SLOT
(
onFinished
(
QNetworkReply
*
)));
}
}
...
...
src/domain/UBGraphicsScene.cpp
View file @
532f9f6c
...
@@ -453,7 +453,16 @@ void UBGraphicsScene::DisposeMagnifierQWidgets()
...
@@ -453,7 +453,16 @@ void UBGraphicsScene::DisposeMagnifierQWidgets()
magniferDisplayViewWidget
=
NULL
;
magniferDisplayViewWidget
=
NULL
;
}
}
UBApplication
::
app
()
->
restoreOverrideCursor
();
// some time have crash here on access to app (when call from destructor when close sankore app)
// so i just add try/catch section here
try
{
UBApplication
::
app
()
->
restoreOverrideCursor
();
}
catch
(...)
{
}
}
}
void
UBGraphicsScene
::
moveTo
(
const
QPointF
&
pPoint
)
void
UBGraphicsScene
::
moveTo
(
const
QPointF
&
pPoint
)
...
...
src/web/UBTrapFlashController.cpp
View file @
532f9f6c
...
@@ -73,12 +73,50 @@ void UBTrapFlashController::showTrapFlash()
...
@@ -73,12 +73,50 @@ void UBTrapFlashController::showTrapFlash()
,
viewHeight
);
,
viewHeight
);
connect
(
mTrapFlashUi
->
flashCombobox
,
SIGNAL
(
currentIndexChanged
(
int
)),
this
,
SLOT
(
selectFlash
(
int
)));
connect
(
mTrapFlashUi
->
flashCombobox
,
SIGNAL
(
currentIndexChanged
(
int
)),
this
,
SLOT
(
selectFlash
(
int
)));
connect
(
mTrapFlashUi
->
widgetNameLineEdit
,
SIGNAL
(
textChanged
(
const
QString
&
)),
this
,
SLOT
(
text_Changed
(
const
QString
&
)));
connect
(
mTrapFlashUi
->
widgetNameLineEdit
,
SIGNAL
(
textEdited
(
const
QString
&
)),
this
,
SLOT
(
text_Edited
(
const
QString
&
)));
connect
(
mTrapFlashUi
->
createWidgetButton
,
SIGNAL
(
clicked
(
bool
)),
this
,
SLOT
(
createWidget
()));
connect
(
mTrapFlashUi
->
createWidgetButton
,
SIGNAL
(
clicked
(
bool
)),
this
,
SLOT
(
createWidget
()));
}
}
mTrapFlashDialog
->
show
();
mTrapFlashDialog
->
show
();
}
}
void
UBTrapFlashController
::
text_Changed
(
const
QString
&
newText
)
{
QString
new_text
=
newText
;
#ifdef Q_WS_WIN // Defined on Windows.
QString
illegalCharList
(
" < > :
\"
/
\\
| ? * "
);
QRegExp
regExp
(
"[<>:
\"
/
\\\\
|?*]"
);
#endif
#ifdef Q_WS_QWS // Defined on Qt for Embedded Linux.
QString
illegalCharList
(
" < > :
\"
/
\\
| ? * "
);
QRegExp
regExp
(
"[<>:
\"
/
\\\\
|?*]"
);
#endif
#ifdef Q_WS_MAC // Defined on Mac OS X.
QString
illegalCharList
(
" < > :
\"
/
\\
| ? * "
);
QRegExp
regExp
(
"[<>:
\"
/
\\\\
|?*]"
);
#endif
#ifdef Q_WS_X11 // Defined on X11.
QString
illegalCharList
(
" < > :
\"
/
\\
| ? * "
);
QRegExp
regExp
(
"[<>:
\"
/
\\\\
|?*]"
);
#endif
if
(
new_text
.
indexOf
(
regExp
)
>
-
1
)
{
new_text
.
remove
(
regExp
);
mTrapFlashUi
->
widgetNameLineEdit
->
setText
(
new_text
);
QToolTip
::
showText
(
mTrapFlashUi
->
widgetNameLineEdit
->
mapToGlobal
(
QPoint
()),
"Application name can`t contain any of the following characters:
\r\n
"
+
illegalCharList
);
}
}
void
UBTrapFlashController
::
text_Edited
(
const
QString
&
newText
)
{
}
void
UBTrapFlashController
::
hideTrapFlash
()
void
UBTrapFlashController
::
hideTrapFlash
()
{
{
...
@@ -281,15 +319,15 @@ QString UBTrapFlashController::generateFullPageHtml(const QString& pDirPath, boo
...
@@ -281,15 +319,15 @@ QString UBTrapFlashController::generateFullPageHtml(const QString& pDirPath, boo
QString
htmlContentString
;
QString
htmlContentString
;
htmlContentString
+=
"<!DOCTYPE HTML PUBLIC
\"
-//W3C//DTD HTML 4.01//EN
\"
\"
http://www.w3.org/TR/html4/strict.dtd
\"
>
\n
"
;
htmlContentString
+=
"<!DOCTYPE HTML PUBLIC
\"
-//W3C//DTD HTML 4.01//EN
\"
\"
http://www.w3.org/TR/html4/strict.dtd
\"
>
\
r\
n
"
;
htmlContentString
+=
"<html
>
\n
"
;
htmlContentString
+=
"<html
xmlns=
\"
http://www.w3.org/1999/xhtml
\"
>
\r
\n
"
;
htmlContentString
+=
"
<head>
\n
"
;
htmlContentString
+=
"
<head>
\r
\n
"
;
htmlContentString
+=
" <meta http-equiv=
\"
content-type
\"
content=
\"
text/html; charset=utf-8
\"
>
\n
"
;
htmlContentString
+=
" <meta http-equiv=
\"
refresh
\"
content=
\"
0; "
+
mCurrentWebFrame
->
url
().
toString
()
+
"
\"
>
\r
\n
"
;
htmlContentString
+=
"
</head>
\n
"
;
htmlContentString
+=
"
</head>
\r
\n
"
;
htmlContentString
+=
"
<frameset cols=
\"
100%
\"
>
\n
"
;
htmlContentString
+=
"
<body>
\r
\n
"
;
htmlContentString
+=
"
<frame src=
\"
"
+
mCurrentWebFrame
->
url
().
toString
()
+
"
\"
/>
\n
"
;
htmlContentString
+=
"
Redirect to target...
\r
\n
"
;
htmlContentString
+=
"
</frameset>
\n
"
;
htmlContentString
+=
"
</body>
\r
\n
"
;
htmlContentString
+=
"</html>
\n
"
;
htmlContentString
+=
"</html>
\
r\
n
"
;
if
(
!
pGenerateFile
)
if
(
!
pGenerateFile
)
{
{
...
...
src/web/UBTrapFlashController.h
View file @
532f9f6c
...
@@ -37,6 +37,9 @@ class UBTrapFlashController : public QObject
...
@@ -37,6 +37,9 @@ class UBTrapFlashController : public QObject
public
slots
:
public
slots
:
void
updateTrapFlashFromPage
(
QWebFrame
*
pCurrentWebFrame
);
void
updateTrapFlashFromPage
(
QWebFrame
*
pCurrentWebFrame
);
void
text_Changed
(
const
QString
&
);
void
text_Edited
(
const
QString
&
);
private
slots
:
private
slots
:
void
selectFlash
(
int
pFlashIndex
);
void
selectFlash
(
int
pFlashIndex
);
...
...
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