00001 /*************************************************************************** 00002 kexportdlg.h - description 00003 ------------------- 00004 begin : Tue May 22 2001 00005 copyright : (C) 2001 by Michael Edwardes 00006 email : mte@users.sourceforge.net 00007 Javier Campos Morales <javi_c@ctv.es> 00008 Felix Rodriguez <frodriguez@mail.wesleyan.edu> 00009 Thomas Baumgart <ipwizard@users.sourceforge.net> 00010 ***************************************************************************/ 00011 00012 /*************************************************************************** 00013 * * 00014 * This program is free software; you can redistribute it and/or modify * 00015 * it under the terms of the GNU General Public License as published by * 00016 * the Free Software Foundation; either version 2 of the License, or * 00017 * (at your option) any later version. * 00018 * * 00019 ***************************************************************************/ 00020 #ifndef KEXPORTDLG_H 00021 #define KEXPORTDLG_H 00022 00023 // ---------------------------------------------------------------------------- 00024 // QT Headers 00025 00026 #include <qstring.h> 00027 #include <qcheckbox.h> 00028 00029 // ---------------------------------------------------------------------------- 00030 // KDE Headers 00031 00032 #include <kcombobox.h> 00033 00034 // ---------------------------------------------------------------------------- 00035 // Project Headers 00036 00037 #include "../widgets/kmymoneydateinput.h" 00038 #include "../dialogs/kexportdlgdecl.h" 00039 00055 class KExportDlg : public KExportDlgDecl 00056 { 00057 Q_OBJECT 00058 00059 public: 00060 KExportDlg(QWidget *parent); 00061 ~KExportDlg(); 00062 00068 const QString filename(void) const { return m_qlineeditFile->text(); }; 00069 00075 QString accountId(void) const; 00076 00083 const QString profile(void) const { return m_profileComboBox->currentText(); }; 00084 00088 const QDate startDate(void) const { return m_kmymoneydateStart->date(); }; 00089 00093 const QDate endDate(void) const { return m_kmymoneydateEnd->date(); }; 00094 00098 bool accountSelected(void) const { return m_qcheckboxAccount->isChecked(); }; 00099 00103 bool categorySelected(void) const { return m_qcheckboxCategories->isChecked(); }; 00104 00105 protected slots: 00109 void slotOkClicked(); 00110 00114 void slotBrowse(); 00115 00119 void slotNewProfile(void); 00120 00133 void checkData(const QString& account = QString()); 00134 00135 private: 00136 void readConfig(void); 00137 void writeConfig(void); 00138 00150 void loadProfiles(const bool selectLast = false); 00151 00156 void loadAccounts(void); 00157 00165 // void addCategories(QStringList& strList, const QString& id, const QString& leadIn) const; 00166 00174 // QString accountId(const QString& account) const; 00175 00176 private: 00177 QString m_lastAccount; 00178 }; 00179 00180 #endif