Stimfit  0.13.15
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
usrdlg.h
Go to the documentation of this file.
00001 // This program is free software; you can redistribute it and/or
00002 // modify it under the terms of the GNU General Public License
00003 // as published by the Free Software Foundation; either version 2
00004 // of the License, or (at your option) any later version.
00005 
00006 // This program is distributed in the hope that it will be useful,
00007 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00008 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00009 // GNU General Public License for more details.
00010 
00011 // You should have received a copy of the GNU General Public License
00012 // along with this program; if not, write to the Free Software
00013 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00014 
00021 #ifndef _USRDLG_H
00022 #define _USRDLG_H
00023 
00028 #ifdef _MSC_VER
00029 #pragma warning( disable : 4251 )  // Disable warning messages
00030 #endif
00031 
00032 #include <vector>
00033 #include <string>
00034 #include <sstream>
00035 
00036 #include "./../../stf.h"
00037 
00039 class wxStfUsrDlg : public wxDialog 
00040 {
00041     DECLARE_EVENT_TABLE()
00042 
00043 private:
00044     stf::UserInput input;
00045     Vector_double retVec;
00046     wxStdDialogButtonSizer* m_sdbSizer;
00047     std::vector<wxTextCtrl*> m_textCtrlArray;
00048     std::vector<wxStaticText*> m_staticTextArray;
00049 
00051 
00053     bool OnOK();
00054 
00055 public:
00057 
00064     wxStfUsrDlg(
00065             wxWindow* parent,
00066             const stf::UserInput& input_,
00067             int id = wxID_ANY,
00068             wxPoint pos = wxDefaultPosition,
00069             wxSize size = wxDefaultSize,
00070             int style = wxCAPTION
00071     );
00072     
00074 
00076     Vector_double readInput() const {return retVec;}
00077     
00079 
00082     virtual void EndModal(int retCode);
00083 };
00084 
00087 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines