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 Messagelib
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
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 Messagelib
Commits
f65657dc
Commit
f65657dc
authored
Dec 28, 2015
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve plugin interface
parent
071dde0f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
4 deletions
+32
-4
CMakeLists.txt
CMakeLists.txt
+1
-1
messagecomposer/src/plugineditor/plugineditorinterface.cpp
messagecomposer/src/plugineditor/plugineditorinterface.cpp
+26
-0
messagecomposer/src/plugineditor/plugineditorinterface.h
messagecomposer/src/plugineditor/plugineditorinterface.h
+4
-2
messagecomposer/src/plugineditor/plugineditormanager.cpp
messagecomposer/src/plugineditor/plugineditormanager.cpp
+1
-1
No files found.
CMakeLists.txt
View file @
f65657dc
...
...
@@ -18,7 +18,7 @@ include(KDEFrameworkCompilerSettings)
include
(
ECMQtDeclareLoggingCategory
)
include
(
ECMAddTests
)
set
(
MESSAGELIB_LIB_VERSION
"5.1.4
6
"
)
set
(
MESSAGELIB_LIB_VERSION
"5.1.4
7
"
)
set
(
KF5_VERSION
"5.17.0"
)
set
(
KDEPIMLIBS_LIB_VERSION
"5.1.42"
)
...
...
messagecomposer/src/plugineditor/plugineditorinterface.cpp
View file @
f65657dc
...
...
@@ -108,7 +108,33 @@ bool PluginEditorInterface::hasConfigureDialog() const
return
false
;
}
bool
MessageComposer
::
PluginEditorInterface
::
hasToolBarSupport
()
const
{
return
false
;
}
void
PluginEditorInterface
::
showConfigureDialog
(
QWidget
*
parentWidget
)
{
Q_UNUSED
(
parentWidget
);
}
QString
PluginEditorInterface
::
actionXmlExtension
(
ActionType
::
Type
type
)
{
switch
(
type
)
{
case
MessageComposer
::
ActionType
::
Tools
:
return
QStringLiteral
(
"_plugins_tools"
);
case
MessageComposer
::
ActionType
::
Edit
:
return
QStringLiteral
(
"_plugins_edit"
);
case
MessageComposer
::
ActionType
::
File
:
return
QStringLiteral
(
"_plugins_file"
);
case
MessageComposer
::
ActionType
::
Action
:
return
QStringLiteral
(
"_plugins_actions"
);
case
MessageComposer
::
ActionType
::
PopupMenu
:
return
QStringLiteral
(
"_popupmenu_actions"
);
case
MessageComposer
::
ActionType
::
ToolBar
:
return
QStringLiteral
(
"_toolbar_actions"
);
}
return
{};
}
messagecomposer/src/plugineditor/plugineditorinterface.h
View file @
f65657dc
...
...
@@ -38,7 +38,8 @@ public:
Edit
=
1
,
File
=
2
,
Action
=
3
,
PopupMenu
=
4
PopupMenu
=
4
,
ToolBar
=
5
};
ActionType
();
...
...
@@ -74,9 +75,10 @@ public:
virtual
bool
hasPopupMenuSupport
()
const
;
virtual
bool
hasConfigureDialog
()
const
;
virtual
bool
hasToolBarSupport
()
const
;
virtual
void
showConfigureDialog
(
QWidget
*
parentWidget
=
Q_NULLPTR
);
static
QString
actionXmlExtension
(
ActionType
::
Type
type
);
Q_SIGNALS:
void
emitPluginActivated
(
MessageComposer
::
PluginEditorInterface
*
interface
);
...
...
messagecomposer/src/plugineditor/plugineditormanager.cpp
View file @
f65657dc
...
...
@@ -20,6 +20,7 @@
#include <QFileInfo>
#include <QSet>
#include <QDebug>
#include <KPluginLoader>
#include <kpluginmetadata.h>
#include <KPluginFactory>
...
...
@@ -132,7 +133,6 @@ PluginEditorManager::PluginEditorManager(QObject *parent)
:
QObject
(
parent
),
d
(
new
MessageComposer
::
PluginEditorManagerPrivate
(
this
))
{
}
PluginEditorManager
::~
PluginEditorManager
()
...
...
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