Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
PIM Sieve Editor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PIM
PIM Sieve Editor
Commits
72192b04
Commit
72192b04
authored
May 18, 2016
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable action when we can't use it in html page
parent
1be34bff
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
23 additions
and
4 deletions
+23
-4
CMakeLists.txt
CMakeLists.txt
+1
-1
src/sieveeditormainwidget.cpp
src/sieveeditormainwidget.cpp
+12
-0
src/sieveeditormainwidget.h
src/sieveeditormainwidget.h
+1
-0
src/sieveeditormainwindow.cpp
src/sieveeditormainwindow.cpp
+1
-1
src/sieveeditorpagewidget.cpp
src/sieveeditorpagewidget.cpp
+6
-1
src/sieveeditorpagewidget.h
src/sieveeditorpagewidget.h
+2
-1
No files found.
CMakeLists.txt
View file @
72192b04
...
...
@@ -36,7 +36,7 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${sieveeditor_SOURCE_DIR})
set
(
MESSAGELIB_LIB_VERSION_LIB
"5.2.64"
)
set
(
PIMCOMMON_LIB_VERSION_LIB
"5.2.40"
)
set
(
LIBKSIEVE_LIB_VERSION_LIB
"5.2.4
3
"
)
set
(
LIBKSIEVE_LIB_VERSION_LIB
"5.2.4
4
"
)
set
(
QT_REQUIRED_VERSION
"5.6.0"
)
find_package
(
Qt5
${
QT_REQUIRED_VERSION
}
CONFIG REQUIRED Widgets Network Test
)
...
...
src/sieveeditormainwidget.cpp
View file @
72192b04
...
...
@@ -663,3 +663,15 @@ bool SieveEditorMainWidget::printSupportEnabled() const
}
return
false
;
}
bool
SieveEditorMainWidget
::
isTextEditor
()
const
{
QWidget
*
w
=
mTabWidget
->
currentWidget
();
if
(
w
)
{
SieveEditorPageWidget
*
page
=
qobject_cast
<
SieveEditorPageWidget
*>
(
w
);
if
(
page
)
{
return
page
->
isTextEditor
();
}
}
return
false
;
}
src/sieveeditormainwidget.h
View file @
72192b04
...
...
@@ -58,6 +58,7 @@ public:
QUrl
currentHelpUrl
()
const
;
void
openBookmarkUrl
(
const
QUrl
&
url
);
bool
printSupportEnabled
()
const
;
bool
isTextEditor
()
const
;
public
Q_SLOTS
:
void
slotDebugSieveScript
();
void
slotGoToLine
();
...
...
src/sieveeditormainwindow.cpp
View file @
72192b04
...
...
@@ -307,7 +307,7 @@ void SieveEditorMainWindow::slotUpdateActions()
{
const
bool
hasPage
=
(
mMainWidget
->
sieveEditorMainWidget
()
->
tabWidget
()
->
count
()
>
0
);
mUploadScript
->
setEnabled
(
hasPage
);
const
bool
editActionEnabled
=
(
hasPage
&&
mMainWidget
->
sieveEditorMainWidget
()
->
pageMode
()
==
KSieveUi
::
SieveEditorWidget
::
TextMode
);
const
bool
editActionEnabled
=
(
hasPage
&&
mMainWidget
->
sieveEditorMainWidget
()
->
isTextEditor
()
);
mGoToLine
->
setEnabled
(
editActionEnabled
);
mFindAction
->
setEnabled
(
editActionEnabled
);
mReplaceAction
->
setEnabled
(
editActionEnabled
);
...
...
src/sieveeditorpagewidget.cpp
View file @
72192b04
...
...
@@ -334,11 +334,16 @@ void SieveEditorPageWidget::printPreview()
mSieveEditorWidget
->
printPreview
();
}
bool
SieveEditorPageWidget
::
printSupportEnabled
()
bool
SieveEditorPageWidget
::
printSupportEnabled
()
const
{
return
mSieveEditorWidget
->
printSupportEnabled
();
}
bool
SieveEditorPageWidget
::
isTextEditor
()
const
{
return
mSieveEditorWidget
->
isTextEditor
();
}
void
SieveEditorPageWidget
::
zoomReset
()
{
mSieveEditorWidget
->
zoomReset
();
...
...
src/sieveeditorpagewidget.h
View file @
72192b04
...
...
@@ -84,7 +84,8 @@ public:
bool
isWordWrap
()
const
;
void
print
();
void
printPreview
();
bool
printSupportEnabled
();
bool
printSupportEnabled
()
const
;
bool
isTextEditor
()
const
;
Q_SIGNALS:
void
refreshList
();
void
scriptModified
(
bool
,
SieveEditorPageWidget
*
);
...
...
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