-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRRM_Plugin.cpp
89 lines (75 loc) · 3.26 KB
/
RRM_Plugin.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/*****PLUGIN_IDENTITY_CLASS*****/
#include "tsdkplugininformation.h"
#include "tsdkpluginmenu.h"
#include "tsdkpluginmenutab.h"
#include "tsdkpluginmenugroup.h"
#include "tsdkpluginmenuaction.h"
#include "RRM_Plugin.h"
// Please include here your activity header files
/*****ACTIVITIES*INCLUDE*****/
using namespace Slb::Ocean::Techlog;
// Please declare action id for your plug-in activity with line like this:
/*****ACTION*ID*****/
// static QString actionId("Activity");
/// <summary>
/// Gets the static information about the plug-in
/// This method runs once in the plug-in life; when it loaded into the plug-in manager.
/// If some changes are applied to this method, you have to restart Techlog to see them in the plug-in manager.
/// </summary>
void RRM_Plugin::getInformation(PluginInformation& pluginInformation) const
{
pluginInformation.setVendorName(PLUGIN_VENDOR_NAME);
pluginInformation.setName(PLUGIN_NAME);
pluginInformation.setDescription("");
pluginInformation.setVersion(PLUGIN_VERSION);
pluginInformation.setReleaseDate("5/15/2020");
pluginInformation.setIcon(QIcon("ocean.png"));
pluginInformation.setCreator(PLUGIN_VENDOR_NAME);
pluginInformation.setSupportEmail("[email protected]");
pluginInformation.setCrashDumpEmail("[email protected]");
}
/// <summary>
/// Gets the list of activities of the plug-in
/// This method runs once in the plug-in life; when it loaded into the plug-in manager.
/// If some changes are applied to this method, you have to restart Techlog to see them in the plug-in manager.
/// A new activity type is added to the activity list using TSDK_ACTIVITY macro with the activity class name and an unique string identifier
/// </summary>
void RRM_Plugin::getActivities(Slb::Ocean::Techlog::PluginActivities& activities) const
{
// Please fill this method with your activities with lines like this:
// activities.add(TSDK_ACTIVITY(Activity, actionId));
/*****ACTIVITIES*REGISTRATION*PLACE*****/
}
/// <summary>
/// Gets the menu items (tab, group, action) used to start the plugin activities.
/// This method runs once in the plug-in life; when it loaded into the plug-in manager.
/// If some changes are applied to this method, you have to restart Techlog to see them in the plug-in manager.
/// </summary>
void RRM_Plugin::getMenu(PluginMenu& menu) const
{
// Create a new menu tab for the plug-in like this:
// PluginMenuTab tab("MyFirstPluginTab");
// tab.setTitle("My first plugin tab");
// Create a new menu group for the plug-in like this:
// PluginMenuGroup group("MyFirstPluginGroup");
// group.setTitle("My first plugin group");
// Create a new cation menu for a plug-in activity like this:
// PluginMenuAction actionMenu(actionId);
// actionMenu.setText("My first plugin activity");
// actionMenu.setTooltip("My first plugin activity");
// Add the action menu to the plug-in group
// group.addAction(actionMenu);
// Add the plug-in group to the plug-in tab
// tab.addGroup(group);
// Add the plug-in tab to the plug-in menu
// menu.addTab(tab);
/*****MENU_REGISTRATION*****/
}
QList<QSharedPointer<Slb::Ocean::Techlog::PluginService>> RRM_Plugin::services_impl() const
{
static QList<QSharedPointer<PluginService>> services;
if (!services.isEmpty())
return services;
// Register the Import/Export services
return services;
}