projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tie the "sticky scrolling" setting in with the settings mgmt
[pulseview.git]
/
pv
/
data
/
logic.hpp
diff --git
a/pv/data/logic.hpp
b/pv/data/logic.hpp
index a597027f85f7f3d4cc310bf4ad2d5e2bb334e829..e7f7a055da3db150f12f8365edf16af3b7aec59c 100644
(file)
--- a/
pv/data/logic.hpp
+++ b/
pv/data/logic.hpp
@@
-14,8
+14,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_DATA_LOGIC_HPP
*/
#ifndef PULSEVIEW_PV_DATA_LOGIC_HPP
@@
-25,13
+24,17
@@
#include <deque>
#include <deque>
+#include <QObject>
+
namespace pv {
namespace data {
class LogicSegment;
namespace pv {
namespace data {
class LogicSegment;
-class Logic : public SignalData
+class Logic : public
QObject, public
SignalData
{
{
+ Q_OBJECT
+
public:
Logic(unsigned int num_channels);
public:
Logic(unsigned int num_channels);
@@
-49,6
+52,15
@@
public:
uint64_t max_sample_count() const;
uint64_t max_sample_count() const;
+ void notify_samples_added(QObject* segment, uint64_t start_sample,
+ uint64_t end_sample);
+
+Q_SIGNALS:
+ void samples_cleared();
+
+ void samples_added(QObject* segment, uint64_t start_sample,
+ uint64_t end_sample);
+
private:
const unsigned int num_channels_;
std::deque< std::shared_ptr<LogicSegment> > segments_;
private:
const unsigned int num_channels_;
std::deque< std::shared_ptr<LogicSegment> > segments_;