14e1bca13dca61b39e51ed734d11a157b6860a2a
[vlp.git] / src / lgconfig / AddNodeDialog.h
1 #ifndef _VLP_LGCONFIG_ADDNODEDIALOG_H
2 #define _VLP_LGCONFIG_ADDNODEDIALOG_H
3
4 #include <QtGui/QDialog>
5 #include <QtCore/QString>
6
7 #include "ui/dialogs/AddNodeDialog.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 AddNodeDialog : public QDialog, private Ui::AddNodeDialog {
18         Q_OBJECT
19 public:
20         /**
21          * Class constructor
22          */
23         AddNodeDialog(QWidget * parent = 0);
24
25         /**
26          * Class destuctor
27          */
28         ~AddNodeDialog();
29
30         /**
31          * Gets user-passed node number
32          *
33          * @return node number entered in dialog
34          */
35         int getNodeNumber();
36
37         /**
38          * Gets user-passed ip address
39          *
40          * @return ip address entered in dialog
41          */
42         QString getIPAddress();
43
44         /**
45          * Gets user-passed connection type
46          *
47          * @return connection type entered in dialog
48          */
49         QString getConnectionType();
50
51         /**
52          * Gets user-passed programs directory
53          *
54          * @return programs directory entered in dialog
55          */
56         QString getProgramsDirectory();
57
58         /**
59          * Gets user-passed VLP directory
60          *
61          * @return VLP directory entered in dialog
62          */
63         QString getVLPDirectory();
64
65 private slots:
66         void on_programsDirButton_clicked();
67         void on_vlpDirButton_clicked();
68 };
69
70 }
71 }
72 }
73
74 #endif /* _VLP_EDITOR_PROGRAMSTRUCTUREDIALOG_H */