From 6fa02541c670ebdd8a1985a29aba798823469f64 Mon Sep 17 00:00:00 2001 From: Joel Holdsworth Date: Sat, 26 May 2012 08:42:38 +0100 Subject: [PATCH] Added SigView --- mainwindow.ui | 22 ++++++++++++++++++---- sigrok-qt2.pro | 6 ++++-- sigview.cpp | 26 ++++++++++++++++++++++++++ sigview.h | 38 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 86 insertions(+), 6 deletions(-) create mode 100644 sigview.cpp create mode 100644 sigview.h diff --git a/mainwindow.ui b/mainwindow.ui index 647ac2b8..566c6dab 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -34,7 +34,16 @@ - + + + + 0 + + + + + + @@ -43,8 +52,13 @@ - - - + + + SigView + QAbstractScrollArea +
sigview.h
+
+
+ diff --git a/sigrok-qt2.pro b/sigrok-qt2.pro index b10f6cbb..ac5ea48f 100644 --- a/sigrok-qt2.pro +++ b/sigrok-qt2.pro @@ -15,10 +15,12 @@ DEFINES += APP_VERSION=\\\"$$VERSION\\\" SOURCES += main.cpp\ mainwindow.cpp \ - about.cpp + about.cpp \ + sigview.cpp HEADERS += mainwindow.h \ - about.h + about.h \ + sigview.h FORMS += mainwindow.ui \ about.ui diff --git a/sigview.cpp b/sigview.cpp new file mode 100644 index 00000000..ac7e76c8 --- /dev/null +++ b/sigview.cpp @@ -0,0 +1,26 @@ +/* + * This file is part of the sigrok project. + * + * Copyright (C) 2012 Joel Holdsworth + * + * 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 "sigview.h" + +SigView::SigView(QWidget *parent) : + QAbstractScrollArea(parent) +{ +} diff --git a/sigview.h b/sigview.h new file mode 100644 index 00000000..318104b9 --- /dev/null +++ b/sigview.h @@ -0,0 +1,38 @@ +/* + * This file is part of the sigrok project. + * + * Copyright (C) 2012 Joel Holdsworth + * + * 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 SIGVIEW_H +#define SIGVIEW_H + +#include + +class SigView : public QAbstractScrollArea +{ + Q_OBJECT +public: + explicit SigView(QWidget *parent = 0); + +signals: + +public slots: + +}; + +#endif // SIGVIEW_H -- 2.30.2