]> sigrok.org Git - pulseview.git/blobdiff - pv/views/viewbase.hpp
Introduce ViewBase::is_main_view
[pulseview.git] / pv / views / viewbase.hpp
index 1ac847562cd4462ebe0872d46732106f1b3dd49c..3e180830f897574de522b460cf775f43a264361e 100644 (file)
@@ -15,8 +15,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
  * 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 <http://www.gnu.org/licenses/>.
  */
 
 #ifndef PULSEVIEW_PV_VIEWS_VIEWBASE_HPP
  */
 
 #ifndef PULSEVIEW_PV_VIEWS_VIEWBASE_HPP
@@ -53,7 +52,7 @@ class ViewBase : public QWidget {
        Q_OBJECT
 
 public:
        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;
 
        Session& session();
        const Session& session() const;
@@ -81,6 +80,8 @@ public Q_SLOTS:
 protected:
        Session &session_;
 
 protected:
        Session &session_;
 
+       const bool is_main_view_;
+
        util::TimeUnit time_unit_;
 };
 
        util::TimeUnit time_unit_;
 };