578a08e261eb2071e1d01caab6cff85e1d193fef
[vlp.git] / src / edit / ProgramStructureDialog.h
1 #ifndef _VLP_EDITOR_PROGRAMSTRUCTUREDIALOG_H
2 #define _VLP_EDITOR_PROGRAMSTRUCTUREDIALOG_H
3
4 #include <QtGui/QDialog>
5 #include <QtCore/QString>
6
7
8 #include "ui/dialogs/ProgramStructureDialog.h"
9
10 namespace loglan {
11 namespace vlp {
12 namespace dialog {
13
14 /**
15  * Program Structure Dialog class
16  * Displays dialog for generating code template for program structure
17  */
18 class ProgramStructureDialog : public QDialog, private Ui::ProgramStructureDialog {
19 public:
20         /**
21          * Class constructor
22          */
23         ProgramStructureDialog(QWidget * parent = 0);
24
25         /**
26          * Class destuctor
27          */
28         ~ProgramStructureDialog();
29
30         /**
31          * Gets user-passed program name
32          * 
33          * @return program name entered in dialog
34          */
35         QString getProgramName();
36
37         /**
38          * Gets program code template
39          * 
40          * @return program code template with program name
41          */
42         QString getCode();
43 };
44
45 }
46 }
47 }
48
49 #endif /* _VLP_EDITOR_PROGRAMSTRUCTUREDIALOG_H */