pv/prop/property.cpp
pv/prop/binding/binding.cpp
pv/prop/binding/deviceoptions.cpp
+ pv/toolbars/contextbar.cpp
pv/toolbars/samplingbar.cpp
pv/view/analogsignal.cpp
pv/view/cursor.cpp
pv/dialogs/about.h
pv/dialogs/connect.h
pv/dialogs/deviceoptions.h
+ pv/toolbars/contextbar.h
pv/toolbars/samplingbar.h
pv/view/cursor.h
pv/view/header.h
#include "devicemanager.h"
#include "dialogs/about.h"
#include "dialogs/connect.h"
+#include "toolbars/contextbar.h"
#include "toolbars/samplingbar.h"
#include "view/view.h"
SLOT(run_stop()));
addToolBar(_sampling_bar);
+ // Setup the context bar
+ _context_bar = new toolbars::ContextBar(this);
+ addToolBar(_context_bar);
+ insertToolBarBreak(_context_bar);
+
// Set the title
setWindowTitle(QApplication::translate("MainWindow", "PulseView", 0,
QApplication::UnicodeUTF8));
class DeviceManager;
namespace toolbars {
+class ContextBar;
class SamplingBar;
}
QToolBar *_toolbar;
toolbars::SamplingBar *_sampling_bar;
+ toolbars::ContextBar *_context_bar;
};
} // namespace pv
--- /dev/null
+/*
+ * This file is part of the PulseView project.
+ *
+ * Copyright (C) 2012 Joel Holdsworth <joel@airwebreathe.org.uk>
+ *
+ * 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 "contextbar.h"
+
+using namespace std;
+
+namespace pv {
+namespace toolbars {
+
+ContextBar::ContextBar(QWidget *parent) :
+ QToolBar(tr("Context Bar"), parent)
+{
+}
+
+} // namespace toolbars
+} // namespace pv
--- /dev/null
+/*
+ * This file is part of the PulseView project.
+ *
+ * Copyright (C) 2013 Joel Holdsworth <joel@airwebreathe.org.uk>
+ *
+ * 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 PULSEVIEW_PV_TOOLBARS_CONTEXTBAR_H
+#define PULSEVIEW_PV_TOOLBARS_CONTEXTBAR_H
+
+#include <QToolBar>
+
+namespace pv {
+namespace toolbars {
+
+class ContextBar : public QToolBar
+{
+ Q_OBJECT
+
+public:
+ ContextBar(QWidget *parent);
+};
+
+} // namespace toolbars
+} // namespace pv
+
+#endif // PULSEVIEW_PV_TOOLBARS_CONTEXTBAR_H