blob: b3a29c2dafc1636128637e8271c259276ca37cab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
/***************************************************************************
kcurrencyeditdlg.h - description
-------------------
begin : Wed Mar 24 2004
copyright : (C) 2000-2004 by Michael Edwardes
email : [email protected]
Javier Campos Morales <[email protected]>
Felix Rodriguez <[email protected]>
John C <[email protected]>
Thomas Baumgart <[email protected]>
Kevin Tambascio <[email protected]>
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef KCURRENCYEDITDLG_H
#define KCURRENCYEDITDLG_H
// ----------------------------------------------------------------------------
// QT Includes
#include <tqwidget.h>
// ----------------------------------------------------------------------------
// KDE Includes
class TDEPopupMenu;
// ----------------------------------------------------------------------------
// Project Includes
#include "../dialogs/kcurrencyeditdlgdecl.h"
#include "../mymoney/mymoneysecurity.h"
/**
* @author Thomas Baumgart
*/
class KCurrencyEditDlg : public KCurrencyEditDlgDecl
{
Q_OBJECT
public:
KCurrencyEditDlg(TQWidget *parent=0, const char *name=0);
~KCurrencyEditDlg();
public slots:
void slotSelectCurrency(const TQString& id);
protected:
/// the resize event
virtual void resizeEvent(TQResizeEvent*);
void updateCurrency(void);
protected slots:
void slotSelectCurrency(TQListViewItem *);
void slotClose(void);
void slotStartRename(void);
void slotListClicked(TQListViewItem* item, const TQPoint&, int);
void slotRenameCurrency(TQListViewItem* item, int col, const TQString& txt);
void slotLoadCurrencies(void);
private slots:
void timerDone(void);
void slotSelectBaseCurrency(void);
signals:
void selectObject(const MyMoneySecurity& currency);
void openContextMenu(const MyMoneySecurity& currency);
void renameCurrency(TQListViewItem* item, int, const TQString& txt);
void selectBaseCurrency(const MyMoneySecurity& currency);
private:
MyMoneySecurity m_currency;
};
#endif
|