logicsignal.cpp
main.cpp
mainwindow.cpp
+ samplingbar.cpp
signaldata.cpp
sigsession.cpp
signal.cpp
set(sigrok-qt2_HEADERS
about.h
mainwindow.h
+ samplingbar.h
sigsession.h
sigview.h
)
#include "mainwindow.h"
#include "ui_mainwindow.h"
+#include "samplingbar.h"
#include "sigview.h"
extern "C" {
{
ui->setupUi(this);
+ _sampling_bar = new SamplingBar(this);
+ addToolBar(_sampling_bar);
+
view = new SigView(session, this);
ui->verticalLayout->addWidget(view);
}
#include "sigsession.h"
+class SamplingBar;
class SigView;
namespace Ui {
private:
Ui::MainWindow *ui;
+
+ SamplingBar *_sampling_bar;
+
SigSession session;
SigView *view;
--- /dev/null
+/*
+ * This file is part of the sigrok 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 "samplingbar.h"
+
+SamplingBar::SamplingBar(QWidget *parent) :
+ QToolBar("Sampling Bar", parent)
+{
+}
--- /dev/null
+/*
+ * This file is part of the sigrok 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 SAMPLINGBAR_H
+#define SAMPLINGBAR_H
+
+#include <QToolBar>
+
+class SamplingBar : public QToolBar
+{
+ Q_OBJECT
+
+public:
+ SamplingBar(QWidget *parent);
+};
+
+#endif // SAMPLINGBAR_H