Commit 36c5b1c8 authored by Laurent Montel's avatar Laurent Montel 😁

prepare implement debug sieve script (for the future)

parent 33e1508f
......@@ -402,6 +402,17 @@ void SieveEditorMainWidget::slotReverseCase()
}
}
void SieveEditorMainWidget::slotDebugSieveScript()
{
QWidget *w = mTabWidget->currentWidget();
if (w) {
SieveEditorPageWidget *page = qobject_cast<SieveEditorPageWidget *>(w);
if (page) {
page->debugSieveScript();
}
}
}
void SieveEditorMainWidget::slotUpperCase()
{
QWidget *w = mTabWidget->currentWidget();
......
......@@ -55,6 +55,7 @@ public:
QUrl currentHelpUrl() const;
void openBookmarkUrl(const QUrl &url);
public Q_SLOTS:
void slotDebugSieveScript();
void slotGoToLine();
void slotReplace();
......
......@@ -258,6 +258,11 @@ void SieveEditorPageWidget::lowerCase()
mSieveEditorWidget->lowerCase();
}
void SieveEditorPageWidget::debugSieveScript()
{
mSieveEditorWidget->debugSieveScript();
}
void SieveEditorPageWidget::upperCase()
{
mSieveEditorWidget->upperCase();
......
......@@ -78,6 +78,7 @@ public:
QString currentHelpTitle() const;
QUrl currentHelpUrl() const;
void openBookmarkUrl(const QUrl &url);
void debugSieveScript();
Q_SIGNALS:
void refreshList();
void scriptModified(bool, SieveEditorPageWidget *);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment