katesavemodifieddialog.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 2004 Joseph Wenninger <jowenn@kde.org>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License version 2 as published by the Free Software Foundation.
00007 
00008    This library is distributed in the hope that it will be useful,
00009    but WITHOUT ANY WARRANTY; without even the implied warranty of
00010    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011    Library General Public License for more details.
00012 
00013    You should have received a copy of the GNU Library General Public License
00014    along with this library; see the file COPYING.LIB.  If not, write to
00015    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00016    Boston, MA 02110-1301, USA.
00017 */
00018 
00019 #ifndef _KATE_SAVE_MODIFIED_DIALOG_
00020 #define _KATE_SAVE_MODIFIED_DIALOG_
00021 
00022 #include <kdialogbase.h>
00023 #include <kate/document.h>
00024 
00025 class QListViewItem;
00026 class KListView;
00027 
00028 class KateSaveModifiedDialog: public KDialogBase {
00029     Q_OBJECT
00030 public:
00031     KateSaveModifiedDialog(QWidget *parent, QPtrList<Kate::Document> documents);
00032     virtual ~KateSaveModifiedDialog();
00033     static bool queryClose(QWidget *parent,QPtrList<Kate::Document> documents);
00034 protected:
00035     virtual void slotUser2();
00036     virtual void slotUser1();
00037     bool doSave(QListViewItem *root);
00038 protected slots:
00039     void slotSelectAll();
00040     void slotItemSelected();
00041     
00042 private:
00043     QListViewItem *m_projectRoot;
00044     QListViewItem *m_documentRoot;
00045     KListView *m_list;
00046 };
00047 
00048 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys