X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fviews%2Fviewbase.hpp;h=f83187e56e73eaf514d2ef2073f85f6d963efdcd;hb=12ea3616767553ee0a615f14bbcb8ec614589e34;hp=1ac847562cd4462ebe0872d46732106f1b3dd49c;hpb=f4e57597347e47a4ea58fbdc7b0a22e07f1c0ede;p=pulseview.git
diff --git a/pv/views/viewbase.hpp b/pv/views/viewbase.hpp
index 1ac84756..f83187e5 100644
--- a/pv/views/viewbase.hpp
+++ b/pv/views/viewbase.hpp
@@ -15,8 +15,7 @@
* 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
+ * along with this program; if not, see .
*/
#ifndef PULSEVIEW_PV_VIEWS_VIEWBASE_HPP
@@ -33,6 +32,8 @@
#include
#include
+using std::shared_ptr;
+
namespace pv {
class Session;
@@ -53,7 +54,7 @@ class ViewBase : public QWidget {
Q_OBJECT
public:
- explicit ViewBase(Session &session, QWidget *parent = 0);
+ explicit ViewBase(Session &session, bool is_main_view=false, QWidget *parent = 0);
Session& session();
const Session& session() const;
@@ -63,9 +64,9 @@ public:
#ifdef ENABLE_DECODE
virtual void clear_decode_signals();
- virtual void add_decode_signal(std::shared_ptr signalbase);
+ virtual void add_decode_signal(shared_ptr signalbase);
- virtual void remove_decode_signal(std::shared_ptr signalbase);
+ virtual void remove_decode_signal(shared_ptr signalbase);
#endif
virtual void save_settings(QSettings &settings) const;
@@ -81,6 +82,8 @@ public Q_SLOTS:
protected:
Session &session_;
+ const bool is_main_view_;
+
util::TimeUnit time_unit_;
};