Browse Source

GUI spaces are no longer permanently registered as being dirty

Marko Pintera 12 years ago
parent
commit
fd98fc59cd
2 changed files with 7 additions and 13 deletions
  1. 7 2
      BansheeEngine/Include/BsGUISpace.h
  2. 0 11
      TreeView.txt

+ 7 - 2
BansheeEngine/Include/BsGUISpace.h

@@ -10,7 +10,9 @@ namespace BansheeEngine
 	public:
 		GUIFixedSpace(CM::UINT32 size)
 			:mSize(size)
-		{ }
+		{
+			_markAsClean();
+		}
 
 		CM::UINT32 getSize() const { return mSize; }
 		Type _getType() const { return GUIElementBase::Type::FixedSpace; }
@@ -24,7 +26,10 @@ namespace BansheeEngine
 	class BS_EXPORT GUIFlexibleSpace : public GUIElementBase
 	{
 	public:
-		GUIFlexibleSpace() {}
+		GUIFlexibleSpace() 
+		{
+			_markAsClean();
+		}
 
 		Type _getType() const { return GUIElementBase::Type::FlexibleSpace; }
 

+ 0 - 11
TreeView.txt

@@ -1,11 +1,4 @@
 TreeView
- - internally I store TreeElements in a hierarchy. Each has a:
-    - isExpanded
-      - modifying this value will update GUIElements of all the child values (add or remove them)
-	  - adding/removing a child to/from an element should add or remove the foldout button
-      - call markContentAsDirty
-  - updateLayoutInternal
-    - goes through all TreeElements and updates their positions
   - Name editing
      - Detect mouse input in TreeView and if I double click over a GUILabel start rename
      - Or if I select it and hit F2 also start rename
@@ -17,10 +10,6 @@ TreeView
       - Simply track currently selected element and Delete event
 
 Implementation steps:
- - Get just labels with indenting rendering
-   - Test if SceneObject add/remove/rename works and updates data properly
- - Add expand buttons
-   - Test if expanding/closing works properly
  - Selection
    - Clicking on element selects it, delete removes it, F2 renames is. Slow double click renames it.
    - Rename implementation to follow, just set up an empty method for now