From: Joel Holdsworth Date: Sat, 26 May 2012 07:42:38 +0000 (+0100) Subject: Added SigView X-Git-Tag: pulseview-0.1.0~355 X-Git-Url: https://sigrok.org/gitweb/?a=commitdiff_plain;h=6fa02541c670ebdd8a1985a29aba798823469f64;hp=be20a3b8f5964a3303af1726e66671fa967a5fe7;p=pulseview.git Added SigView --- 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