Extend TDMS support

parent 56d0dd87
......@@ -440,6 +440,12 @@ Section "Uninstall"
ReadRegStr $R0 HKCR ".atf" "AM_OLD_VALUE"
WriteRegStr HKCR ".atf" "" $R0
; --> .tdms
ReadRegStr $R0 HKCR ".tdms" ""
StrCmp $R0 "${REG_NAME}" 0 +3
ReadRegStr $R0 HKCR ".tdms" "AM_OLD_VALUE"
WriteRegStr HKCR ".tdms" "" $R0
SetDetailsPrint textonly
DetailPrint "Successfully uninstalled stimfit"
SetDetailsPrint listonly
......@@ -518,6 +524,16 @@ Section ".atf (Axon text file)" SecAssATF
already_stf:
SectionEnd
; --> .tdms
Section ".tdms (Mantis TDMS file)" SecAssTDMS
ReadRegStr $R0 HKCR ".tdms" ""
StrCmp $R0 "${REG_NAME}" already_stf no_stf
no_stf:
WriteRegStr HKCR ".tdms" "AM_OLD_VALUE" $R0
WriteRegStr HKCR ".tdms" "" "${REG_NAME}"
already_stf:
SectionEnd
SubSectionEnd
;--------------------------------
......
......@@ -526,7 +526,7 @@ private:
// Pointer to the cursors settings dialog box
wxStfCursorsDlg* CursorsDialog;
wxDocTemplate* m_cfsTemplate, *m_hdf5Template, *m_txtTemplate,*m_abfTemplate,
*m_atfTemplate,*m_axgTemplate,*m_sonTemplate, *m_hekaTemplate, *m_intanTemplate, *m_biosigTemplate;
*m_atfTemplate,*m_axgTemplate,*m_sonTemplate, *m_hekaTemplate, *m_intanTemplate, *m_tdmsTemplate, *m_biosigTemplate;
stfnum::storedFunc storedLinFunc;
// wxMenu* m_file_menu;
wxString m_fileToLoad;
......
......@@ -220,7 +220,7 @@ bool wxStfDoc::OnOpenDocument(const wxString& filename) {
if (wxDocument::OnOpenDocument(filename)) { //calls base class function
#ifndef TEST_MINIMAL
#if (defined(WITH_BIOSIG) || defined(WITH_BIOSIG2) && !defined(__WXMAC__))
#if 0 //(defined(WITH_BIOSIG) || defined(WITH_BIOSIG2) && !defined(__WXMAC__))
// Detect type of file according to filter:
wxString filter(GetDocumentTemplate()->GetFileFilter());
#else
......@@ -728,6 +728,7 @@ bool wxStfDoc::SaveAs() {
filters += wxT("CED filing system (*.dat;*.cfs)|*.dat;*.cfs|");
filters += wxT("Axon text file (*.atf)|*.atf|");
filters += wxT("Igor binary wave (*.ibw)|*.ibw|");
filters += wxT("Mantis TDMS file (*.tdms)|*.tdms|");
filters += wxT("Text file series (*.txt)|*.txt|");
#if (defined(WITH_BIOSIG) || defined(WITH_BIOSIG2))
filters += wxT("GDF file (*.gdf)|*.gdf");
......@@ -747,7 +748,8 @@ bool wxStfDoc::SaveAs() {
case 1: type=stfio::cfs; break;
case 2: type=stfio::atf; break;
case 3: type=stfio::igor; break;
case 4: type=stfio::ascii; break;
case 4: type=stfio::tdms; break;
case 5: type=stfio::ascii; break;
#if (defined(WITH_BIOSIG) || defined(WITH_BIOSIG2))
default: type=stfio::biosig;
#else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment