pv/data/signaldata.cpp
pv/data/snapshot.cpp
pv/dialogs/about.cpp
- pv/dialogs/hwcap.cpp
+ pv/dialogs/deviceoptions.cpp
pv/prop/enum.cpp
pv/prop/property.cpp
pv/prop/binding/binding.cpp
--- /dev/null
+/*
+ * This file is part of the PulseView project.
+ *
+ * Copyright (C) 2012 Joel Holdsworth <joel@airwebreathe.org.uk>
+ *
+ * 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 "deviceoptions.h"
+
+namespace pv {
+namespace dialogs {
+
+DeviceOptions::DeviceOptions(QWidget *parent, struct sr_dev_inst *sdi) :
+ QDialog(parent),
+ _layout(this),
+ _button_box(QDialogButtonBox::Ok | QDialogButtonBox::Cancel,
+ Qt::Horizontal, this),
+ _device_options_binding(sdi)
+{
+ setWindowTitle(tr("Configure Device"));
+
+ connect(&_button_box, SIGNAL(accepted()), this, SLOT(accept()));
+ connect(&_button_box, SIGNAL(rejected()), this, SLOT(reject()));
+
+ setLayout(&_layout);
+
+ QWidget *const form = _device_options_binding.get_form(this);
+ _layout.addWidget(form);
+
+ _layout.addWidget(&_button_box);
+}
+
+void DeviceOptions::accept()
+{
+ QDialog::accept();
+ _device_options_binding.commit();
+}
+
+} // namespace dialogs
+} // namespace pv
--- /dev/null
+/*
+ * This file is part of the PulseView project.
+ *
+ * Copyright (C) 2012 Joel Holdsworth <joel@airwebreathe.org.uk>
+ *
+ * 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 PULSEVIEW_PV_DEVICEOPTIONS_H
+#define PULSEVIEW_PV_DEVICEOPTIONS_H
+
+#include <QDialog>
+#include <QDialogButtonBox>
+#include <QVBoxLayout>
+
+#include <pv/prop/binding/deviceoptions.h>
+
+namespace pv {
+namespace dialogs {
+
+class DeviceOptions : public QDialog
+{
+public:
+ DeviceOptions(QWidget *parent, struct sr_dev_inst *sdi);
+
+protected:
+ void accept();
+
+private:
+ QVBoxLayout _layout;
+ QDialogButtonBox _button_box;
+
+ pv::prop::binding::DeviceOptions _device_options_binding;
+};
+
+} // namespace dialogs
+} // namespace pv
+
+#endif // PULSEVIEW_PV_DEVICEOPTIONS_H
+++ /dev/null
-/*
- * This file is part of the PulseView project.
- *
- * Copyright (C) 2012 Joel Holdsworth <joel@airwebreathe.org.uk>
- *
- * 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 "hwcap.h"
-
-namespace pv {
-namespace dialogs {
-
-HwCap::HwCap(QWidget *parent, struct sr_dev_inst *sdi) :
- QDialog(parent),
- _layout(this),
- _button_box(QDialogButtonBox::Ok | QDialogButtonBox::Cancel,
- Qt::Horizontal, this),
- _device_options_binding(sdi)
-{
- setWindowTitle(tr("Configure Device"));
-
- connect(&_button_box, SIGNAL(accepted()), this, SLOT(accept()));
- connect(&_button_box, SIGNAL(rejected()), this, SLOT(reject()));
-
- setLayout(&_layout);
-
- QWidget *const form = _device_options_binding.get_form(this);
- _layout.addWidget(form);
-
- _layout.addWidget(&_button_box);
-}
-
-void HwCap::accept()
-{
- QDialog::accept();
- _device_options_binding.commit();
-}
-
-} // namespace dialogs
-} // namespace pv
+++ /dev/null
-/*
- * This file is part of the PulseView project.
- *
- * Copyright (C) 2012 Joel Holdsworth <joel@airwebreathe.org.uk>
- *
- * 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 PULSEVIEW_PV_HWCAP_H
-#define PULSEVIEW_PV_HWCAP_H
-
-#include <QDialog>
-#include <QDialogButtonBox>
-#include <QVBoxLayout>
-
-#include <pv/prop/binding/deviceoptions.h>
-
-namespace pv {
-namespace dialogs {
-
-class HwCap : public QDialog
-{
-public:
- HwCap(QWidget *parent, struct sr_dev_inst *sdi);
-
-protected:
- void accept();
-
-private:
- QVBoxLayout _layout;
- QDialogButtonBox _button_box;
-
- pv::prop::binding::DeviceOptions _device_options_binding;
-};
-
-} // namespace dialogs
-} // namespace pv
-
-#endif // PULSEVIEW_PV_HWCAP_H
#include "samplingbar.h"
-#include <pv/dialogs/hwcap.h>
+#include <pv/dialogs/deviceoptions.h>
namespace pv {
sr_dev_inst *const sdi = get_selected_device();
assert(sdi);
- pv::dialogs::HwCap dlg(this, sdi);
+ pv::dialogs::DeviceOptions dlg(this, sdi);
dlg.exec();
}