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.
48 lines
972 B
48 lines
972 B
14 years ago
|
#ifndef ADDRESSBOOKDIALOG_H
|
||
|
#define ADDRESSBOOKDIALOG_H
|
||
|
|
||
|
#include <QDialog>
|
||
|
|
||
14 years ago
|
namespace Ui {
|
||
|
class AddressBookDialog;
|
||
|
}
|
||
14 years ago
|
class AddressTableModel;
|
||
14 years ago
|
|
||
14 years ago
|
QT_BEGIN_NAMESPACE
|
||
|
class QTableView;
|
||
|
QT_END_NAMESPACE
|
||
|
|
||
14 years ago
|
class AddressBookDialog : public QDialog
|
||
|
{
|
||
|
Q_OBJECT
|
||
14 years ago
|
|
||
14 years ago
|
public:
|
||
|
explicit AddressBookDialog(QWidget *parent = 0);
|
||
14 years ago
|
~AddressBookDialog();
|
||
14 years ago
|
|
||
14 years ago
|
enum {
|
||
|
SendingTab = 0,
|
||
|
ReceivingTab = 1
|
||
|
} Tabs;
|
||
14 years ago
|
|
||
14 years ago
|
void setModel(AddressTableModel *model);
|
||
14 years ago
|
void setTab(int tab);
|
||
14 years ago
|
const QString &getReturnValue() const { return returnValue; }
|
||
14 years ago
|
private:
|
||
|
Ui::AddressBookDialog *ui;
|
||
14 years ago
|
AddressTableModel *model;
|
||
14 years ago
|
QString returnValue;
|
||
|
|
||
|
QTableView *getCurrentTable();
|
||
14 years ago
|
|
||
|
private slots:
|
||
14 years ago
|
void on_buttonBox_accepted();
|
||
|
void on_deleteButton_clicked();
|
||
|
void on_tabWidget_currentChanged(int index);
|
||
14 years ago
|
void on_newAddressButton_clicked();
|
||
|
void on_editButton_clicked();
|
||
|
void on_copyToClipboard_clicked();
|
||
14 years ago
|
};
|
||
|
|
||
|
#endif // ADDRESSBOOKDIALOG_H
|