--- /dev/null
+// TortoiseSVN - a Windows shell extension for easy version control\r
+\r
+// Copyright (C) 2003-2008 - TortoiseSVN\r
+\r
+// This program is free software; you can redistribute it and/or\r
+// modify it under the terms of the GNU General Public License\r
+// as published by the Free Software Foundation; either version 2\r
+// of the License, or (at your option) any later version.\r
+\r
+// This program is distributed in the hope that it will be useful,\r
+// but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
+// GNU General Public License for more details.\r
+\r
+// You should have received a copy of the GNU General Public License\r
+// along with this program; if not, write to the Free Software Foundation,\r
+// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\r
+//\r
+#pragma once\r
+\r
+#include "Resource.h"\r
+#include "LayoutOptions.h"\r
+#include "RevisionGraphOptionsImpl.h"\r
+\r
+class IRevisionGraphLayout;\r
+class IStandardLayoutNodeAccess;\r
+class CStandardLayoutNodeInfo;\r
+\r
+class CTopAlignTrees \r
+ : public CRevisionGraphOptionImpl<ILayoutOption, 1100, ID_VIEW_TOPALIGNTREES>\r
+{\r
+private:\r
+\r
+ /// the individual placement stages\r
+\r
+ void GetMinMaxY \r
+ ( IStandardLayoutNodeAccess* nodeAccess\r
+ , std::vector<int>& minY);\r
+ void MirrorY \r
+ ( IStandardLayoutNodeAccess* nodeAccess\r
+ , const std::vector<int>& minY);\r
+\r
+public:\r
+\r
+ /// construction\r
+\r
+ CTopAlignTrees (CRevisionGraphOptionList& list);\r
+\r
+ /// cast @a layout pointer to the respective modification\r
+ /// interface and write the data.\r
+\r
+ virtual void ApplyTo (IRevisionGraphLayout* layout);\r
+};\r