Encapsulate some classes in namespaces
[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 namespace loglan {
10 namespace vlp {
11
12 /**
13  * Program Unit Dialog class
14  * Displays dialog for generating code template for unit structure
15  */
16 class UnitStructureDialog : public QDialog, private Ui::UnitStructureDialog {
17 public:
18         /**
19          * Class constructor
20          */
21         UnitStructureDialog(QWidget * parent = 0);
22
23         /**
24          * Class destuctor
25          */
26         ~UnitStructureDialog();
27
28         /**
29          * Gets user-passed unit name
30          *
31          * @return unit name entered in dialog
32          */
33         QString getUnitName();
34
35         /**
36          * Gets unit code template
37          * 
38          * @return unit code template with unit name
39          */
40         QString getCode();
41 };
42
43 }
44 }
45
46 #endif /* _VLP_EDITOR_PROGRAMSTRUCTUREDIALOG_H */