kpilot
kpalmdoc_dlg.h
Go to the documentation of this file.00001 /* kpalmdoc_dlg.cpp 00002 ** 00003 ** Copyright (C) 2003 by Reinhold Kainhofer 00004 ** 00005 ** This is the main dialog of the KDE PalmDOC converter. 00006 */ 00007 00008 /* 00009 ** This program is free software; you can redistribute it and/or modify 00010 ** it under the terms of the GNU General Public License as published by 00011 ** the Free Software Foundation; either version 2 of the License, or 00012 ** (at your option) any later version. 00013 ** 00014 ** This program is distributed in the hope that it will be useful, 00015 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 ** GNU General Public License for more details. 00018 ** 00019 ** You should have received a copy of the GNU General Public License 00020 ** along with this program in a file called COPYING; if not, write to 00021 ** the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 00022 ** MA 02110-1301, USA. 00023 */ 00024 00025 /* 00026 ** Bug reports and questions can be sent to kde-pim@kde.org 00027 */ 00028 #ifndef CONVERTERDLG_H 00029 #define CONVERTERDLG_H 00030 00031 #include <kdialogbase.h> 00032 class ConverterDlgBase; 00033 class DOCConverter; 00034 00035 class ConverterDlg : public KDialogBase 00036 { 00037 Q_OBJECT 00038 00039 public: 00040 ConverterDlg( QWidget *parent=0, const QString& caption=0); 00041 ~ConverterDlg(); 00042 00043 protected slots: 00044 virtual void slotClose(); 00045 void slotToText(); 00046 void slotToPDB(); 00047 void slotDirectories(bool dir); 00048 void slotUser1(); 00049 protected: 00050 void writeSettings(); 00051 void readSettings(); 00052 00053 // These two functions convert one single file to or from a pdb database 00054 bool convertTXTtoPDB(QString txtdir, QString txtfile, 00055 QString pdbdir, QString pdbfile, DOCConverter*conv); 00056 bool convertPDBtoTXT(QString pdbdir, QString pdbfile, 00057 QString txtdir, QString txtfile, DOCConverter*conv); 00058 00059 00060 // The actual dialog widget (designer created) holding all controls 00061 ConverterDlgBase*dlg; 00062 // Settings 00063 bool askOverwrite; 00064 bool verbose; 00065 }; 00066 00067 #endif // CONVERTERDLG_H