kate
katemwmodonhddialog.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef _KATE_MW_MODONHD_DIALOG_H_
00021 #define _KATE_MW_MODONHD_DIALOG_H_
00022
00023 #include <kdialogbase.h>
00024 #include <qptrvector.h>
00025 #include <kate/document.h>
00026
00027 typedef QPtrVector<Kate::Document> DocVector;
00028 class KProcIO;
00029 class KProcess;
00034 class KateMwModOnHdDialog : public KDialogBase
00035 {
00036 Q_OBJECT
00037 public:
00038 KateMwModOnHdDialog( DocVector docs, QWidget *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(KProcess*);
00051
00052 private:
00053 enum Action { Ignore, Overwrite, Reload };
00054 void handleSelected( int action );
00055 class KListView *lvDocuments;
00056 class QPushButton *btnDiff;
00057 class KTempFile *m_tmpfile;
00058 };
00059
00060 #endif // _KATE_MW_MODONHD_DIALOG_H_
00061