X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fviews%2Fviewbase.hpp;h=f83187e56e73eaf514d2ef2073f85f6d963efdcd;hp=1ac847562cd4462ebe0872d46732106f1b3dd49c;hb=6f925ba9d6faf1077b73c5a5808259576081716a;hpb=f4e57597347e47a4ea58fbdc7b0a22e07f1c0ede diff --git a/pv/views/viewbase.hpp b/pv/views/viewbase.hpp index 1ac8475..f83187e 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_; };