WARNING: USE THIS SOFTWARE AT YOUR OWN RISK! THIS IS EXPERIMENTAL SOFTWARE NOT INTENDED FOR PRODUCTION USE! Zuble is currently an early stage prototype. As such Zuble is minimally tested and inherently unstable. It is provided for experimental, development, and demonstration purposes only. Zuble QML Types   |  Zuble C++ Classes   |  Zuble Overview
Zuble  0.1
Zuble Framework C++/QML extension API
ZLogBookmark.h
Go to the documentation of this file.
1 /*
2  * Zuble - A run-time system for QML/Javascript applications
3  * Copyright (C) 2015 Bob Dinitto
4  *
5  * Filename: ZLogBookmark.h
6  * Created on: 11/22/2015
7  * Author: Bob Dinitto
8  *
9  * Zuble is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public
11  * License as published by the Free Software Foundation; either
12  * version 2.1 of the License, or (at your option) any later version.
13  *
14  * This library is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with this library; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22  *
23  */
24 
25 #ifndef ZLOGBOOKMARK_H
26 #define ZLOGBOOKMARK_H
27 
28 #include <QObject>
29 #include "ZLogMap.h"
30 
31 
32 
33 namespace Zbl
34 {
35 class ZLogReader;
36 
37 
46 class ZLogBookmark : public ZLogMap
47 {
48  Q_OBJECT
49 public:
50 
52  {
55  };
56 
57  typedef QList<ZLogBookmark*> zLogBookmarkList;
58 
59  explicit ZLogBookmark(ZLogReader* reader);
60  explicit ZLogBookmark(ZLogReader* reader, const QString& name);
61 
62  Q_PROPERTY(QString name READ getMarkName WRITE setMarkName)
63  Q_PROPERTY(QString note READ getNote WRITE setNote)
64 
65 private:
66  Q_DISABLE_COPY(ZLogBookmark)
67 
68 
69 signals:
70 
71 public slots:
72 
73  QString getMarkName() const;
74  void setMarkName(const QString& name);
75 
76  QString getNote() const;
77  void setNote(const QString& note);
78 
79 protected:
80 
86  virtual int logMapType();
87 
88 
89 #if 0
90 
101  int appendModelRoles(ZTableModel* model, int nextRole);
102 
109  void appendModelData(
110  const MarkNode& logMark,
111  ZDataRow data);
112 #endif
113 
119  QString m_bookmarkName;
120 
125  QString m_note;
126 
127 
131  //int m_nameRole;
132 
137  //int m_noteRole;
138 };
139 
140 } // Zbl
141 
142 
143 #endif // ZLOGBOOKMARK_H
Encapsulates information necessary to locate a collection of log records in a log file...
Definition: ZLogBookmark.h:46
QString m_bookmarkName
Display name for this bookmark.
Definition: ZLogBookmark.h:119
virtual int logMapType()
Returns log map type. Override of ZLogMap::logMapType().
A QML type that manages reading JSON formatted Zuble log files. QML programs create using Zbl...
Definition: ZLogReader.h:62
QString getMarkName() const
Maintains a list of log record links pertaining to a specific log file.
Definition: ZLogMap.h:28
void setNote(const QString &note)
Definition: ZAndGate.cpp:6
QString m_note
Annotation for this bookmark.
Definition: ZLogBookmark.h:125
void setMarkName(const QString &name)
This two dimensional table model is used to store and manipulate data.
Definition: ZTableModel.h:96
QString getNote() const
ZLogBookmark(ZLogReader *reader)
QList< QVariant > ZDataRow
Represents a single row (or column for column headers) of data cell values for a single role...
Definition: ZTableModel.h:57
QList< ZLogBookmark * > zLogBookmarkList
Definition: ZLogBookmark.h:57