Guest User

Untitled

a guest
Jan 19th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.95 KB | None | 0 0
  1. #ifndef __BASE_H
  2. #define __BASE_H
  3.  
  4. #include <wx/string.h>
  5. #include <wx/stattext.h>
  6. #include <wx/gdicmn.h>
  7. #include <wx/font.h>
  8. #include <wx/colour.h>
  9. #include <wx/settings.h>
  10. #include <wx/listbox.h>
  11. #include <wx/button.h>
  12. #include <wx/sizer.h>
  13. #include <wx/txtstrm.h>
  14. #include <wx/textfile.h>
  15. #include <wx/frame.h>
  16.  
  17. enum {
  18. ADD_BUTTON,
  19. DEL_BUTTON,
  20. EDT_BUTTON,
  21. CLR_BUTTON,
  22. SVE_BUTTON,
  23. wxID_nameslist,
  24. };
  25.  
  26. class MainApp: public wxApp
  27. {
  28. public:
  29. virtual bool OnInit();
  30.  
  31. };
  32.  
  33. class MainFrame : public wxFrame
  34. {
  35. protected:
  36. //Functions
  37. void OnNew(wxCommandEvent& event);
  38. void OnRename(wxCommandEvent& event);
  39. void OnClear(wxCommandEvent& event);
  40. void OnDelete(wxCommandEvent& event);
  41. void OnSave(wxCommandEvent& event);
  42. void readInput(int filename);
  43. bool MainFrame::startup();
  44. void MainFrame::OnClose (wxCloseEvent& event);
  45. //MainFrame Elements
  46. wxStaticText* m_staticText21;
  47. wxListBox* nameslist;
  48. wxButton* addButton;
  49. wxButton* edtButton;
  50. wxButton* delButton;
  51. wxButton* clrButton;
  52. wxButton* sveButton;
  53. //Strings used in OnNew Function
  54. wxString str;
  55. wxString str2;
  56. wxString str3;
  57. wxString str4;
  58. wxString str5;
  59. wxString *comma;
  60. wxString *space;
  61. wxString strgr;
  62. //String used in OnRename Function
  63. wxString text;
  64. wxString newLast;
  65. wxString newFirst;
  66. wxString newNum;
  67. wxString newMail;
  68. wxString newAdd;
  69. public:
  70. MainFrame(const wxString &title, const wxPoint &pos, const wxSize &size);
  71. private:
  72. DECLARE_EVENT_TABLE()
  73.  
  74.  
  75. };
  76.  
  77.  
  78. #endif
Add Comment
Please, Sign In to add comment