katemwmodonhddialog.h
00001 /* 00002 This library is free software; you can redistribute it and/or 00003 modify it under the terms of the GNU Library General Public 00004 License version 2 as published by the Free Software Foundation. 00005 00006 This library is distributed in the hope that it will be useful, 00007 but WITHOUT ANY WARRANTY; without even the implied warranty of 00008 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00009 Library General Public License for more details. 00010 00011 You should have received a copy of the GNU Library General Public License 00012 along with this library; see the file COPYING.LIB. If not, write to 00013 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00014 Boston, MA 02110-1301, USA. 00015 00016 --- 00017 Copyright (C) 2004, Anders Lund <anders@alweb.dk> 00018 */ 00019 00020 #ifndef _KATE_MW_MODONHD_DIALOG_H_ 00021 #define _KATE_MW_MODONHD_DIALOG_H_ 00022 00023 #include <kdialogbase.h> 00024 #include <tqptrvector.h> 00025 #include <kate/document.h> 00026 00027 typedef TQPtrVector<Kate::Document> DocVector; 00028 class KProcIO; 00029 class TDEProcess; 00034 class KateMwModOnHdDialog : public KDialogBase 00035 { 00036 Q_OBJECT 00037 public: 00038 KateMwModOnHdDialog( DocVector docs, TQWidget *parent=0, const char *name=0 ); 00039 ~KateMwModOnHdDialog(); 00040 00041 protected slots: 00042 void slotUser1(); 00043 void slotUser2(); 00044 void slotUser3(); 00045 00046 private slots: 00047 void slotDiff(); 00048 void slotSelectionChanged(); 00049 void slotPRead(KProcIO*); 00050 void slotPDone(TDEProcess*); 00051 00052 private: 00053 enum Action { Ignore, Overwrite, Reload }; 00054 void handleSelected( int action ); 00055 class TDEListView *lvDocuments; 00056 class TQPushButton *btnDiff; 00057 class KTempFile *m_tmpfile; 00058 }; 00059 00060 #endif // _KATE_MW_MODONHD_DIALOG_H_ 00061 // kate: space-indent on; indent-width 2; replace-tabs on;