spek

Acoustic spectrum analyser
git clone http://git.hanabi.in/repos/spek.git
Log | Files | Refs | README

commit 48afd3b4e89b15a6fa14e7e4613b78ae8f263ac9
parent 78eb0119cc9ddef3eece1be45214fd804c93d03a
Author: Alexander Kojevnikov <alexander@kojevnikov.com>
Date:   Sun,  5 Aug 2012 17:34:17 -0700

Add copyright headers, use .hh for C++ headers

Diffstat:
Msrc/Makefile.am | 4++--
Msrc/spek-window.cc | 20+++++++++++++++++++-
Dsrc/spek-window.h | 21---------------------
Asrc/spek-window.hh | 37+++++++++++++++++++++++++++++++++++++
Msrc/spek.cc | 20+++++++++++++++++++-
5 files changed, 77 insertions(+), 25 deletions(-)

diff --git a/src/Makefile.am b/src/Makefile.am @@ -2,8 +2,8 @@ bin_PROGRAMS = spek spek_SOURCES = \ spek.cc \ - spek-window.h \ - spek-window.cc + spek-window.cc \ + spek-window.hh spek_CPPFLAGS = \ -include config.h \ diff --git a/src/spek-window.cc b/src/spek-window.cc @@ -1,4 +1,22 @@ -#include "spek-window.h" +/* spek-window.cc + * + * Copyright (C) 2010-2012 Alexander Kojevnikov <alexander@kojevnikov.com> + * + * Spek is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Spek is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Spek. If not, see <http://www.gnu.org/licenses/>. + */ + +#include "spek-window.hh" enum { diff --git a/src/spek-window.h b/src/spek-window.h @@ -1,21 +0,0 @@ -// -*-c++-*- - -#ifndef SPEK_WINDOW_H_ -#define SPEK_WINDOW_H_ - -#include <wx/wx.h> - -class SpekWindow : public wxFrame -{ -public: - SpekWindow(const wxString& title, const wxPoint& pos, const wxSize& size); - -protected: - void OnQuit(wxCommandEvent& event); - void OnAbout(wxCommandEvent& event); - -private: - DECLARE_EVENT_TABLE() -}; - -#endif diff --git a/src/spek-window.hh b/src/spek-window.hh @@ -0,0 +1,37 @@ +/* spek-window.hh + * + * Copyright (C) 2010-2012 Alexander Kojevnikov <alexander@kojevnikov.com> + * + * Spek is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Spek is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Spek. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef SPEK_WINDOW_HH_ +#define SPEK_WINDOW_HH_ + +#include <wx/wx.h> + +class SpekWindow : public wxFrame +{ +public: + SpekWindow(const wxString& title, const wxPoint& pos, const wxSize& size); + +protected: + void OnQuit(wxCommandEvent& event); + void OnAbout(wxCommandEvent& event); + +private: + DECLARE_EVENT_TABLE() +}; + +#endif diff --git a/src/spek.cc b/src/spek.cc @@ -1,6 +1,24 @@ +/* spek.vala + * + * Copyright (C) 2010-2011 Alexander Kojevnikov <alexander@kojevnikov.com> + * + * Spek is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Spek is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Spek. If not, see <http://www.gnu.org/licenses/>. + */ + #include <wx/wx.h> -#include "spek-window.h" +#include "spek-window.hh" class Spek: public wxApp {