Changed some functions to pure virtual in dbobject dialog.
[emufront] / src / dialogs / dbobjectdialog.h
1 #ifndef DBOBJECTDIALOG_H
2 #define DBOBJECTDIALOG_H
3
4 #include <QDialog>
5
6 class QPushButton;
7 class QModelIndex;
8 class QDialogButtonBox;
9 class QListView;
10 class NameDialog;
11
12 class DbObjectDialog : public QDialog 
13 {
14     Q_OBJECT
15
16     public:
17         DbObjectDialog(QWidget *parent = 0);
18
19     protected slots:
20         void editButtonClicked();
21         void addButtonClicked();
22         void deleteButtonClicked();
23         //void enableEditButton();
24         //void enableDeleteButton();
25         void listObjectClicked(const QModelIndex &);
26
27     protected:
28         virtual int deleteObject() =0;
29         virtual void addObject() =0;
30         virtual void editObject() =0;
31         
32     private:
33         QDialogButtonBox *buttonBox;
34         QPushButton *editButton;
35         QPushButton *addButton;
36         QPushButton *deleteButton;
37         QListView *objectList;
38         NameDialog *nameDialog;
39
40         void setButtonsEnabled(bool);
41         void connectSignals();
42         void layout();
43         void disableSelection();
44 };
45
46 #endif