Stimfit @PACKAGE_VERSION@
Loading...
Searching...
No Matches
convertdlg.h
Go to the documentation of this file.
1// This program is free software; you can redistribute it and/or
2// modify it under the terms of the GNU General Public License
3// as published by the Free Software Foundation; either version 2
4// of the License, or (at your option) any later version.
5
6// This program is distributed in the hope that it will be useful,
7// but WITHOUT ANY WARRANTY; without even the implied warranty of
8// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9// GNU General Public License for more details.
10
11// You should have received a copy of the GNU General Public License
12// along with this program; if not, write to the Free Software
13// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14
20
21#ifndef _CONVERTDLG_H
22#define _CONVERTDLG_H
23
27
28#include <wx/dirctrl.h>
29#include <wx/filename.h>
30#include <vector>
31#include "./../../stf.h"
32
35{
36 DECLARE_EVENT_TABLE()
37
38private:
39 wxGenericDirCtrl *mySrcDirCtrl, *myDestDirCtrl;
40 wxString srcDir,destDir;
41 wxString srcFilter;
42 wxCheckBox* myCheckBoxSubdirs;
43
44 stfio::filetype srcFilterExt, destFilterExt;
45 wxArrayString srcFileNames;
46
47 bool ReadPath(const wxString& path);
48
49 void OnComboBoxSrcExt(wxCommandEvent& event);
50 void OnComboBoxDestExt(wxCommandEvent& event);
51
53
55 bool OnOK();
56
57public:
59
66 wxStfConvertDlg( wxWindow* parent, int id = wxID_ANY, wxString title = wxT("Convert file series"),
67 wxPoint pos = wxDefaultPosition, wxSize size = wxDefaultSize, int style = wxCAPTION );
68
70
72 wxString GetSrcDir() const {return srcDir;}
73
75
77 wxString GetDestDir() const {return destDir;}
78
80
82 wxString GetSrcFilter() const {return srcFilter;}
83
85
87 stfio::filetype GetSrcFileExt() const {return srcFilterExt;}
88
90
92 stfio::filetype GetDestFileExt() const {return destFilterExt;}
93
95
97 wxArrayString GetSrcFileNames() const {return srcFileNames;}
98
100
103 virtual void EndModal(int retCode);
104
105};
106
107/* @} */
108
109#endif
WORD TSTime TpMarker WORD size
Definition Son.h:337
See http://www.wxwidgets.org/manuals/stable/wx_wxcheckbox.html (wxWidgets documentation)
See http://www.wxwidgets.org/manuals/stable/wx_wxcommandevent.html (wxWidgets documentation)
See http://www.wxwidgets.org/manuals/stable/wx_wxdialog.html (wxWidgets documentation)
See http://www.wxwidgets.org/manuals/stable/wx_wxpoint.html (wxWidgets documentation)
See http://www.wxwidgets.org/manuals/stable/wx_wxsize.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)
filetype
File types.
Definition stfio.h:116
wxString GetDestDir() const
Get the destination directory.
Definition convertdlg.h:77
wxArrayString GetSrcFileNames() const
Get the list of file names.
Definition convertdlg.h:97
wxString GetSrcDir() const
Get the source directory.
Definition convertdlg.h:72
wxString GetSrcFilter() const
Get the source extension filter.
Definition convertdlg.h:82
virtual void EndModal(int retCode)
Called upon ending a modal dialog.
wxStfConvertDlg(wxWindow *parent, int id=wxID_ANY, wxString title=wxT("Convert file series"), wxPoint pos=wxDefaultPosition, wxSize size=wxDefaultSize, int style=wxCAPTION)
Constructor.
stfio::filetype GetDestFileExt() const
Get the destination extension as stfio::filetype.
Definition convertdlg.h:92
stfio::filetype GetSrcFileExt() const
Get the source extension as stfio::filetype.
Definition convertdlg.h:87