Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef __BASE_H
- #define __BASE_H
- #include <wx/string.h>
- #include <wx/stattext.h>
- #include <wx/gdicmn.h>
- #include <wx/font.h>
- #include <wx/colour.h>
- #include <wx/settings.h>
- #include <wx/listbox.h>
- #include <wx/button.h>
- #include <wx/sizer.h>
- #include <wx/txtstrm.h>
- #include <wx/textfile.h>
- #include <wx/frame.h>
- enum {
- ADD_BUTTON,
- DEL_BUTTON,
- EDT_BUTTON,
- CLR_BUTTON,
- SVE_BUTTON,
- wxID_nameslist,
- };
- class MainApp: public wxApp
- {
- public:
- virtual bool OnInit();
- };
- class MainFrame : public wxFrame
- {
- protected:
- //Functions
- void OnNew(wxCommandEvent& event);
- void OnRename(wxCommandEvent& event);
- void OnClear(wxCommandEvent& event);
- void OnDelete(wxCommandEvent& event);
- void OnSave(wxCommandEvent& event);
- void readInput(int filename);
- bool MainFrame::startup();
- void MainFrame::OnClose (wxCloseEvent& event);
- //MainFrame Elements
- wxStaticText* m_staticText21;
- wxListBox* nameslist;
- wxButton* addButton;
- wxButton* edtButton;
- wxButton* delButton;
- wxButton* clrButton;
- wxButton* sveButton;
- //Strings used in OnNew Function
- wxString str;
- wxString str2;
- wxString str3;
- wxString str4;
- wxString str5;
- wxString *comma;
- wxString *space;
- wxString strgr;
- //String used in OnRename Function
- wxString text;
- wxString newLast;
- wxString newFirst;
- wxString newNum;
- wxString newMail;
- wxString newAdd;
- public:
- MainFrame(const wxString &title, const wxPoint &pos, const wxSize &size);
- private:
- DECLARE_EVENT_TABLE()
- };
- #endif
Add Comment
Please, Sign In to add comment