1 ///////////////////////////////////////////////////////////////////////////// 2 // Name: fmofragmentationdialog.h 3 // Purpose: 4 // Author: Brett Bode 5 // Modified by: 6 // Created: Wed 23 Dec 11:01:48 2009 7 // RCS-ID: 8 // Copyright: (c) 2009 Iowa State University 9 ///////////////////////////////////////////////////////////////////////////// 10 11 #ifndef _FMOFRAGMENTATIONDIALOG_H_ 12 #define _FMOFRAGMENTATIONDIALOG_H_ 13 14 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) 15 #pragma interface "fmofragmentationdialog.h" 16 #endif 17 18 /*! 19 * Includes 20 */ 21 22 ////@begin includes 23 #include "wx/valtext.h" 24 ////@end includes 25 26 /*! 27 * Forward declarations 28 */ 29 30 ////@begin forward declarations 31 ////@end forward declarations 32 33 /*! 34 * Control identifiers 35 */ 36 37 ////@begin control identifiers 38 #define ID_FMOFRAGMENTATIONDIALOG 10271 39 #define ID_NUMFRAGEDIT 10272 40 #define SYMBOL_FMOFRAGMENTATIONDIALOG_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL 41 #define SYMBOL_FMOFRAGMENTATIONDIALOG_TITLE _("FMO Fragmentation") 42 #define SYMBOL_FMOFRAGMENTATIONDIALOG_IDNAME ID_FMOFRAGMENTATIONDIALOG 43 #define SYMBOL_FMOFRAGMENTATIONDIALOG_SIZE wxSize(400, 300) 44 #define SYMBOL_FMOFRAGMENTATIONDIALOG_POSITION wxDefaultPosition 45 ////@end control identifiers 46 47 48 /*! 49 * FMOFragmentationDialog class declaration 50 */ 51 52 class FMOFragmentationDialog: public wxDialog 53 { 54 DECLARE_DYNAMIC_CLASS( FMOFragmentationDialog ) 55 DECLARE_EVENT_TABLE() 56 57 public: 58 /// Constructors 59 FMOFragmentationDialog(); 60 FMOFragmentationDialog( wxWindow* parent, wxWindowID id = SYMBOL_FMOFRAGMENTATIONDIALOG_IDNAME, const wxString& caption = SYMBOL_FMOFRAGMENTATIONDIALOG_TITLE, const wxPoint& pos = SYMBOL_FMOFRAGMENTATIONDIALOG_POSITION, const wxSize& size = SYMBOL_FMOFRAGMENTATIONDIALOG_SIZE, long style = SYMBOL_FMOFRAGMENTATIONDIALOG_STYLE ); 61 62 /// Creation 63 bool Create( wxWindow* parent, wxWindowID id = SYMBOL_FMOFRAGMENTATIONDIALOG_IDNAME, const wxString& caption = SYMBOL_FMOFRAGMENTATIONDIALOG_TITLE, const wxPoint& pos = SYMBOL_FMOFRAGMENTATIONDIALOG_POSITION, const wxSize& size = SYMBOL_FMOFRAGMENTATIONDIALOG_SIZE, long style = SYMBOL_FMOFRAGMENTATIONDIALOG_STYLE ); 64 65 /// Destructor 66 ~FMOFragmentationDialog(); 67 68 /// Initialises member variables 69 void Init(); 70 71 /// Creates the controls and sizers 72 void CreateControls(); 73 74 ////@begin FMOFragmentationDialog event handler declarations 75 76 /// wxEVT_COMMAND_TEXT_UPDATED event handler for ID_NUMFRAGEDIT 77 void OnNumFragEditTextUpdated( wxCommandEvent& event ); 78 79 /// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_OK 80 void OnFMOFragButtonClick( wxCommandEvent& event ); 81 82 ////@end FMOFragmentationDialog event handler declarations 83 84 ////@begin FMOFragmentationDialog member function declarations 85 86 /// Retrieves bitmap resources 87 wxBitmap GetBitmapResource( const wxString& name ); 88 89 /// Retrieves icon resources 90 wxIcon GetIconResource( const wxString& name ); 91 ////@end FMOFragmentationDialog member function declarations 92 93 /// Retreive the # non-bonded molecules per fragment 94 int GetMolCount(void); 95 96 /// Should we show tooltips? 97 static bool ShowToolTips(); 98 99 ////@begin FMOFragmentationDialog member variables 100 wxTextCtrl* mNumFragEdit; 101 ////@end FMOFragmentationDialog member variables 102 }; 103 104 #endif 105 // _FMOFRAGMENTATIONDIALOG_H_ 106