00001 /*************************************************************************** 00002 kcurrencyeditdlg.h - description 00003 ------------------- 00004 begin : Wed Mar 24 2004 00005 copyright : (C) 2000-2004 by Michael Edwardes 00006 email : mte@users.sourceforge.net 00007 Javier Campos Morales <javi_c@users.sourceforge.net> 00008 Felix Rodriguez <frodriguez@users.sourceforge.net> 00009 John C <thetacoturtle@users.sourceforge.net> 00010 Thomas Baumgart <ipwizard@users.sourceforge.net> 00011 Kevin Tambascio <ktambascio@users.sourceforge.net> 00012 ***************************************************************************/ 00013 00014 /*************************************************************************** 00015 * * 00016 * This program is free software; you can redistribute it and/or modify * 00017 * it under the terms of the GNU General Public License as published by * 00018 * the Free Software Foundation; either version 2 of the License, or * 00019 * (at your option) any later version. * 00020 * * 00021 ***************************************************************************/ 00022 00023 #ifndef KCURRENCYEDITDLG_H 00024 #define KCURRENCYEDITDLG_H 00025 00026 // ---------------------------------------------------------------------------- 00027 // QT Includes 00028 00029 #include <qwidget.h> 00030 00031 // ---------------------------------------------------------------------------- 00032 // KDE Includes 00033 00034 class KPopupMenu; 00035 00036 // ---------------------------------------------------------------------------- 00037 // Project Includes 00038 00039 #include "../dialogs/kcurrencyeditdlgdecl.h" 00040 #include "../mymoney/mymoneysecurity.h" 00041 00046 class KCurrencyEditDlg : public KCurrencyEditDlgDecl 00047 { 00048 Q_OBJECT 00049 public: 00050 KCurrencyEditDlg(QWidget *parent=0, const char *name=0); 00051 ~KCurrencyEditDlg(); 00052 00053 public slots: 00054 void slotSelectCurrency(const QString& id); 00055 00056 protected: 00058 virtual void resizeEvent(QResizeEvent*); 00059 void updateCurrency(void); 00060 00061 protected slots: 00062 void slotSelectCurrency(QListViewItem *); 00063 00064 void slotClose(void); 00065 void slotStartRename(void); 00066 void slotListClicked(QListViewItem* item, const QPoint&, int); 00067 void slotRenameCurrency(QListViewItem* item, int col, const QString& txt); 00068 void slotLoadCurrencies(void); 00069 00070 private slots: 00071 void timerDone(void); 00072 void slotSelectBaseCurrency(void); 00073 00074 signals: 00075 void selectObject(const MyMoneySecurity& currency); 00076 void openContextMenu(const MyMoneySecurity& currency); 00077 void renameCurrency(QListViewItem* item, int, const QString& txt); 00078 void selectBaseCurrency(const MyMoneySecurity& currency); 00079 00080 private: 00081 MyMoneySecurity m_currency; 00082 }; 00083 00084 #endif