We have a working relationship between DbObjectDialog and NameDialog
[emufront] / src / dialogs / namedialog.h
1 #ifndef NAMEDIALOG_H
2 #define NAMEDIALOG_H
3
4 #include "../dataobjects/emufrontobject.h"
5 #include "emufrontdialog.h"
6
7
8 class QLabel;
9 class QLineEdit;
10 class QPushButton;
11 class QDialogButtonBox;
12
13 class NameDialog : public EmuFrontDialog
14 {
15         Q_OBJECT
16
17 public:
18     NameDialog(QWidget *parent = 0, EmuFrontObject * = 0);
19     ~NameDialog();
20     void setDataObject(EmuFrontObject *);
21
22 signals:
23     void dataObjectUpdated();
24
25 protected slots:
26     void acceptChanges();
27         void enableSaveButton(const QString &);
28
29 protected:
30     virtual void setDataObject(QString name) =0;
31         QLabel *nameLabel;
32         QLineEdit *nameEdit;
33     QDialogButtonBox *buttonBox;
34     EmuFrontObject *efObject;
35
36 private:
37         void connectSignals();
38         void layout();
39 };
40
41 #endif