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
e4d3f14e
Commit
e4d3f14e
authored
Aug 26, 2015
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add option to wordwrap text
parent
b5348d89
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
28 additions
and
1 deletion
+28
-1
sieveeditormainwidget.cpp
sieveeditormainwidget.cpp
+11
-0
sieveeditormainwidget.h
sieveeditormainwidget.h
+1
-0
sieveeditormainwindow.cpp
sieveeditormainwindow.cpp
+6
-0
sieveeditormainwindow.h
sieveeditormainwindow.h
+1
-0
sieveeditorpagewidget.cpp
sieveeditorpagewidget.cpp
+5
-0
sieveeditorpagewidget.h
sieveeditorpagewidget.h
+1
-0
sieveeditorui.rc
sieveeditorui.rc
+3
-1
No files found.
sieveeditormainwidget.cpp
View file @
e4d3f14e
...
...
@@ -514,6 +514,17 @@ void SieveEditorMainWidget::slotZoomReset()
}
}
void
SieveEditorMainWidget
::
slotWordWrap
(
bool
state
)
{
QWidget
*
w
=
mTabWidget
->
currentWidget
();
if
(
w
)
{
SieveEditorPageWidget
*
page
=
qobject_cast
<
SieveEditorPageWidget
*>
(
w
);
if
(
page
)
{
page
->
wordWrap
(
state
);
}
}
}
void
SieveEditorMainWidget
::
slotGeneralPaletteChanged
()
{
const
QPalette
pal
=
palette
();
...
...
sieveeditormainwidget.h
View file @
e4d3f14e
...
...
@@ -80,6 +80,7 @@ public Q_SLOTS:
void
slotZoomIn
();
void
slotZoomOut
();
void
slotZoomReset
();
void
slotWordWrap
(
bool
);
Q_SIGNALS:
void
updateButtons
(
bool
newScriptAction
,
bool
editScriptAction
,
bool
deleteScriptAction
,
bool
desactivateScriptAction
);
...
...
sieveeditormainwindow.cpp
View file @
e4d3f14e
...
...
@@ -227,6 +227,12 @@ void SieveEditorMainWindow::setupActions()
mDebugSieveScriptAction
=
ac
->
addAction
(
QStringLiteral
(
"debug_sieve"
),
mMainWidget
->
sieveEditorMainWidget
(),
SLOT
(
slotDebugSieveScript
()));
mDebugSieveScriptAction
->
setText
(
i18n
(
"Debug Sieve Script..."
));
ac
->
setDefaultShortcut
(
mDebugSieveScriptAction
,
QKeySequence
(
Qt
::
CTRL
+
Qt
::
Key_D
));
mWrapTextAction
=
new
QAction
(
i18n
(
"Wordwarp"
),
this
);
mWrapTextAction
->
setCheckable
(
true
);
ac
->
addAction
(
QStringLiteral
(
"wordwrap"
),
mWrapTextAction
);
connect
(
mWrapTextAction
,
SIGNAL
(
triggered
(
bool
)),
mMainWidget
->
sieveEditorMainWidget
(),
SLOT
(
slotWordWrap
(
bool
)));
}
void
SieveEditorMainWindow
::
slotRefreshList
()
...
...
sieveeditormainwindow.h
View file @
e4d3f14e
...
...
@@ -95,6 +95,7 @@ private:
QAction
*
mZoomOutAction
;
QAction
*
mZoomResetAction
;
QAction
*
mDebugSieveScriptAction
;
QAction
*
mWrapTextAction
;
PimCommon
::
KActionMenuChangeCase
*
mMenuChangeCaseAction
;
QLabel
*
mStatusBarInfo
;
...
...
sieveeditorpagewidget.cpp
View file @
e4d3f14e
...
...
@@ -312,6 +312,11 @@ void SieveEditorPageWidget::zoomOut()
mSieveEditorWidget
->
zoomOut
();
}
void
SieveEditorPageWidget
::
wordWrap
(
bool
state
)
{
mSieveEditorWidget
->
wordWrap
(
state
);
}
void
SieveEditorPageWidget
::
zoomReset
()
{
mSieveEditorWidget
->
zoomReset
();
...
...
sieveeditorpagewidget.h
View file @
e4d3f14e
...
...
@@ -80,6 +80,7 @@ public:
void
openBookmarkUrl
(
const
QUrl
&
url
);
void
debugSieveScript
();
void
zoomReset
();
void
wordWrap
(
bool
state
);
Q_SIGNALS:
void
refreshList
();
void
scriptModified
(
bool
,
SieveEditorPageWidget
*
);
...
...
sieveeditorui.rc
View file @
e4d3f14e
<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
<kpartgui
name=
"sieveeditor"
version=
"1
4
"
>
<kpartgui
name=
"sieveeditor"
version=
"1
5
"
>
<MenuBar>
<Menu
name=
"file"
>
<Action
name=
"add_server_sieve"
/>
...
...
@@ -23,6 +23,8 @@
<Separator/>
<Action
name=
"gotoline"
/>
<Separator/>
<Action
name=
"wordwrap"
/>
<Separator/>
<Action
name=
"comment_code"
/>
<Action
name=
"uncomment_code"
/>
<Separator/>
...
...
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