172
# include < QString >
181
classQTreeWidgetItem;
256
virtualQString
PluginLoad(QMainWindow *mw, QMenuBar *menubar, QStatusBar *statusbar,
IRoboDK*rdk,
constQString &settings=
""){
return
"";};
282
virtualQString
PluginCommand(
constQString &command,
constQString &value){
return
""; };
302Q_DECLARE_INTERFACE(
IAppRoboDK,
"RoboDK.IAppRoboDK")
Interface to RoboDK. Each plugin must implement this class to establish the interface to RoboDK....
virtual bool PluginItemClickMulti(QList< Item > &item_list, QMenu *menu, TypeClick click_type)
This function is called every time a new context menu is created for a list of items.
virtual bool PluginItemClick(Item item, QMenu *menu, TypeClick click_type)
This function is called every time a new context menu is created for an item.
virtual QString PluginLoad(QMainWindow *mw, QMenuBar *menubar, QStatusBar *statusbar, IRoboDK *rdk, const QString &settings="")
Load the plugin. This function is called only once when the plugin is loaded (or RoboDK is started wi...
virtual void PluginUnload()
This function is called once only when the plugin is being unloaded.
virtual void PluginLoadToolbar(QMainWindow *mw, int iconsize)
This function is called every time the toolbar is set up. This function is called at least once right...
TypeEvent
Event types for PluginEvent function.
@ EventAbout2ChangeStation
The current RoboDK station is about to loose focus because the user requested to open a new station (...
@ EventAbout2CloseStation
@ EventChangedStation
This event is triggered when we change the active station and a new station gains focus (IRoboDK::get...
@ EventMoved
Moved event: Something has moved, such as a robot, reference frame, object or tool....
virtual void PluginEvent(TypeEvent event_type)
每次调用这个函数有一个新的RoboDK event such as rendering the screen,...
virtual QString PluginName()=0
Return the plugin name. Try to be creative and make sure the name is unique.
virtual QString PluginCommand(const QString &command, const QString &value)
Specific commands can be passed from the RoboDK API. For example, a parent application can rely on a ...
TypeClick
Types of clicks for PluginItemClick function.
@ ClickRight
Right click.
@ ClickCtrlLeft
Ctrl Left click.
@ ClickDouble
Double click.
The Item class represents an item in RoboDK station. An item can be a robot, a frame,...
This class is the iterface to the RoboDK API. With the RoboDK API you can automate certain tasks and ...