00001 /* This file is part of the KDE project 00002 Copyright (C) 2005 Laurent Montel <montel@kde.org> 00003 Copyright (C) 2006 Fredrik Edemar <f_edemar@linux.se> 00004 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Library General Public 00007 License as published by the Free Software Foundation; either 00008 version 2 of the License, or (at your option) any later version. 00009 00010 This library is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Library General Public License for more details. 00014 00015 You should have received a copy of the GNU Library General Public License 00016 along with this library; see the file COPYING.LIB. If not, write to 00017 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00018 * Boston, MA 02110-1301, USA. 00019 */ 00020 00021 #ifndef __VERSION_DIALOG__ 00022 #define __VERSION_DIALOG__ 00023 00024 #include <kdialog.h> 00025 00026 #include "KoDocument.h" 00027 00028 class QPushButton; 00029 class QToolButton; 00030 class QTreeWidget; 00031 class Q3MultiLineEdit; 00032 00033 class KoVersionDialog : public KDialog 00034 { 00035 Q_OBJECT 00036 public: 00037 KoVersionDialog( QWidget* parent, KoDocument *doc ); 00038 ~KoVersionDialog(); 00039 00040 public slots: 00041 void slotRemove(); 00042 void slotAdd(); 00043 void slotOpen(); 00044 void slotModify(); 00045 00046 protected: 00047 00048 void init(); 00049 void updateButton(); 00050 void updateVersionList(); 00051 00052 QTreeWidget * list; 00053 QPushButton* m_pRemove; 00054 QPushButton* m_pAdd; 00055 QPushButton* m_pOpen; 00056 QPushButton* m_pModify; 00057 KoDocument *m_doc; 00058 }; 00059 00060 class KoVersionModifyDialog : public KDialog 00061 { 00062 Q_OBJECT 00063 public: 00064 KoVersionModifyDialog( QWidget* parent, KoVersionInfo *info=0 ); 00065 00066 QString comment() const; 00067 00068 private: 00069 Q3MultiLineEdit *m_multiline; 00070 }; 00071 00072 #endif