[Haiku-commits] r31198 - haiku/trunk/src/apps/debugger/gui/team_window

stippi at mail.berlios.de stippi at mail.berlios.de
Tue Jun 23 13:04:43 CEST 2009


Author: stippi
Date: 2009-06-23 13:04:38 +0200 (Tue, 23 Jun 2009)
New Revision: 31198
ViewCVS: http://svn.berlios.de/viewcvs/haiku?rev=31198&view=rev

Modified:
   haiku/trunk/src/apps/debugger/gui/team_window/TeamWindow.cpp
Log:
* Use auto-size-limits on the window.
* Use insets around everything. The visual change are insets also around the
  source code view. Another option would be to put the source code view on the
  right/bottom, attaching the window border and using a B_DOCUMENT_WINDOW
  resize knob on the window border. The register view could also use the
  additional height of the buttons. However, I agree it's somehow more logical
  to have the register view on the right side. Maybe only because of
  convention... so it's possibly still up for debate.


Modified: haiku/trunk/src/apps/debugger/gui/team_window/TeamWindow.cpp
===================================================================
--- haiku/trunk/src/apps/debugger/gui/team_window/TeamWindow.cpp	2009-06-23 10:56:22 UTC (rev 31197)
+++ haiku/trunk/src/apps/debugger/gui/team_window/TeamWindow.cpp	2009-06-23 11:04:38 UTC (rev 31198)
@@ -32,7 +32,7 @@
 TeamWindow::TeamWindow(TeamDebugModel* debugModel, Listener* listener)
 	:
 	BWindow(BRect(100, 100, 899, 699), "Team", B_TITLED_WINDOW,
-		B_ASYNCHRONOUS_CONTROLS),
+		B_ASYNCHRONOUS_CONTROLS | B_AUTO_UPDATE_SIZE_LIMITS),
 	fDebugModel(debugModel),
 	fActiveThread(NULL),
 	fActiveStackTrace(NULL),
@@ -256,10 +256,8 @@
 
 	BLayoutBuilder::Group<>(this, B_VERTICAL)
 		.AddSplit(B_VERTICAL, 3.0f)
-			.AddGroup(B_VERTICAL, 0.0f, 0.4f)
-				.Add(fTabView = new BTabView("tab view"))
-				.SetInsets(4.0f, 4.0f, 4.0f, 0.0f)
-			.End()
+			.SetInsets(4.0f, 4.0f, 4.0f, 4.0f)
+			.Add(fTabView = new BTabView("tab view"), 0.4f)
 			.AddGroup(B_VERTICAL, 4.0f)
 				.AddGroup(B_HORIZONTAL, 4.0f)
 					.Add(fRunButton = new BButton("Run"))
@@ -267,15 +265,11 @@
 					.Add(fStepIntoButton = new BButton("Step Into"))
 					.Add(fStepOutButton = new BButton("Step Out"))
 					.AddGlue()
-					.SetInsets(4.0f, 0.0f, 4.0f, 0.0f)
 				.End()
 				.AddSplit(B_HORIZONTAL, 3.0f)
 					.Add(sourceScrollView = new BScrollView("source scroll",
 						NULL, 0, true, true), 3.0f)
-					.AddGroup(B_VERTICAL)
-						.Add(fLocalsTabView = new BTabView("locals view"))
-						.SetInsets(0.0f, 0.0f, 4.0f, 4.0f)
-					.End()
+					.Add(fLocalsTabView = new BTabView("locals view"))
 				.End()
 			.End()
 		.End();




More information about the Haiku-commits mailing list