118 ID_LATENCYSTART_MAXSLOPE,
119 ID_LATENCYSTART_HALFRISE,
120 ID_LATENCYSTART_PEAK,
121 ID_LATENCYSTART_MANUAL,
123 ID_LATENCYEND_MAXSLOPE,
124 ID_LATENCYEND_HALFRISE,
126 ID_LATENCYEND_MANUAL,
180#include <wx/docview.h>
181#include <wx/docmdi.h>
182#include <wx/fileconf.h>
183#include <wx/settings.h>
190#ifdef _POSIX_C_SOURCE
191#define _POSIX_C_SOURCE_WAS_DEF
192#undef _POSIX_C_SOURCE
195#define _XOPEN_SOURCE_WAS_DEF
199#ifdef _POSIX_C_SOURCE_WAS_DEF
200 #ifndef _POSIX_C_SOURCE
201 #define _POSIX_C_SOURCE
204#ifdef _XOPEN_SOURCE_WAS_DEF
205 #ifndef _XOPEN_SOURCE
206 #define _XOPEN_SOURCE
210#if defined(__WXMAC__) || defined(__WXGTK__)
211 #pragma GCC diagnostic ignored "-Wwrite-strings"
214#if PY_MAJOR_VERSION >= 3
216 #include <wxPython/wxpy_api.h>
218 #include <wx/wxPython/wxPython.h>
222#if defined(__WXMAC__) || defined(__WXGTK__)
223 #pragma GCC diagnostic warning "-Wwrite-strings"
228#if (__cplusplus < 201103)
229 #include <boost/shared_ptr.hpp>
294 wxMessageBox(msg,wxT(
"An error has occured"),wxOK | wxICON_EXCLAMATION,NULL);
303 wxMessageBox(msg,wxT(
"An exception was caught"),wxOK | wxICON_HAND,NULL);
312 wxMessageBox(msg,wxT(
"Information"), wxOK | wxICON_INFORMATION, NULL);
324 directTxtImport=directTxtImport_;
338 txtImport=txtImport_;
344 const std::vector<stfnum::storedFunc>&
GetFuncLib()
const {
return funcLib; }
476 wxDocManager*
GetDocManager()
const {
return wxDocManager::GetDocumentManager(); }
503 void OnKeyDown( wxKeyEvent& event );
506 void ImportPython(
const wxString& modulelocation);
508 bool Init_wxPython();
509 bool Exit_wxPython();
510 std::vector<stf::Extension> LoadExtensions();
513 wxMenuBar* CreateUnifiedMenuBar(
wxStfDoc* doc=NULL);
516#pragma optimize( "", off )
520#pragma optimize( "", on )
523 bool directTxtImport,isBars;
526#if (__cplusplus < 201103)
527 boost::shared_ptr<wxFileConfig> config;
529 std::shared_ptr<wxFileConfig> config;
532 std::vector<stfnum::storedFunc> funcLib;
534 std::vector< stf::Extension > extensionLib;
538 wxDocTemplate* m_cfsTemplate, *m_hdf5Template, *m_txtTemplate,*m_abfTemplate,
539 *m_atfTemplate,*m_axgTemplate,*m_sonTemplate, *m_hekaTemplate, *m_intanTemplate, *m_tdmsTemplate, *m_biosigTemplate;
547 PyThreadState* m_mainTState;
550 DECLARE_EVENT_TABLE()
Represents the data within a file.
Represents a continuously sampled sweep of data points.
See http://www.wxwidgets.org/manuals/stable/wx_wxapp.html (wxWidgets documentation)
See http://www.wxwidgets.org/manuals/stable/wx_wxcommandevent.html (wxWidgets documentation)
See http://www.wxwidgets.org/manuals/stable/wx_wxdocument.html (wxWidgets documentation)
The application, derived from wxApp.
Provides the child frame for displaying documents on separate windows.
Cursor settings non-modal dialog.
The document class, derived from both wxDocument and Recording.
Provides the top-level frame.
The view class, derived from wxView.
See http://www.wxwidgets.org/manuals/stable/wx_wxstring.html (wxWidgets documentation)
See http://www.wxwidgets.org/manuals/stable/wx_wxview.html (wxWidgets documentation)
int GetDocCount()
Returns the number of currently opened documents.
int wxGetProfileInt(const wxString &main, const wxString &sub, int default_) const
Retrieves an integer value from the configuration.
wxStfParentFrame * GetMainFrame()
virtual bool OnInit()
Initialise the application.
bool singleWindowMode
true if in single-window mode
void ErrorMsg(const wxString &msg) const
Displays a message box when an error has occured.
void wxWriteProfileInt(const wxString &main, const wxString &sub, int value) const
Writes an integer value to the configuration.
const stfio::txtImportSettings & GetTxtImport() const
Retrieves the text import filter settings.
wxString GetVersionString() const
Get a formatted version string.
void wxWriteProfileString(const wxString &main, const wxString &sub, const wxString &value) const
Writes a string to the configuration.
wxStfDoc * NewChild(const Recording &NewData, const wxStfDoc *Sender, const wxString &title=wxT("\0"))
Creates a new child window showing a new document.
void set_txtImportSettings(const stfio::txtImportSettings &txtImport_)
Sets the text import filter settings.
wxStfCursorsDlg * GetCursorsDialog() const
Retrieves the cursor settings dialog.
void OnPeakcalcexecMsg(wxStfDoc *actDoc=0)
Execute all pending calculations.
wxDocManager * GetDocManager() const
Access the document manager.
stfnum::storedFunc * GetFuncLibPtr(std::size_t at)
Retrieves a pointer to a function for least-squares minimisation.
bool get_isBars() const
Indicates whether scale bars or coordinates are shown.
StfDll wxStfApp & wxGetApp()
Returns a reference to the application.
virtual void OnInitCmdLine(wxCmdLineParser &parser)
virtual bool OnCmdLineParsed(wxCmdLineParser &parser)
bool CloseAll()
Closes all documents.
void set_isBars(bool value)
Determine whether scale bars or coordinates should be shown.
void SetMRActiveDoc(wxStfDoc *pDoc)
Sets the currently active document.
const std::vector< stf::Extension > & GetExtensionLib() const
Retrieves the user-defined extension functions.
wxString wxGetProfileString(const wxString &main, const wxString &sub, const wxString &default_) const
Retrieves a string from the configuration.
stfnum::storedFunc * GetLinFuncPtr()
Retrieves a pointer to a function for least-squares minimisation.
void set_directTxtImport(bool directTxtImport_)
Determines whether text files should be imported directly without showing an import filter settings d...
const std::vector< stfnum::storedFunc > & GetFuncLib() const
Retrieves the functions that are available for least-squares minimisation.
void OnPythonImport(wxCommandEvent &event)
Opens a dialog to import a Python module.
void CleanupDocument(wxStfDoc *pDoc)
Destroys the last cursor settings dialog when the last document is closed.
bool get_directTxtImport() const
Indicates whether text files should be imported directly without showing an import settings dialog.
virtual int OnExit()
Exit the application.
void InfoMsg(const wxString &msg) const
Displays a message box with information.
void OnNewfromselected(wxCommandEvent &event)
Open a new window showing all selected traces from all open files.
bool OpenFilePy(const wxString &fNameArray)
Opens a file in a new window, to be called from Python.
bool OpenFileSeries(const wxArrayString &fNameArray)
Opens a series of files. Optionally, files can be put into a single window.
wxStfDoc * GetActiveDoc() const
Retrieves the currently active document.
std::vector< stf::SectionPointer > GetSectionsWithFits() const
Retrieves all sections with fits.
wxStfView * GetActiveView() const
Retrieves the currently active view.
wxStfChildFrame * CreateChildFrame(wxDocument *doc, wxView *view)
Creates a new child frame.
void ExceptMsg(const wxString &msg) const
Displays a message box when an exception has occured.
@ ID_ANNOTATION_IMPORTANNOTATIONS
@ ID_ANNOTATION_DetectEvents
@ ID_CONCATENATE_MULTICHANNEL
@ ID_ANNOTATION_ADDANNOTATION
@ ID_ANNOTATION_REMOVEANNOTATION
@ ID_ANNOTATION_EXPORTANNOTATIONS
@ ID_ANNOTATION_ERASEALLANNOTATIONS
#define StfDll
Defines dll export or import functions for Windows.
Text file import filter settings.
Function used for least-squares fitting.