Skip to content

Commit 22debb3

Browse files
authored
Merge pull request #17 from CompEphys-team/development
v6.1 ready
2 parents 71e3839 + 2a475fc commit 22debb3

191 files changed

Lines changed: 54501 additions & 39238 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
StdpC.pro.user
1+
StdpC.pro.user
2+
manual/*-converted-to.pdf
3+
manual/manual.aux
4+
manual/manual.bbl
5+
manual/manual.blg
6+
manual/manual.log
7+
manual/manual.synctex.gz

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "src/lib/randutils"]
2+
path = src/lib/randutils
3+
url = https://gist.github.com/imneme/540829265469e673d045

StdpC.pro

Lines changed: 96 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# StdpC project file #
22

3+
# To enable DigiData support, uncoment the following line (requires mingw)
4+
#CONFIG += digidata
5+
36
# To enable NI support, uncomment the following line (requires NIDAQmx 15.5.1 or newer)
47
# If NIDAQmx is detected, this has no effect.
58
#CONFIG += nidaqmx
@@ -9,33 +12,27 @@
912

1013
TARGET = StdpC
1114
QT+= widgets printsupport
12-
DEPENDPATH += $$PWD/ \
13-
$$PWD/src \
14-
$$PWD/src/core \
15-
$$PWD/src/drivers \
16-
$$PWD/src/gui \
17-
$$PWD/src/models \
18-
$$PWD/src/include \
19-
$$PWD/lib
20-
INCLUDEPATH += $$PWD \
21-
$$PWD/src \
22-
$$PWD/src/core \
23-
$$PWD/src/drivers \
24-
$$PWD/src/gui \
25-
$$PWD/src/models \
15+
INCLUDEPATH += \
2616
$$PWD/src/include \
27-
$$PWD/lib
17+
$$PWD/src/lib
2818
TEMPLATE = app
2919
CONFIG += qt \
3020
thread \
31-
debug_and_release
21+
debug_and_release \
22+
c++11
3223

3324
CONFIG(release, debug|release): DEFINES += NDEBUG
3425

35-
QMAKE_CXXFLAGS += -std=c++11
26+
mingw {
27+
QMAKE_CXXFLAGS_RELEASE += -O3 -flto
28+
QMAKE_LFLAGS_RELEASE += -O3 -flto
3629

37-
static {
38-
QMAKE_LFLAGS += -static
30+
static {
31+
QMAKE_LFLAGS += -static
32+
}
33+
}
34+
msvc {
35+
QMAKE_CXXFLAGS_RELEASE += /Ox
3936
}
4037

4138
# A directory to place intermediary build files.
@@ -56,7 +53,6 @@ FORMS += $$PWD/src/gui/MainWin.ui \
5653
$$PWD/src/gui/AlphaBetaHHDlg.ui \
5754
$$PWD/src/gui/OutputChannelDlg.ui \
5855
$$PWD/src/gui/SimulDAQDlg.ui \
59-
$$PWD/src/gui/DigiDataDlg.ui \
6056
$$PWD/src/gui/ElectrodeCompDlg.ui \
6157
$$PWD/src/gui/AbSynDlg.ui \
6258
$$PWD/src/gui/DataSavingDlg.ui \
@@ -67,7 +63,16 @@ FORMS += $$PWD/src/gui/MainWin.ui \
6763
$$PWD/src/gui/DaqWidget.ui \
6864
$$PWD/src/gui/DaqFactoryWidget.ui \
6965
$$PWD/src/gui/SpikeGenDlg.ui \
70-
$$PWD/src/gui/PerformanceMonitor.ui
66+
$$PWD/src/gui/PerformanceMonitor.ui \
67+
$$PWD/src/gui/GraphWidget.ui \
68+
$$PWD/src/gui/SynapticNoiseDlg.ui \
69+
$$PWD/src/gui/TriggerDlg.ui \
70+
$$PWD/src/gui/VoltageClampDlg.ui \
71+
$$PWD/src/gui/VStepsDlg.ui \
72+
$$PWD/src/gui/WireDlg.ui \
73+
src/gui/treewidgetitem_datasources.ui \
74+
src/gui/treewidgetitem_models.ui \
75+
src/gui/InputConductanceDlg.ui
7176

7277
HEADERS += \
7378
$$PWD/src/include/Mainwin.h \
@@ -81,12 +86,8 @@ HEADERS += \
8186
$$PWD/src/include/LUtables.h \
8287
$$PWD/src/include/InputChannelDlg.h \
8388
$$PWD/src/include/OutputChannelDlg.h \
84-
$$PWD/src/include/DigiData.h \
8589
$$PWD/src/include/Channels.h \
86-
$$PWD/src/include/Pt_ioctl_tn.h \
87-
$$PWD/src/include/PortTalkX_IOCTL.h \
8890
$$PWD/src/include/SimulDAQDlg.h \
89-
$$PWD/src/include/DigiDataDlg.h \
9091
$$PWD/src/include/ChemSyn.h \
9192
$$PWD/src/include/GapJunction.h \
9293
$$PWD/src/include/HH.h \
@@ -120,7 +121,6 @@ HEADERS += \
120121
$$PWD/src/include/DaqTable.h \
121122
$$PWD/src/include/DaqWidget.h \
122123
$$PWD/src/include/DeviceManager.h \
123-
$$PWD/src/include/ComponentPrototype.h \
124124
$$PWD/src/include/Component.h \
125125
$$PWD/src/include/WideComboBox.h \
126126
$$PWD/src/include/DaqOpts.h \
@@ -135,7 +135,26 @@ HEADERS += \
135135
$$PWD/src/include/ModelOpts.h \
136136
$$PWD/src/include/ModelDlg.h \
137137
$$PWD/src/include/Util.h \
138-
$$PWD/src/include/PerformanceMonitor.h
138+
$$PWD/src/include/PerformanceMonitor.h \
139+
$$PWD/src/include/ConductanceManager.h \
140+
$$PWD/src/include/Conductance.h \
141+
$$PWD/src/include/Synapse.h \
142+
$$PWD/src/include/ConductanceDlg.h \
143+
$$PWD/src/include/IonicCurrent.h \
144+
$$PWD/src/include/GraphWidget.h \
145+
$$PWD/src/include/SynapticNoise.h \
146+
$$PWD/src/include/SynapticNoiseDlg.h \
147+
$$PWD/src/include/TriggerDlg.h \
148+
$$PWD/src/include/VoltageClampDlg.h \
149+
$$PWD/src/include/VoltageClamp.h \
150+
$$PWD/src/include/VStepsDlg.h \
151+
$$PWD/src/include/VSteps.h \
152+
$$PWD/src/include/Wire.h \
153+
$$PWD/src/include/WireDlg.h \
154+
src/include/treewidgetitem_datasources.h \
155+
src/include/treewidgetitem_models.h \
156+
src/include/InputConductance.h \
157+
src/include/InputConductanceDlg.h
139158

140159
SOURCES += $$PWD/src/core/Main.cpp \
141160
$$PWD/src/gui/MainWin.cpp \
@@ -151,10 +170,8 @@ SOURCES += $$PWD/src/core/Main.cpp \
151170
$$PWD/src/core/Global.cpp \
152171
$$PWD/src/core/Global_func.cpp \
153172
$$PWD/src/gui/OutputChannelDlg.cpp \
154-
$$PWD/src/drivers/DigiData.cpp \
155173
$$PWD/src/core/Channels.cpp \
156174
$$PWD/src/gui/SimulDAQDlg.cpp \
157-
$$PWD/src/gui/DigiDataDlg.cpp \
158175
$$PWD/src/models/ChemSyn.cpp \
159176
$$PWD/src/models/GapJunction.cpp \
160177
$$PWD/src/models/HH.cpp \
@@ -194,9 +211,41 @@ SOURCES += $$PWD/src/core/Main.cpp \
194211
$$PWD/src/gui/ModelOpts.cpp \
195212
$$PWD/src/gui/DaqOpts.cpp \
196213
$$PWD/src/core/Util.cpp \
197-
$$PWD/src/gui/PerformanceMonitor.cpp
214+
$$PWD/src/gui/PerformanceMonitor.cpp \
215+
$$PWD/src/core/ConductanceManager.cpp \
216+
$$PWD/src/models/Synapse.cpp \
217+
$$PWD/src/models/IonicCurrent.cpp \
218+
$$PWD/src/gui/Component.cpp \
219+
$$PWD/src/gui/GraphWidget.cpp \
220+
$$PWD/src/models/SynapticNoise.cpp \
221+
$$PWD/src/gui/SynapticNoiseDlg.cpp \
222+
$$PWD/src/gui/TriggerDlg.cpp \
223+
$$PWD/src/gui/VoltageClampDlg.cpp \
224+
$$PWD/src/models/VoltageClamp.cpp \
225+
$$PWD/src/gui/VStepsDlg.cpp \
226+
$$PWD/src/models/VSteps.cpp \
227+
$$PWD/src/models/Wire.cpp \
228+
src/gui/WireDlg.cpp \
229+
src/gui/treewidgetitem_datasources.cpp \
230+
src/gui/treewidgetitem_models.cpp \
231+
src/models/InputConductance.cpp \
232+
src/gui/InputConductanceDlg.cpp
198233

199-
LIBS += $$PWD/staticlib/pt_ioctl_tn.a
234+
digidata {
235+
mingw {
236+
LIBS += $$PWD/staticlib/pt_ioctl_tn.a
237+
FORMS += $$PWD/src/gui/DigiDataDlg.ui
238+
HEADERS += $$PWD/src/include/DigiData.h \
239+
$$PWD/src/include/DigiDataDlg.h \
240+
$$PWD/src/include/Pt_ioctl_tn.h \
241+
$$PWD/src/include/PortTalkX_IOCTL.h
242+
SOURCES += $$PWD/src/drivers/DigiData.cpp \
243+
$$PWD/src/gui/DigiDataDlg.cpp
244+
DEFINES += DIGIDATA_PT
245+
} else {
246+
message("Digidata is not supported in msvc build.")
247+
}
248+
}
200249

201250
NIDAQPATH = $$(NIEXTCCOMPILERSUPP)
202251
isEmpty(NIDAQPATH) {
@@ -208,15 +257,26 @@ isEmpty(NIDAQPATH) {
208257

209258
nidaqmx {
210259
# NIDAQmx static build based on NI DAQmx 15.5.1
211-
DEPENDPATH += $$PWD/src/nidaqmx
260+
mingw {
261+
DEPENDPATH += $$PWD/src/nidaqmx
262+
INCLUDEPATH += $$PWD/src/nidaqmx
263+
LIBS += $$PWD/src/nidaqmx/nidaqmx.a
264+
}
265+
msvc {
266+
contains(QMAKE_HOST.arch, x86_64) {
267+
LIBS += $$NIDAQPATH/lib64/msvc/NIDAQmx.lib
268+
} else {
269+
LIBS += $$NIDAQPATH/lib32/msvc/NIDAQmx.lib
270+
}
271+
INCLUDEPATH += $$NIDAQPATH/include
272+
}
273+
212274
SOURCES += $$PWD/src/gui/NIDAQDlg.cpp \
213-
$$PWD/src/drivers/Nidaq.cpp
275+
$$PWD/src/drivers/Nidaq.cpp
214276
FORMS += $$PWD/src/gui/NIDAQDlg.ui
215277

216278
HEADERS += $$PWD/src/include/NIDAQDlg.h \
217-
$$PWD/src/include/Nidaq.h
279+
$$PWD/src/include/Nidaq.h
218280

219-
INCLUDEPATH += $$PWD/src/nidaqmx
220-
LIBS += $$PWD/src/nidaqmx/nidaqmx.a
221281
DEFINES += NATIONAL_INSTRUMENTS
222282
}

0 commit comments

Comments
 (0)