knewfiledlg.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           knewfiledlg.h
00003                              -------------------
00004     copyright            : (C) 2000 by Michael Edwardes
00005     email                : mte@users.sourceforge.net
00006  ***************************************************************************/
00007 
00008 /***************************************************************************
00009  *                                                                         *
00010  *   This program is free software; you can redistribute it and/or modify  *
00011  *   it under the terms of the GNU General Public License as published by  *
00012  *   the Free Software Foundation; either version 2 of the License, or     *
00013  *   (at your option) any later version.                                   *
00014  *                                                                         *
00015  ***************************************************************************/
00016 
00017 #ifndef KNEWFILEDLG_H
00018 #define KNEWFILEDLG_H
00019 
00020 // ----------------------------------------------------------------------------
00021 // QT Includes
00022 #include <qdialog.h>
00023 
00024 // ----------------------------------------------------------------------------
00025 // KDE Includes
00026 #include <klocale.h>
00027 
00028 // ----------------------------------------------------------------------------
00029 // Project Includes
00030 #include "../dialogs/knewfiledlgdecl.h"
00031 
00032 // This dialog lets the user create/edit a file.
00033 // Use the second constructor to edit a file.
00034 class KNewFileDlg : public KNewFileDlgDecl  {
00035    Q_OBJECT
00036 public:
00037   KNewFileDlg(QWidget *parent=0, const char *name=0, const QString& title=QString());
00038   KNewFileDlg(QString userName, QString userStreet,
00039     QString userTown, QString userCounty, QString userPostcode, QString userTelephone,
00040     QString userEmail, QWidget *parent=0, const char *name=0, const QString& title=QString());
00041   ~KNewFileDlg();
00042 
00043   KPushButton* cancelButton(void) { return cancelBtn; };
00044 
00045 public:
00046   QString userNameText;
00047   QString userStreetText;
00048   QString userTownText;
00049   QString userCountyText;
00050   QString userPostcodeText;
00051   QString userTelephoneText;
00052   QString userEmailText;
00053 
00054 protected:
00056   void init(const QString& title);
00057 
00058 protected slots:
00059   void okClicked();
00060   void loadFromKABC(void);
00061 };
00062 
00063 #endif

Generated on Wed Jan 26 13:03:17 2011 for KMyMoney by  doxygen 1.5.6