Name dialog accepts now input.
[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
21 signals:
22     void dataObjectUpdated();
23     /*  void insertName(const QString &name, int id = 0);
24     void exitDialog();*/
25
26 protected slots:
27     void acceptChanges();
28         void enableSaveButton(const QString &);
29
30 protected:
31     virtual void setDataObject(QString name) =0;
32         QLabel *nameLabel;
33         QLineEdit *nameEdit;
34     QDialogButtonBox *buttonBox;
35     //QPushButton *saveButton;
36     //QPushButton *closeButton;
37     EmuFrontObject *efObject;
38
39 private:
40         void connectSignals();
41         void layout();
42 };
43
44 #endif