From 48afd3b4e89b15a6fa14e7e4613b78ae8f263ac9 Mon Sep 17 00:00:00 2001 From: Alexander Kojevnikov Date: Sun, 5 Aug 2012 17:34:17 -0700 Subject: [PATCH] Add copyright headers, use .hh for C++ headers --- src/Makefile.am | 4 ++-- src/spek-window.cc | 20 +++++++++++++++++++- src/spek-window.h | 21 --------------------- src/spek-window.hh | 37 +++++++++++++++++++++++++++++++++++++ src/spek.cc | 20 +++++++++++++++++++- 5 files changed, 77 insertions(+), 25 deletions(-) delete mode 100644 src/spek-window.h create mode 100644 src/spek-window.hh diff --git a/src/Makefile.am b/src/Makefile.am index 33b409d..1ad246e 100644 --- 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 index f7c5e84..84ae301 100644 --- 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 + * + * 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 . + */ + +#include "spek-window.hh" enum { diff --git a/src/spek-window.h b/src/spek-window.h deleted file mode 100644 index 3c0b599..0000000 --- a/src/spek-window.h +++ /dev/null @@ -1,21 +0,0 @@ -// -*-c++-*- - -#ifndef SPEK_WINDOW_H_ -#define SPEK_WINDOW_H_ - -#include - -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 new file mode 100644 index 0000000..5163374 --- /dev/null +++ b/src/spek-window.hh @@ -0,0 +1,37 @@ +/* spek-window.hh + * + * Copyright (C) 2010-2012 Alexander Kojevnikov + * + * 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 . + */ + +#ifndef SPEK_WINDOW_HH_ +#define SPEK_WINDOW_HH_ + +#include + +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 index 9574ae3..3539051 100644 --- a/src/spek.cc +++ b/src/spek.cc @@ -1,6 +1,24 @@ +/* spek.vala + * + * Copyright (C) 2010-2011 Alexander Kojevnikov + * + * 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 . + */ + #include -#include "spek-window.h" +#include "spek-window.hh" class Spek: public wxApp {