comparison base/Window.h @ 52:d397ea0a79f5

* Update licensing rubric for GPL
author Chris Cannam
date Mon, 20 Mar 2006 15:10:07 +0000
parents 39ae3dee27b9
children 534373d65f39
comparison
equal deleted inserted replaced
51:c2913298cf94 52:d397ea0a79f5
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
2 2
3 /* 3 /*
4 A waveform viewer and audio annotation editor. 4 Sonic Visualiser
5 Chris Cannam, Queen Mary University of London, 2005-2006 5 An audio file viewer and annotation editor.
6 Centre for Digital Music, Queen Mary, University of London.
7 This file copyright 2006 Chris Cannam.
6 8
7 This is experimental software. Not for distribution. 9 This program is free software; you can redistribute it and/or
10 modify it under the terms of the GNU General Public License as
11 published by the Free Software Foundation; either version 2 of the
12 License, or (at your option) any later version. See the file
13 COPYING included with this distribution for more information.
8 */ 14 */
9 15
10 #ifndef _WINDOW_H_ 16 #ifndef _WINDOW_H_
11 #define _WINDOW_H_ 17 #define _WINDOW_H_
12 18
32 * Construct a windower of the given type. 38 * Construct a windower of the given type.
33 */ 39 */
34 Window(WindowType type, size_t size) : m_type(type), m_size(size) { encache(); } 40 Window(WindowType type, size_t size) : m_type(type), m_size(size) { encache(); }
35 Window(const Window &w) : m_type(w.m_type), m_size(w.m_size) { encache(); } 41 Window(const Window &w) : m_type(w.m_type), m_size(w.m_size) { encache(); }
36 Window &operator=(const Window &w) { 42 Window &operator=(const Window &w) {
37 if (&w == this) return; 43 if (&w == this) return *this;
38 m_type = w.m_type; 44 m_type = w.m_type;
39 m_size = w.m_size; 45 m_size = w.m_size;
40 encache(); 46 encache();
41 return *this; 47 return *this;
42 } 48 }