Skip to content

Commit

Permalink
Prepare SoftClipChart
Browse files Browse the repository at this point in the history
  • Loading branch information
mincequi committed Dec 20, 2019
1 parent 6f3f61c commit 79d1954
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ble/ble.pro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
TEMPLATE = lib
QT -= gui
CONFIG += staticlib c++11 create_prl
CONFIG += staticlib create_prl

include(../cornrow.pri)

Expand Down
4 changes: 2 additions & 2 deletions common/common.pro
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
TEMPLATE = lib
QT -= gui
CONFIG += staticlib c++11 create_prl
CONFIG += staticlib create_prl

QMAKE_CXXFLAGS += -Werror
include(../cornrow.pri)

SOURCES += \
src/Util.cpp \
Expand Down
3 changes: 3 additions & 0 deletions cornrow.pri
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
QMAKE_CXXFLAGS += -Werror -Wno-shorten-64-to-32

#QMAKE_CXXFLAGS += -lstdc++
#CONFIG += c++11

INCLUDEPATH += \
../ble/include \
../common/include
8 changes: 5 additions & 3 deletions corocomo/corocomo.pro
Original file line number Diff line number Diff line change
Expand Up @@ -29,25 +29,27 @@ SOURCES += \
src/BleCentralAdapter.cpp \
src/BodePlotModel.cpp \
src/BusyIndicatorModel.cpp \
src/Config.cpp \
src/EqChart.cpp \
src/IoModel.cpp \
src/Model.cpp \
src/PhaseChart.cpp \
src/Plot.cpp \
src/PresetModel.cpp \
src/main.cpp \
src/Config.cpp
src/SoftClipChart.cpp \
src/main.cpp

HEADERS += \
src/BleCentralAdapter.h \
src/BodePlotModel.h \
src/BusyIndicatorModel.h \
src/Config.h \
src/EqChart.h \
src/IoModel.h \
src/Model.h \
src/PhaseChart.h \
src/PresetModel.h \
src/Config.h
src/SoftClipChart.h

RESOURCES += qml.qrc

Expand Down
1 change: 1 addition & 0 deletions corocomo/src/Plot.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once

#include <QList>
#include <QPolygonF>

#include <common/Types.h>
Expand Down
2 changes: 2 additions & 0 deletions corocomo/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include "Model.h"
#include "PhaseChart.h"
#include "PresetModel.h"
#include "SoftClipChart.h"

int main(int argc, char *argv[])
{
Expand All @@ -30,6 +31,7 @@ int main(int argc, char *argv[])
qmlRegisterType<BusyIndicatorModel>("Cornrow.BusyIndicatorModel", 1, 0, "CornrowBusyIndicatorModel");
qmlRegisterType<EqChart>("Cornrow.EqChart", 1, 0, "CornrowEqChart");
qmlRegisterType<PhaseChart>("Cornrow.PhaseChart", 1, 0, "CornrowPhaseChart");
qmlRegisterType<SoftClipChart>("Cornrow.SoftClipChart", 1, 0, "CornrowSoftClipChart");
qmlRegisterSingletonType<Config>("Cornrow.Configuration", 1, 0, "CornrowConfiguration", [](QQmlEngine*, QJSEngine*) -> QObject* {
return Config::instance();
});
Expand Down
12 changes: 12 additions & 0 deletions corocomo/src/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import Cornrow.EqChart 1.0
import Cornrow.IoModel 1.0
import Cornrow.Model 1.0
import Cornrow.PhaseChart 1.0
import Cornrow.SoftClipChart 1.0

ApplicationWindow {
id: appWindow
Expand Down Expand Up @@ -169,6 +170,17 @@ ApplicationWindow {
}
}
}

/*
CornrowSoftClipChart {
id: softClipChart
currentFilter: CornrowModel.currentBand
currentPlotColor: Material.accent
plotColor: Material.foreground
sumPlotColor: Material.accent
criticalColor: Material.color(Material.Pink)
}
*/
}

PageIndicator {
Expand Down

0 comments on commit 79d1954

Please sign in to comment.