You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
761 B
42 lines
761 B
14 years ago
|
#ifndef EDITADDRESSDIALOG_H
|
||
|
#define EDITADDRESSDIALOG_H
|
||
|
|
||
|
#include <QDialog>
|
||
|
|
||
14 years ago
|
QT_BEGIN_NAMESPACE
|
||
|
class QDataWidgetMapper;
|
||
|
QT_END_NAMESPACE
|
||
|
|
||
14 years ago
|
namespace Ui {
|
||
|
class EditAddressDialog;
|
||
|
}
|
||
14 years ago
|
class AddressTableModel;
|
||
14 years ago
|
|
||
|
class EditAddressDialog : public QDialog
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
14 years ago
|
enum Mode {
|
||
|
NewReceivingAddress,
|
||
|
NewSendingAddress,
|
||
|
EditReceivingAddress,
|
||
|
EditSendingAddress
|
||
|
};
|
||
|
|
||
|
explicit EditAddressDialog(Mode mode, QWidget *parent = 0);
|
||
|
~EditAddressDialog();
|
||
14 years ago
|
|
||
14 years ago
|
void setModel(AddressTableModel *model);
|
||
|
void loadRow(int row);
|
||
14 years ago
|
QString saveCurrentRow();
|
||
14 years ago
|
|
||
14 years ago
|
private:
|
||
|
Ui::EditAddressDialog *ui;
|
||
14 years ago
|
QDataWidgetMapper *mapper;
|
||
14 years ago
|
Mode mode;
|
||
|
AddressTableModel *model;
|
||
14 years ago
|
};
|
||
|
|
||
|
#endif // EDITADDRESSDIALOG_H
|