Stimfit  0.13.15
Public Member Functions

Dialog for text import filter settings. More...

#include <smalldlgs.h>

Inheritance diagram for wxStfTextImportDlg:
Inheritance graph
[legend]
Collaboration diagram for wxStfTextImportDlg:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 wxStfTextImportDlg (wxWindow *parent, const wxString &textPreview=wxT("\0"), int hLines_=1, bool isSeries=false, int id=wxID_ANY, wxString title=wxT("Text file import settings"), wxPoint pos=wxDefaultPosition, wxSize size=wxDefaultSize, int style=wxCAPTION)
 Constructor.
int GetHLines () const
 Get the number of header lines.
bool ToSection () const
 Indicates whether columns should be put into section or into channels.
bool FirstIsTime () const
 Indicates whether the first column contains time values.
int GetNColumns () const
 Get the number of columns.
double GetSR () const
 Get the sampling rate.
const wxStringGetYUnits () const
 Get the y units of the first channel.
const wxStringGetYUnitsCh2 () const
 Get the y units of the second channel.
const wxStringGetXUnits () const
 Get the x units.
bool ApplyToAll () const
 Indicates whether the settings apply to all files in a series.
stfio::txtImportSettings GetTxtImport () const
 Get the text import filter settings struct.
virtual void EndModal (int retCode)
 Called upon ending a modal dialog.

Detailed Description

Dialog for text import filter settings.

Definition at line 580 of file smalldlgs.h.


Constructor & Destructor Documentation

wxStfTextImportDlg::wxStfTextImportDlg ( wxWindow parent,
const wxString textPreview = wxT("\0"),
int  hLines_ = 1,
bool  isSeries = false,
int  id = wxID_ANY,
wxString  title = wxT("Text file import settings"),
wxPoint  pos = wxDefaultPosition,
wxSize  size = wxDefaultSize,
int  style = wxCAPTION 
)

Constructor.

Parameters:
parentPointer to parent window.
textPreviewThe preview text to be shown.
hLines_The number of header lines that are initially set.
isSeriesSet this to true for file series so that they can be batch-opened.
idWindow id.
titleDialog title.
posInitial position.
sizeInitial size.
styleDialog style.

Member Function Documentation

bool wxStfTextImportDlg::ApplyToAll ( ) const [inline]

Indicates whether the settings apply to all files in a series.

Returns:
true if the settings apply to all files.

Definition at line 680 of file smalldlgs.h.

virtual void wxStfTextImportDlg::EndModal ( int  retCode) [virtual]

Called upon ending a modal dialog.

Parameters:
retCodeThe dialog button id that ended the dialog (e.g. wxID_OK)
bool wxStfTextImportDlg::FirstIsTime ( ) const [inline]

Indicates whether the first column contains time values.

Returns:
true is the first column contains time values.

Definition at line 650 of file smalldlgs.h.

int wxStfTextImportDlg::GetHLines ( ) const [inline]

Get the number of header lines.

Returns:
The number of header lines.

Definition at line 640 of file smalldlgs.h.

int wxStfTextImportDlg::GetNColumns ( ) const [inline]

Get the number of columns.

Returns:
The number of columns.

Definition at line 655 of file smalldlgs.h.

double wxStfTextImportDlg::GetSR ( ) const [inline]

Get the sampling rate.

Returns:
The sampling rate.

Definition at line 660 of file smalldlgs.h.

Get the text import filter settings struct.

Returns:
The stf::txtImportSettings struct.
const wxString& wxStfTextImportDlg::GetXUnits ( ) const [inline]

Get the x units.

Returns:
The x units.

Definition at line 675 of file smalldlgs.h.

const wxString& wxStfTextImportDlg::GetYUnits ( ) const [inline]

Get the y units of the first channel.

Returns:
The y units of the first channel.

Definition at line 665 of file smalldlgs.h.

const wxString& wxStfTextImportDlg::GetYUnitsCh2 ( ) const [inline]

Get the y units of the second channel.

Returns:
The y units of the second channel.

Definition at line 670 of file smalldlgs.h.

bool wxStfTextImportDlg::ToSection ( ) const [inline]

Indicates whether columns should be put into section or into channels.

Returns:
true if they should be put into sections.

Definition at line 645 of file smalldlgs.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines