2
This library is free software; you can redistribute it and/or
3
modify it under the terms of the GNU Library General Public
4
License version 2 as published by the Free Software Foundation.
6
This library is distributed in the hope that it will be useful,
7
but WITHOUT ANY WARRANTY; without even the implied warranty of
8
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9
Library General Public License for more details.
11
You should have received a copy of the GNU Library General Public License
12
along with this library; see the file COPYING.LIB. If not, write to
13
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
14
Boston, MA 02110-1301, USA.
17
Copyright (C) 2004, Anders Lund <anders@alweb.dk>
20
#ifndef _KATE_MW_MODONHD_DIALOG_H_
21
#define _KATE_MW_MODONHD_DIALOG_H_
23
#include <KTextEditor/Document>
29
#include <QTreeWidget>
30
#include <QTreeWidgetItem>
32
typedef QVector<KTextEditor::Document*> DocVector;
37
* A dialog for handling multiple documents modified on disk
38
* from within KateMainWindow
40
class KateMwModOnHdDialog : public KDialog
44
explicit KateMwModOnHdDialog( DocVector docs, QWidget *parent = 0, const char *name = 0 );
45
~KateMwModOnHdDialog();
46
void addDocument(KTextEditor::Document *doc);
55
void slotSelectionChanged(QTreeWidgetItem *current, QTreeWidgetItem *);
56
void slotDataAvailable();
60
enum Action { Ignore, Overwrite, Reload };
61
void handleSelected( int action );
62
class QTreeWidget *twDocuments;
63
class QPushButton *btnDiff;
65
KTemporaryFile *m_diffFile;
66
QStringList m_stateTexts;
69
virtual void closeEvent( QCloseEvent *e );
70
virtual void keyPressEvent( QKeyEvent* );
74
#endif // _KATE_MW_MODONHD_DIALOG_H_
75
// kate: space-indent on; indent-width 2; replace-tabs on;