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