1 /* spek-window.h 2 * 3 * Copyright (C) 2010-2012 Alexander Kojevnikov <alexander@kojevnikov.com> 4 * 5 * Spek is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * Spek is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with Spek. If not, see <http://www.gnu.org/licenses/>. 17 */ 18 19 #ifndef SPEK_WINDOW_H_ 20 #define SPEK_WINDOW_H_ 21 22 #include <wx/wx.h> 23 24 class SpekSpectrogram; 25 26 class SpekWindow : public wxFrame 27 { 28 public: 29 SpekWindow(const wxString& path); 30 void open(const wxString& path); 31 32 private: 33 void on_open(wxCommandEvent& event); 34 void on_save(wxCommandEvent& event); 35 void on_exit(wxCommandEvent& event); 36 void on_preferences(wxCommandEvent& event); 37 void on_help(wxCommandEvent& event); 38 void on_about(wxCommandEvent& event); 39 void on_notify(wxCommandEvent& event); 40 void on_visit(wxCommandEvent& event); 41 void on_close(wxCommandEvent& event); 42 43 SpekSpectrogram *spectrogram; 44 wxString path; 45 wxString cur_dir; 46 wxString description; 47 48 DECLARE_EVENT_TABLE() 49 }; 50 51 #endif 52