40 lines
802 B
C++
40 lines
802 B
C++
#include "stdafx.h"
|
|
#include "TestCallback.h"
|
|
|
|
#include "TestKeyboardShortcuts.h"
|
|
|
|
|
|
#include "TestMenu.h"
|
|
|
|
//static plugin interface that allow direct communication with Virtools Dev
|
|
PluginInterface* s_Plugininterface = NULL;
|
|
|
|
|
|
//main plugin callback for Virtools Dev
|
|
void PluginCallback(PluginInfo::CALLBACK_REASON reason,PluginInterface* plugininterface)
|
|
{
|
|
switch(reason)
|
|
{
|
|
case PluginInfo::CR_LOAD:
|
|
{
|
|
s_Plugininterface = plugininterface;
|
|
InitMenu();
|
|
UpdateMenu();
|
|
RegisterKeyboardShortcutCategory();
|
|
RegisterKeyboardShortcuts();
|
|
}break;
|
|
case PluginInfo::CR_UNLOAD:
|
|
{
|
|
RemoveMenu();
|
|
UnregisterKeyboardShortcutCategory();
|
|
s_Plugininterface = NULL;
|
|
}break;
|
|
case PluginInfo::CR_NEWCOMPOSITIONNAME:
|
|
{
|
|
}break;
|
|
case PluginInfo::CR_NOTIFICATION:
|
|
{
|
|
}break;
|
|
}
|
|
}
|