From 096e7f3b926aa844041ba56a686299c95a0aa490 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Mon, 28 Aug 2006 10:10:27 +0000 Subject: [PATCH] Adjusted license headers git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18658 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/BTextView/InlineInput.cpp | 32 +++----------- src/kits/interface/BTextView/InlineInput.h | 33 ++++---------- src/kits/interface/BTextView/LineBuffer.cpp | 35 ++++----------- src/kits/interface/BTextView/LineBuffer.h | 44 ++++++------------- .../interface/BTextView/TextGapBuffer.cpp | 34 ++++---------- src/kits/interface/BTextView/TextGapBuffer.h | 33 ++++---------- src/kits/interface/BTextView/UndoBuffer.h | 34 ++++---------- 7 files changed, 61 insertions(+), 184 deletions(-) diff --git a/src/kits/interface/BTextView/InlineInput.cpp b/src/kits/interface/BTextView/InlineInput.cpp index 0fb72bd5fe..e205373ca0 100644 --- a/src/kits/interface/BTextView/InlineInput.cpp +++ b/src/kits/interface/BTextView/InlineInput.cpp @@ -1,28 +1,10 @@ -//------------------------------------------------------------------------------ -// Copyright (c) 2003-2004, Haiku, Inc. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the "Software"), -// to deal in the Software without restriction, including without limitation -// the rights to use, copy, modify, merge, publish, distribute, sublicense, -// and/or sell copies of the Software, and to permit persons to whom the -// Software is furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -// DEALINGS IN THE SOFTWARE. -// -// File Name: InlineInput.cpp -// Author: Stefano Ceccherini (burton666@libero.it) -// Description: Helper class to handle input method requests -//------------------------------------------------------------------------------ +/* + * Copyright 2003-2006, Haiku, Inc. All Rights Reserved. + * Distributed under the terms of the MIT License. + * + * Authors: + * Stefano Ceccherini (burton666@libero.it) + */ // For a deeper understanding of this class, see the BeBook, sez. // "The Input Server". diff --git a/src/kits/interface/BTextView/InlineInput.h b/src/kits/interface/BTextView/InlineInput.h index 3b5b850c06..645aec91e3 100644 --- a/src/kits/interface/BTextView/InlineInput.h +++ b/src/kits/interface/BTextView/InlineInput.h @@ -1,28 +1,11 @@ -//------------------------------------------------------------------------------ -// Copyright (c) 2003-2004, Haiku, Inc. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the "Software"), -// to deal in the Software without restriction, including without limitation -// the rights to use, copy, modify, merge, publish, distribute, sublicense, -// and/or sell copies of the Software, and to permit persons to whom the -// Software is furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -// DEALINGS IN THE SOFTWARE. -// -// File Name: InlineInput.h -// Author: Stefano Ceccherini (burton666@libero.it) -// Description: Helper class to handle input method requests -//------------------------------------------------------------------------------ +/* + * Copyright 2003-2006, Haiku, Inc. All Rights Reserved. + * Distributed under the terms of the MIT License. + * + * Authors: + * Stefano Ceccherini (burton666@libero.it) + */ + #ifndef __INLINEINPUT_H #define __INLINEINPUT_H diff --git a/src/kits/interface/BTextView/LineBuffer.cpp b/src/kits/interface/BTextView/LineBuffer.cpp index 1142c3ef79..b1aab6cac8 100644 --- a/src/kits/interface/BTextView/LineBuffer.cpp +++ b/src/kits/interface/BTextView/LineBuffer.cpp @@ -1,28 +1,10 @@ -//------------------------------------------------------------------------------ -// Copyright (c) 2001-2004, Haiku, Inc. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the "Software"), -// to deal in the Software without restriction, including without limitation -// the rights to use, copy, modify, merge, publish, distribute, sublicense, -// and/or sell copies of the Software, and to permit persons to whom the -// Software is furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -// DEALINGS IN THE SOFTWARE. -// -// File Name: LineBuffer.cpp -// Author: Marc Flerackers (mflerackers@androme.be) -// Description: Line storage used by BTextView -//------------------------------------------------------------------------------ +/* + * Copyright 2001-2006, Haiku, Inc. All Rights Reserved. + * Distributed under the terms of the MIT License. + * + * Authors: + * Marc Flerackers (mflerackers@androme.be) + */ #include "LineBuffer.h" @@ -88,7 +70,8 @@ _BLineBuffer_::OffsetToLine(int32 offset) const } -int32 _BLineBuffer_::PixelToLine(float pixel) const +int32 +_BLineBuffer_::PixelToLine(float pixel) const { int32 minIndex = 0; int32 maxIndex = fItemCount - 1; diff --git a/src/kits/interface/BTextView/LineBuffer.h b/src/kits/interface/BTextView/LineBuffer.h index d7beaff9a2..71ba7efa50 100644 --- a/src/kits/interface/BTextView/LineBuffer.h +++ b/src/kits/interface/BTextView/LineBuffer.h @@ -1,38 +1,20 @@ -//------------------------------------------------------------------------------ -// Copyright (c) 2001-2004, Haiku, Inc. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the "Software"), -// to deal in the Software without restriction, including without limitation -// the rights to use, copy, modify, merge, publish, distribute, sublicense, -// and/or sell copies of the Software, and to permit persons to whom the -// Software is furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -// DEALINGS IN THE SOFTWARE. -// -// File Name: LineBuffer.h -// Author: Marc Flerackers (mflerackers@androme.be) -// Description: Line storage used by BTextView -//------------------------------------------------------------------------------ +/* + * Copyright 2001-2006, Haiku, Inc. All Rights Reserved. + * Distributed under the terms of the MIT License. + * + * Authors: + * Marc Flerackers (mflerackers@androme.be) + */ #include #include "TextViewSupportBuffer.h" -typedef struct STELine { - long offset; // offset of first character of line - float origin; // pixel position of top of line - float ascent; // maximum ascent for line - float width; // not used for now, but could be -} STELine; +struct STELine { + long offset; // offset of first character of line + float origin; // pixel position of top of line + float ascent; // maximum ascent for line + float width; // not used for now, but could be +}; // _BLineBuffer_ class --------------------------------------------------------- diff --git a/src/kits/interface/BTextView/TextGapBuffer.cpp b/src/kits/interface/BTextView/TextGapBuffer.cpp index 30d1ff89fb..5f9579d34f 100644 --- a/src/kits/interface/BTextView/TextGapBuffer.cpp +++ b/src/kits/interface/BTextView/TextGapBuffer.cpp @@ -1,29 +1,11 @@ -//------------------------------------------------------------------------------ -// Copyright (c) 2001-2004, Haiku, Inc. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the "Software"), -// to deal in the Software without restriction, including without limitation -// the rights to use, copy, modify, merge, publish, distribute, sublicense, -// and/or sell copies of the Software, and to permit persons to whom the -// Software is furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -// DEALINGS IN THE SOFTWARE. -// -// File Name: TextGapBuffer.cpp -// Authors: Marc Flerackers (mflerackers@androme.be) -// Stefano Ceccherini (burton666@libero.it) -// Description: Text storage used by BTextView -//------------------------------------------------------------------------------ +/* + * Copyright 2001-2006, Haiku, Inc. All Rights Reserved. + * Distributed under the terms of the MIT License. + * + * Authors: + * Marc Flerackers (mflerackers@androme.be) + * Stefano Ceccherini (burton666@libero.it) + */ #include #include diff --git a/src/kits/interface/BTextView/TextGapBuffer.h b/src/kits/interface/BTextView/TextGapBuffer.h index ce1cfb61c0..9d8dc21cbf 100644 --- a/src/kits/interface/BTextView/TextGapBuffer.h +++ b/src/kits/interface/BTextView/TextGapBuffer.h @@ -1,28 +1,11 @@ -//------------------------------------------------------------------------------ -// Copyright (c) 2001-2004, Haiku, Inc. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the "Software"), -// to deal in the Software without restriction, including without limitation -// the rights to use, copy, modify, merge, publish, distribute, sublicense, -// and/or sell copies of the Software, and to permit persons to whom the -// Software is furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -// DEALINGS IN THE SOFTWARE. -// -// File Name: TextGapBuffer.h -// Author: Marc Flerackers (mflerackers@androme.be) -// Description: Text storage used by BTextView -//------------------------------------------------------------------------------ +/* + * Copyright 2001-2006, Haiku, Inc. All Rights Reserved. + * Distributed under the terms of the MIT License. + * + * Authors: + * Marc Flerackers (mflerackers@androme.be) + */ + #ifndef __TEXTGAPBUFFER_H #define __TEXTGAPBUFFER_H diff --git a/src/kits/interface/BTextView/UndoBuffer.h b/src/kits/interface/BTextView/UndoBuffer.h index fefda1593e..bc8399451a 100644 --- a/src/kits/interface/BTextView/UndoBuffer.h +++ b/src/kits/interface/BTextView/UndoBuffer.h @@ -1,29 +1,11 @@ -//------------------------------------------------------------------------------ -// Copyright (c) 2003-2004, Haiku, Inc. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the "Software"), -// to deal in the Software without restriction, including without limitation -// the rights to use, copy, modify, merge, publish, distribute, sublicense, -// and/or sell copies of the Software, and to permit persons to whom the -// Software is furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -// DEALINGS IN THE SOFTWARE. -// -// File Name: UndoBuffer.h -// Author: Stefano Ceccherini (burton666@libero.it) -// Description: _BUndoBuffer_ and its subclasses -// handle different types of Undo operations. -//------------------------------------------------------------------------------ +/* + * Copyright 2003-2004, Haiku, Inc. All Rights Reserved. + * Distributed under the terms of the MIT License. + * + * Authors: + * Stefano Ceccherini (burton666@libero.it) + */ + #ifndef __UNDOBUFFER_H #define __UNDOBUFFER_H