Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
PIM Sieve Editor
Commits
3cc75197
Commit
3cc75197
authored
Feb 25, 2015
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow to call import/upload
parent
ca5738dd
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
0 deletions
+36
-0
sieveeditormainwidget.cpp
sieveeditormainwidget.cpp
+22
-0
sieveeditormainwidget.h
sieveeditormainwidget.h
+2
-0
sieveeditorpagewidget.cpp
sieveeditorpagewidget.cpp
+10
-0
sieveeditorpagewidget.h
sieveeditorpagewidget.h
+2
-0
No files found.
sieveeditormainwidget.cpp
View file @
3cc75197
...
@@ -304,6 +304,28 @@ void SieveEditorMainWidget::slotReplace()
...
@@ -304,6 +304,28 @@ void SieveEditorMainWidget::slotReplace()
}
}
}
}
void
SieveEditorMainWidget
::
slotShare
()
{
QWidget
*
w
=
mTabWidget
->
currentWidget
();
if
(
w
)
{
SieveEditorPageWidget
*
page
=
qobject_cast
<
SieveEditorPageWidget
*>
(
w
);
if
(
page
)
{
page
->
share
();
}
}
}
void
SieveEditorMainWidget
::
slotImport
()
{
QWidget
*
w
=
mTabWidget
->
currentWidget
();
if
(
w
)
{
SieveEditorPageWidget
*
page
=
qobject_cast
<
SieveEditorPageWidget
*>
(
w
);
if
(
page
)
{
page
->
import
();
}
}
}
void
SieveEditorMainWidget
::
slotCheckSpelling
()
void
SieveEditorMainWidget
::
slotCheckSpelling
()
{
{
QWidget
*
w
=
mTabWidget
->
currentWidget
();
QWidget
*
w
=
mTabWidget
->
currentWidget
();
...
...
sieveeditormainwidget.h
View file @
3cc75197
...
@@ -61,6 +61,8 @@ public Q_SLOTS:
...
@@ -61,6 +61,8 @@ public Q_SLOTS:
void
slotCut
();
void
slotCut
();
void
slotSaveAs
();
void
slotSaveAs
();
void
slotCheckSpelling
();
void
slotCheckSpelling
();
void
slotShare
();
void
slotImport
();
Q_SIGNALS:
Q_SIGNALS:
void
updateButtons
(
bool
newScriptAction
,
bool
editScriptAction
,
bool
deleteScriptAction
,
bool
desactivateScriptAction
);
void
updateButtons
(
bool
newScriptAction
,
bool
editScriptAction
,
bool
deleteScriptAction
,
bool
desactivateScriptAction
);
...
...
sieveeditorpagewidget.cpp
View file @
3cc75197
...
@@ -206,6 +206,16 @@ void SieveEditorPageWidget::replace()
...
@@ -206,6 +206,16 @@ void SieveEditorPageWidget::replace()
mSieveEditorWidget
->
replace
();
mSieveEditorWidget
->
replace
();
}
}
void
SieveEditorPageWidget
::
share
()
{
mSieveEditorWidget
->
slotUploadScripts
();
}
void
SieveEditorPageWidget
::
import
()
{
mSieveEditorWidget
->
slotImport
();
}
void
SieveEditorPageWidget
::
checkSpelling
()
void
SieveEditorPageWidget
::
checkSpelling
()
{
{
mSieveEditorWidget
->
checkSpelling
();
mSieveEditorWidget
->
checkSpelling
();
...
...
sieveeditorpagewidget.h
View file @
3cc75197
...
@@ -61,6 +61,8 @@ public:
...
@@ -61,6 +61,8 @@ public:
void
selectAll
();
void
selectAll
();
void
saveAs
();
void
saveAs
();
void
checkSpelling
();
void
checkSpelling
();
void
share
();
void
import
();
Q_SIGNALS:
Q_SIGNALS:
void
refreshList
();
void
refreshList
();
void
scriptModified
(
bool
,
SieveEditorPageWidget
*
);
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