void MouseGesturesPlugin::init(const QString &sPath) { Q_UNUSED(sPath) m_gestures = new MouseGestures(this); QZ_REGISTER_EVENT_HANDLER(PluginProxy::MousePressHandler); QZ_REGISTER_EVENT_HANDLER(PluginProxy::MouseReleaseHandler); QZ_REGISTER_EVENT_HANDLER(PluginProxy::MouseMoveHandler); }
void MouseGesturesPlugin::init(InitState state, const QString &settingsPath) { Q_UNUSED(state) m_gestures = new MouseGestures(settingsPath, this); QZ_REGISTER_EVENT_HANDLER(PluginProxy::MousePressHandler); QZ_REGISTER_EVENT_HANDLER(PluginProxy::MouseReleaseHandler); QZ_REGISTER_EVENT_HANDLER(PluginProxy::MouseMoveHandler); }
void CopyTitle::init(InitState state, const QString &settingsPath) { Q_UNUSED(state) Q_UNUSED(settingsPath) QZ_REGISTER_EVENT_HANDLER(PluginProxy::MousePressHandler); }
void AKN_Plugin::init(InitState state, const QString &sPath) { Q_UNUSED(state) m_handler = new AKN_Handler(sPath, this); QZ_REGISTER_EVENT_HANDLER(PluginProxy::KeyPressHandler); }
void PIM_Plugin::init(const QString &sPath) { m_handler = new PIM_Handler(sPath, this); QZ_REGISTER_EVENT_HANDLER(PluginProxy::KeyPressHandler); connect(mApp->plugins(), SIGNAL(webPageCreated(WebPage*)), m_handler, SLOT(webPageCreated(WebPage*))); }
void TestPlugin::init(const QString &sPath) { qDebug() << __FUNCTION__ << "called"; // This function is called right after plugin is loaded // it will be called even if we return false from testPlugin() // so it is recommended not to call any QupZilla function here // Settings path is PROFILE/extensions/, in this directory // you can use global .ini file for QSettings named "extensions.ini" // or create new folder for your plugin and save in it anything you want m_settingsPath = sPath; // Registering this plugin as a MousePressHandler. // Otherwise mousePress() function will never be called QZ_REGISTER_EVENT_HANDLER(PluginProxy::MousePressHandler); // Adding new sidebar into application SideBarManager::addSidebar("testplugin-sidebar", new TestPlugin_Sidebar(this)); }
void AKN_Plugin::init(const QString &sPath) { m_handler = new AKN_Handler(sPath, this); QZ_REGISTER_EVENT_HANDLER(PluginProxy::KeyPressHandler); }