Move dialogs layout code into separate ui file
[vlp.git] / src / edit / UnitStructureDialog.h
1 #ifndef _VLP_EDITOR_UNITSTRUCTUREDIALOG_H
2 #define _VLP_EDITOR_UNITSTRUCTUREDIALOG_H
3
4 #include <QtGui/QDialog>
5 #include <QtCore/QString>
6
7 #include "ui/dialogs/UnitStructureDialog.h"
8
9 /**
10  * Program Unit Dialog class
11  * Displays dialog for generating code template for unit structure
12  */
13 class UnitStructureDialog : public QDialog, private Ui::UnitStructureDialog {
14 public:
15         /**
16          * Class constructor
17          */
18         UnitStructureDialog(QWidget * parent = 0);
19
20         /**
21          * Class destuctor
22          */
23         ~UnitStructureDialog();
24
25         /**
26          * Gets user-passed unit name
27          *
28          * @return unit name entered in dialog
29          */
30         QString getUnitName();
31
32         /**
33          * Gets unit code template
34          * 
35          * @return unit code template with unit name
36          */
37         QString getCode();
38 };
39
40 #endif /* _VLP_EDITOR_PROGRAMSTRUCTUREDIALOG_H */