File indexing completed on 2024-04-14 04:52:50

0001 /* This file is part of the KDE Project
0002     SPDX-FileCopyrightText: 2001 Kurt Granroth <granroth@kde.org>
0003     SPDX-FileCopyrightText: 2003 Rand 2342 <rand2342@yahoo.com>
0004 
0005     SPDX-License-Identifier: LGPL-2.0-only
0006 */
0007 #ifndef __plugin_babelfish_h
0008 #define __plugin_babelfish_h
0009 
0010 #include <konq_kpart_plugin.h>
0011 #include <kactionmenu.h>
0012 #include <QActionGroup>
0013 
0014 class PluginBabelFish : public KonqParts::Plugin
0015 {
0016     Q_OBJECT
0017 public:
0018     explicit PluginBabelFish(QObject *parent,
0019                              const QVariantList &);
0020     ~PluginBabelFish() override;
0021 
0022 private slots:
0023     void translateURL(QAction *);
0024     void slotAboutToShow();
0025     void slotEnableMenu();
0026 
0027 private:
0028     void addTopLevelAction(const QString &name, const QString &text);
0029 
0030 private:
0031     QActionGroup m_actionGroup;
0032     KActionMenu *m_menu;
0033 };
0034 
0035 #endif