]> sigrok.org Git - sigrok-qt.git/commitdiff
qt: Add DecoderStackForm GUI stuff and C++ class.
authorUwe Hermann <redacted>
Wed, 25 Jan 2012 15:48:15 +0000 (16:48 +0100)
committerUwe Hermann <redacted>
Thu, 26 Jan 2012 00:03:54 +0000 (01:03 +0100)
decoderstackform.cpp [new file with mode: 0644]
decoderstackform.h [new file with mode: 0644]
decoderstackform.ui [new file with mode: 0644]
sigrok-qt.pro

diff --git a/decoderstackform.cpp b/decoderstackform.cpp
new file mode 100644 (file)
index 0000000..cb3e727
--- /dev/null
@@ -0,0 +1,39 @@
+/*
+ * This file is part of the sigrok project.
+ *
+ * Copyright (C) 2012 Uwe Hermann <uwe@hermann-uwe.de>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+ */
+
+#include "decoderstackform.h"
+#include "ui_decoderstackform.h"
+
+DecoderStackForm::DecoderStackForm(QWidget *parent) :
+       QDialog(parent),
+       ui(new Ui::DecoderStackForm)
+{
+       ui->setupUi(this);
+}
+
+DecoderStackForm::~DecoderStackForm()
+{
+       delete ui;
+}
+
+void DecoderStackForm::on_buttonBox_accepted()
+{
+       /* TODO. */
+}
diff --git a/decoderstackform.h b/decoderstackform.h
new file mode 100644 (file)
index 0000000..c0cc99a
--- /dev/null
@@ -0,0 +1,45 @@
+/*
+ * This file is part of the sigrok project.
+ *
+ * Copyright (C) 2012 Uwe Hermann <uwe@hermann-uwe.de>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+ */
+
+#ifndef DECODERSTACKFORM_H
+#define DECODERSTACKFORM_H
+
+#include <QDialog>
+
+namespace Ui {
+       class DecoderStackForm;
+}
+
+class DecoderStackForm : public QDialog
+{
+       Q_OBJECT
+
+public:
+       explicit DecoderStackForm(QWidget *parent = 0);
+       ~DecoderStackForm();
+
+private slots:
+       void on_buttonBox_accepted();
+
+private:
+       Ui::DecoderStackForm *ui;
+};
+
+#endif
diff --git a/decoderstackform.ui b/decoderstackform.ui
new file mode 100644 (file)
index 0000000..7c85e5e
--- /dev/null
@@ -0,0 +1,71 @@
+<ui version="4.0">
+ <author/>
+ <comment/>
+ <exportmacro/>
+ <class>DecoderStackForm</class>
+ <widget class="QDialog" name="DecoderStackForm">
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>400</width>
+    <height>300</height>
+   </rect>
+  </property>
+  <property name="windowTitle">
+   <string>Dialog</string>
+  </property>
+  <widget class="QDialogButtonBox" name="buttonBox">
+   <property name="geometry">
+    <rect>
+     <x>30</x>
+     <y>240</y>
+     <width>341</width>
+     <height>32</height>
+    </rect>
+   </property>
+   <property name="orientation">
+    <enum>Qt::Horizontal</enum>
+   </property>
+   <property name="standardButtons">
+    <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
+   </property>
+  </widget>
+ </widget>
+ <pixmapfunction/>
+ <resources/>
+ <connections>
+  <connection>
+   <sender>buttonBox</sender>
+   <signal>accepted()</signal>
+   <receiver>DecoderStackForm</receiver>
+   <slot>accept()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>248</x>
+     <y>254</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>157</x>
+     <y>274</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>buttonBox</sender>
+   <signal>rejected()</signal>
+   <receiver>DecoderStackForm</receiver>
+   <slot>reject()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>316</x>
+     <y>260</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>286</x>
+     <y>274</y>
+    </hint>
+   </hints>
+  </connection>
+ </connections>
+</ui>
index 34fbcee439afef2632a637a55af58bd0d86e9b87..559d2d276b0488f900cc879821be4f6def2ced0b 100644 (file)
@@ -32,18 +32,21 @@ SOURCES      += main.cpp \
                configform.cpp \
                sampleiodevice.cpp \
                channelform.cpp \
-               decodersform.cpp
+               decodersform.cpp \
+               decoderstackform.cpp
 
 HEADERS      += mainwindow.h \
                configform.h \
                sampleiodevice.h \
                channelform.h \
-               decodersform.h
+               decodersform.h \
+               decoderstackform.h
 
 FORMS        += mainwindow.ui \
                configform.ui \
                channelform.ui \
-               decodersform.ui
+               decodersform.ui \
+               decoderstackform.ui
 
 TRANSLATIONS  = locale/sigrok-qt_de_DE.ts \
                 locale/sigrok-qt_nl_NL.ts \