-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #384 from silicon-heaven/cmake-pkg
Add proper exports
- Loading branch information
Showing
41 changed files
with
281 additions
and
224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#include "cchainpack.h" | ||
#include <shv/chainpack/cchainpack.h> | ||
|
||
#include <string.h> | ||
#include <limits.h> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#include "ccpcp.h" | ||
#include <shv/chainpack/ccpcp.h> | ||
|
||
#include <string.h> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#include "ccpon.h" | ||
#include <shv/chainpack/ccpon.h> | ||
|
||
#include <string.h> | ||
#include <math.h> | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,34 @@ | ||
#include "../../../src/logwidget/errorlogmodel.h" | ||
#pragma once | ||
|
||
#include <shv/visu/logtablemodelbase.h> | ||
|
||
#include <shv/visu/shvvisuglobal.h> | ||
|
||
#include <necrologlevel.h> | ||
|
||
namespace shv { | ||
namespace visu { | ||
|
||
class SHVVISU_DECL_EXPORT ErrorLogModel : public LogTableModelBase | ||
{ | ||
Q_OBJECT | ||
|
||
using Super = LogTableModelBase; | ||
public: | ||
ErrorLogModel(QObject *parent = nullptr); | ||
|
||
enum Cols {Level, TimeStamp, Message, UserData, Count}; | ||
|
||
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE; | ||
int columnCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE; | ||
|
||
QVariant data(const QModelIndex &index, int role) const Q_DECL_OVERRIDE; | ||
|
||
NecroLogLevel level(int row) const; | ||
|
||
void addLogRow(NecroLogLevel level, const std::string &msg, const QVariant &user_data = QVariant()); | ||
|
||
}; | ||
|
||
}} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,44 @@ | ||
#include "../../../src/logwidget/logtablemodelbase.h" | ||
#pragma once | ||
|
||
#include <shv/visu/shvvisuglobal.h> | ||
|
||
#include <shv/coreqt/utils.h> | ||
|
||
#include <QAbstractTableModel> | ||
|
||
namespace shv { | ||
namespace visu { | ||
|
||
class SHVVISU_DECL_EXPORT LogTableModelRow : public QVector<QVariant> | ||
{ | ||
public: | ||
explicit LogTableModelRow(int size = 0); | ||
}; | ||
|
||
class SHVVISU_DECL_EXPORT LogTableModelBase : public QAbstractTableModel | ||
{ | ||
Q_OBJECT | ||
private: | ||
typedef QAbstractTableModel Super; | ||
public: | ||
LogTableModelBase(QObject *parent = nullptr); | ||
|
||
enum class Direction {AppendToTop, AppendToBottom}; | ||
|
||
SHV_PROPERTY_IMPL2(Direction, d, D, irection, Direction::AppendToBottom) | ||
SHV_PROPERTY_IMPL2(int, m, M, aximumRowCount, 1000) | ||
|
||
int rowCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE; | ||
QVariant data(const QModelIndex &index, int role) const Q_DECL_OVERRIDE; | ||
|
||
void clear(); | ||
LogTableModelRow rowAt(int row) const; | ||
void addLogRow(const LogTableModelRow &row); | ||
Q_SIGNAL void logRowInserted(int row_no); | ||
protected: | ||
QList<LogTableModelRow> m_rows; | ||
}; | ||
|
||
}} | ||
|
||
|
Oops, something went wrong.