Initial Commit
[HECS.git] / DwellingInformationDialog.h
blobbb21f6195b6e96c801cb41eff49cb9c4a56094c4
1 /***************************************************************************
2 * *
3 * DwellingInformationDialog.h Copyright (C) 2008 by Jon Rumble * *
4 * j.w.rumble@reading.ac.uk *
5 * *
6 * *
7 * This file is part of HECS, *
8 * *
9 * HECS is free software: you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation, either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 * *
15 * HECS is distributed in the hope that it will be useful, *
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
18 * GNU General Public License for more details. *
19 * *
20 * You should have received a copy of the GNU General Public License *
21 * along with this program. If not, see <http://www.gnu.org/licenses/>. *
22 ***************************************************************************/
24 #ifndef DWELLINGINFORMATIONDIALOG_H
25 #define DWELLINGINFORMATIONDIALOG_H
27 #include "ui_dwellinginformation.h"
28 #include "RdSap.h"
29 #include "Misc.h"
30 #include <QDialog>
31 #include <QString>
32 #include <QRegExp>
33 #include <QRegExpValidator>
35 class DwellingInformationDialog : public QDialog
38 Q_OBJECT
40 public:
41 DwellingInformationDialog (QWidget *parent =0);
42 void setModel(RdSap *modelIn);
43 //virtual ~DwellingInformationDialog ();
45 public slots:
46 void onHouseNameEditChange();
47 void onAddressEditChange();
48 void onTownEditChange();
49 void onPostcodeEditChange();
50 void onCountyCbxChange();
51 void onRegionCbxChange();
52 void onAgeBandCbxChange();
54 signals:
56 private:
57 Ui::DwellingInformationDialog ui;
58 RdSap *sapModel;
59 void initVars();
61 //Internal Vars for widget
66 #endif //END OF DWELLINGINFORMATIONDIALOG_H