joachim99@81: /* This file is part of the KDiff3 project joachim99@81: joachim99@81: Copyright (C) 2008 Joachim Eibl joachim99@81: joachim99@81: This program is free software; you can redistribute it and/or joachim99@81: modify it under the terms of the GNU General Public joachim99@81: License as published by the Free Software Foundation; version 2 joachim99@81: of the License. joachim99@81: joachim99@81: This program is distributed in the hope that it will be useful, joachim99@81: but WITHOUT ANY WARRANTY; without even the implied warranty of joachim99@81: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU joachim99@81: General Public License for more details. joachim99@81: joachim99@81: You should have received a copy of the GNU General Public License joachim99@81: along with this program; see the file COPYING. If not, write to joachim99@81: the Free Software Foundation, Inc., 59 Temple Place - Suite 330, joachim99@81: Boston, MA 02111-1307, USA. joachim99@81: */ joachim99@81: joachim99@81: #ifndef _KDIFF3PLUGIN_H_ joachim99@81: #define _KDIFF3PLUGIN_H_ joachim99@81: joachim99@81: #include joachim99@81: #include joachim99@81: #include joachim99@81: joachim99@81: class QStringList; joachim99@81: joachim99@81: class KDiff3Plugin : public KonqPopupMenuPlugin joachim99@81: { joachim99@81: Q_OBJECT joachim99@81: public: joachim99@81: KDiff3Plugin (KonqPopupMenu *, const QStringList & list); joachim99@81: virtual ~KDiff3Plugin(); joachim99@81: // implement pure virtual method from KonqPopupMenuPlugin joachim99@81: virtual void setup( KActionCollection* actionCollection, const KonqPopupMenuInformation& popupMenuInfo, QMenu* menu ); joachim99@81: joachim99@81: private slots: joachim99@81: void slotCompareWith(); joachim99@81: void slotCompareTwoFiles(); joachim99@81: void slotCompareThreeFiles(); joachim99@81: void slotMergeWith(); joachim99@81: void slotMergeThreeWay(); joachim99@81: void slotSaveForLater(); joachim99@81: void slotClearList(); joachim99@81: void slotCompareWithHistoryItem(); joachim99@81: void slotAbout(); joachim99@81: joachim99@81: private: joachim99@81: QStringList m_list; joachim99@81: QWidget* m_pParentWidget; joachim99@81: KonqPopupMenu* m_pPopupMenu; joachim99@81: }; joachim99@81: #endif