Mercurial > projects > dwt-linux
diff dwt/custom/CTabFolderLayout.d @ 152:17f8449522fd
overloads second walkthrough
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Thu, 31 Jan 2008 23:19:20 +0100 |
parents | 0f12f6bb9739 |
children | 96b14a31d9b3 |
line wrap: on
line diff
--- a/dwt/custom/CTabFolderLayout.d Thu Jan 31 20:26:30 2008 +0100 +++ b/dwt/custom/CTabFolderLayout.d Thu Jan 31 23:19:20 2008 +0100 @@ -1,4 +1,4 @@ -/******************************************************************************* +/******************************************************************************* * Copyright (c) 2000, 2005 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 @@ -28,7 +28,7 @@ * @see CTabFolder */ class CTabFolderLayout : Layout { -protected Point computeSize(Composite composite, int wHint, int hHint, bool flushCache) { +protected override Point computeSize(Composite composite, int wHint, int hHint, bool flushCache) { CTabFolder folder = cast(CTabFolder)composite; CTabItem[] items = folder.items; // preferred width of tab area to show all tabs @@ -74,10 +74,10 @@ return new Point (minWidth, minHeight); } -protected bool flushCache(Control control) { +protected override bool flushCache(Control control) { return true; } -protected void layout(Composite composite, bool flushCache) { +protected override void layout(Composite composite, bool flushCache) { CTabFolder folder = cast(CTabFolder)composite; // resize content if (folder.selectedIndex !is -1) {