28#if (__cplusplus < 201103)
29 #include <boost/function.hpp>
46#pragma warning( disable : 4251 )
47#pragma warning( disable : 4996 )
51#if defined(_WINDOWS) && !defined(__MINGW32__)
53 #define StfDll __declspec( dllexport )
55 #define StfDll __declspec( dllimport )
62 #include <wx/wxprec.h>
69 #include <wx/aui/aui.h>
70 #include <wx/docview.h>
71 #include <wx/docmdi.h>
74 #include <wx/wfstream.h>
75 #include <wx/progdlg.h>
92 #define wxCHECK_VERSION(major,minor,release) 0
111 wxProgressInfo(
const std::string& title,
const std::string& message,
int maximum,
bool verbose=
true);
112 bool Update(
int value,
const std::string& newmsg=
"",
bool* skip=NULL);
139#if (__cplusplus < 201103)
157 const std::vector<std::string>& labels_=std::vector<std::string>(0),
159 std::string title_=
"\0"
163 defaults.resize(labels.size());
164 std::fill(defaults.begin(), defaults.end(), 0.0);
213 const std::string& description_,
bool requiresFile_) :
313 std::size_t eventStartIndex;
314 std::size_t eventPeakIndex;
315 std::size_t eventSize;
355const double PI=3.14159265358979323846;
361int round(
double toRound);
404enum pslope_mode_beg {
413enum pslope_mode_end {
435 return toRound <= 0.0 ? int(toRound-0.5) : int(toRound+0.5);
438typedef std::vector< wxString >::iterator
wxs_it;
439typedef std::vector< wxString >::const_iterator
c_wxs_it;
440typedef std::vector< stf::Event >::iterator
event_it;
442typedef std::vector< stf::PyMarker >::iterator
marker_it;
WORD TSTime TpMarker WORD size
Represents the data within a file.
Represents a continuously sampled sweep of data points.
A table used for printing information.
See http://www.wxwidgets.org/manuals/stable/wx_wxcheckbox.html (wxWidgets documentation)
See http://www.wxwidgets.org/manuals/stable/wx_wxdocmdichildframe.html (wxWidgets documentation)
See http://www.wxwidgets.org/manuals/stable/wx_wxdocmdiparentframe.html (wxWidgets documentation)
See http://www.wxwidgets.org/manuals/stable/wx_wxstring.html (wxWidgets documentation)
See http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html (wxWidgets documentation)
std::vector< double > Vector_double
Plugin(const wxString &menuEntry_, const PluginFunc &pluginFunc_, const UserInput &input_=UserInput())
Constructor.
boost::function< Recording(const Recording &, const Vector_double &, std::map< std::string, double > &)> PluginFunc
Get a Recording, do something with it, return the new Recording.
bool GetDiscard() const
Indicates whether an event should be discarded.
std::vector< stf::Event > eventList
SectionAttributes sec_attr
ifstreamMan(const wxString &filename)
Constructor.
Extension(const std::string &menuEntry_, void *pyFunc_, const std::string &description_, bool requiresFile_)
Constructor.
wxString CreatePreview(const wxString &fName)
Creates a preview of a text file.
std::size_t GetEventSize() const
Retrieves the size of an event.
wxFFile myStream
The managed stream.
wxString std2wx(const std::string &sst)
std::string wx2std(const wxString &wxs)
int round(double toRound)
Does what it says.
const double PI
Add decimals if you are not satisfied.
Event(std::size_t start, std::size_t peak, std::size_t size, wxCheckBox *cb)
Constructor.
latency_mode
Latency cursor settings.
void SetEventStartIndex(std::size_t value)
Sets the start index of an event.
UserInput(const std::vector< std::string > &labels_=std::vector< std::string >(0), const Vector_double &defaults_=Vector_double(0), std::string title_="\0")
Constructor.
bool Update(int value, const std::string &newmsg="", bool *skip=NULL)
Updates the progress info.
~ifstreamMan()
Destructor.
wxProgressInfo(const std::string &title, const std::string &message, int maximum, bool verbose=true)
wxString sectionToString(const Section §ion)
Converts a Section to a wxString.
~ofstreamMan()
Destructor.
zoom_channels
Determines which channels to scale.
std::vector< stf::PyMarker > pyMarkers
wxFFile myStream
The managed stream.
void SetEventSize(std::size_t value)
Sets the size of an event.
PyMarker(double xv, double yv)
Constructor.
stfnum::storedFunc * fitFunc
std::vector< std::string > labels
extraction_mode
Deconvolution.
std::size_t GetEventPeakIndex() const
Retrieves the index of an event's peak.
wxString noPath(const wxString &fName)
Strips the directory off a full path name, returns only the filename.
cursor_type
Mouse cursor types.
wxCheckBox * GetCheckBox()
Get the check box associated with this event.
latency_window_mode
Latency window settings.
SectionPointer(Section *pSec=NULL, const SectionAttributes &sa=SectionAttributes())
ofstreamMan(const wxString &filename)
Constructor.
std::size_t GetEventStartIndex() const
Retrieves the start index of an event.
void SetEventPeakIndex(std::size_t value)
Sets the index of an event's peak.
std::vector< stf::PyMarker >::const_iterator c_marker_it
std::vector< stf::Event >::const_iterator c_event_it
std::vector< wxString >::const_iterator c_wxs_it
wxDocMDIParentFrame wxStfParentType
parent frame type; depends on whether aui is used for the doc/view interface
wxDocMDIChildFrame wxStfChildType
child frame type; depends on whether aui is used for the doc/view interface
std::vector< stf::PyMarker >::iterator marker_it
std::vector< wxString >::iterator wxs_it
#define StfDll
Defines dll export or import functions for Windows.
std::vector< stf::Event >::iterator event_it
Function used for least-squares fitting.
Declares the Zoom struct.