912f28f86014bb8d62b1242b661ff7e2a74a8ef4
[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 public:
19         /**
20          * Class constructor
21          */
22         AddNodeDialog(QWidget * parent = 0);
23
24         /**
25          * Class destuctor
26          */
27         ~AddNodeDialog();
28
29         /**
30          * Gets user-passed node number
31          *
32          * @return node number entered in dialog
33          */
34         int getNodeNumber();
35
36         /**
37          * Gets user-passed ip address
38          *
39          * @return ip address entered in dialog
40          */
41         QString getIPAddress();
42
43         /**
44          * Gets user-passed connection type
45          *
46          * @return connection type entered in dialog
47          */
48         QString getConnectionType();
49
50         /**
51          * Gets user-passed programs directory
52          *
53          * @return programs directory entered in dialog
54          */
55         QString getProgramsDirectory();
56
57         /**
58          * Gets user-passed VLP directory
59          *
60          * @return VLP directory entered in dialog
61          */
62         QString getVLPDirectory();
63 };
64
65 }
66 }
67 }
68
69 #endif /* _VLP_EDITOR_PROGRAMSTRUCTUREDIALOG_H */