src/lgconfig/lgconfig.cpp \
src/lgconfig/lgconfig.moc.cpp \
src/lgconfig/AddNodeDialog.cpp \
+ src/lgconfig/AddNodeDialog.moc.cpp \
src/lgconfig/NodeListDialog.cpp \
src/lgconfig/NodeListDialog.moc.cpp
bin_lgconfig_CPPFLAGS = $(bin_lgconfig_CFLAGS)
src/lgconfig/ui/dialogs/NodeListDialog.h
$(MOC) src/lgconfig/lgconfig.h -o src/lgconfig/lgconfig.moc.cpp
+src/lgconfig/AddNodeDialog.moc.cpp: \
+ src/lgconfig/ui/dialogs/AddNodeDialog.h
+ $(MOC) src/lgconfig/AddNodeDialog.h -o src/lgconfig/AddNodeDialog.moc.cpp
+
src/lgconfig/NodeListDialog.moc.cpp: \
src/lgconfig/ui/dialogs/NodeListDialog.h
$(MOC) src/lgconfig/NodeListDialog.h -o src/lgconfig/NodeListDialog.moc.cpp
case MSG_INT:
switch(msg.param.pword[0]) {
case INT_EXITING:
- char ss[255];
-
MESSAGE m;
m.msg_type = MSG_VLP;
m.param.pword[0] = VLP_INTERPRETER_DOWN;
delete e;
if (info_messages) {
+ char ss[255];
sprintf(ss, "%s : End of program "
"execution", msg.param.pstr);
WriteMessage(ss);
#include <QtGui/QListWidgetItem>
+#include <QtGui/QFileDialog>
#include "AddNodeDialog.h"
return vlpDirectory->text();
}
+void AddNodeDialog::on_programsDirButton_clicked()
+{
+ QFileDialog dialog(this);
+ dialog.setFileMode(QFileDialog::Directory);
+ if(dialog.exec()) {
+ programsDirectory->setText(dialog.directory().absolutePath() + QDir::separator());
+ }
+}
+
+void AddNodeDialog::on_vlpDirButton_clicked()
+{
+ QFileDialog dialog(this);
+ dialog.setFileMode(QFileDialog::Directory);
+ if(dialog.exec()) {
+ vlpDirectory->setText(dialog.directory().absolutePath() + QDir::separator());
+ }
+}
+
}
}
* Displays dialog for generating code template for unit structure
*/
class AddNodeDialog : public QDialog, private Ui::AddNodeDialog {
+ Q_OBJECT
public:
/**
* Class constructor
* @return VLP directory entered in dialog
*/
QString getVLPDirectory();
+
+private slots:
+ void on_programsDirButton_clicked();
+ void on_vlpDirButton_clicked();
};
}
<rect>
<x>0</x>
<y>0</y>
- <width>258</width>
- <height>185</height>
+ <width>539</width>
+ <height>189</height>
</rect>
</property>
<property name="windowTitle">
</widget>
</item>
<item>
- <widget class="QLineEdit" name="programsDirectory">
- <property name="minimumSize">
- <size>
- <width>300</width>
- <height>0</height>
- </size>
- </property>
- </widget>
+ <layout class="QHBoxLayout" name="horizontalLayout_2">
+ <item>
+ <widget class="QLineEdit" name="programsDirectory">
+ <property name="minimumSize">
+ <size>
+ <width>300</width>
+ <height>0</height>
+ </size>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="programsDirButton">
+ <property name="text">
+ <string>Choose</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
</item>
<item>
- <widget class="QLineEdit" name="vlpDirectory">
- <property name="minimumSize">
- <size>
- <width>300</width>
- <height>0</height>
- </size>
- </property>
- </widget>
+ <layout class="QHBoxLayout" name="horizontalLayout_3">
+ <item>
+ <widget class="QLineEdit" name="vlpDirectory">
+ <property name="minimumSize">
+ <size>
+ <width>300</width>
+ <height>0</height>
+ </size>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="vlpDirButton">
+ <property name="text">
+ <string>Choose</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
</item>
</layout>
</item>