History log of /haiku/src/tests/libs/alm/Views.cpp
Revision Date Author Comments
# 6457a651 30-Apr-2012 Alex Wilson <yourpalal2@gmail.com>

Fix bug from the removal of BALMLayoutBuilder::Snake.

GCC considers the method chain one big function call, so pushes all
parameters onto the stack before hand (something I discovered after
quite a bit of debugging). In this case, layout->RightOf() returns NULL
before the view is added, which caused the layout to become undefined.


# b99cf18c 16-Jan-2012 Alex Wilson <yourpalal2@gmail.com>

Remove old implementatoins of ALM tests that used the Add*To* methods.


# 2bf5ded1 16-Jan-2012 Alex Wilson <yourpalal2@gmail.com>

Add BALMLayoutBuilder implementations to ALM tests.


# 9b0221fd 15-Jan-2012 Alex Wilson <yourpalal2@gmail.com>

In alm tests, replace calls to SetInset() with SetInsets().


# 1be46cf5 12-Jan-2012 Alex Wilson <yourpalal2@gmail.com>

In ALM Views test, use explicit AddViews() method.


# b1f9962b 13-Dec-2010 Clemens Zeidler <clemens.zeidler@googlemail.com>

Fix ALM test.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39830 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 37344020 03-Oct-2010 Clemens Zeidler <clemens.zeidler@googlemail.com>

- Add a alternative method to setup a group layout. BLayoutItem / BView are wrapped into a GroupItem. GroupItem overloads the | (horizontal tiling) and / (vertical tiling) operators. In this manner you can create a group layout using these operators, e.g. GroupItem item = GroupItem(button1) | (GroupItem(button2) / GroupItem(button3)); would layout button1 at the left and button2 and button3 at the right in a vertical layout. All the layout information is stored in the GroupItem item, to setup the final layout you have to call BuildLayout(item). If you like it it could also be added to the BGroupLayout.
- Add operator test app.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38877 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 70e20761 29-Sep-2010 Clemens Zeidler <clemens.zeidler@googlemail.com>

- Add helper functions to get the tabs of a view or a layout item.
- AddView only require the top, left tabs now.
- Remove the TwoViews test and replace it with a slightly more complex test.
- Merge XTab and YTab files into one header file.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38860 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6457a6517eaa53baeb531ce9995617c3caa7010e 30-Apr-2012 Alex Wilson <yourpalal2@gmail.com>

Fix bug from the removal of BALMLayoutBuilder::Snake.

GCC considers the method chain one big function call, so pushes all
parameters onto the stack before hand (something I discovered after
quite a bit of debugging). In this case, layout->RightOf() returns NULL
before the view is added, which caused the layout to become undefined.


# b99cf18c18ca3c9a7fcd2df4074569bcf0a0e64c 16-Jan-2012 Alex Wilson <yourpalal2@gmail.com>

Remove old implementatoins of ALM tests that used the Add*To* methods.


# 2bf5ded1ed0a650fd1a36799f660624a7068dbc9 16-Jan-2012 Alex Wilson <yourpalal2@gmail.com>

Add BALMLayoutBuilder implementations to ALM tests.


# 9b0221fd43d3683f6ec1e0358cbd65df7c813403 15-Jan-2012 Alex Wilson <yourpalal2@gmail.com>

In alm tests, replace calls to SetInset() with SetInsets().


# 1be46cf584d9c77a8d47c3ef29a3a767a955fe84 12-Jan-2012 Alex Wilson <yourpalal2@gmail.com>

In ALM Views test, use explicit AddViews() method.


# b1f9962baedd642e3cd935a41561b6766b04b4bf 13-Dec-2010 Clemens Zeidler <clemens.zeidler@googlemail.com>

Fix ALM test.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39830 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 37344020ef592f58c61b7de8cd2c83dd31203aca 03-Oct-2010 Clemens Zeidler <clemens.zeidler@googlemail.com>

- Add a alternative method to setup a group layout. BLayoutItem / BView are wrapped into a GroupItem. GroupItem overloads the | (horizontal tiling) and / (vertical tiling) operators. In this manner you can create a group layout using these operators, e.g. GroupItem item = GroupItem(button1) | (GroupItem(button2) / GroupItem(button3)); would layout button1 at the left and button2 and button3 at the right in a vertical layout. All the layout information is stored in the GroupItem item, to setup the final layout you have to call BuildLayout(item). If you like it it could also be added to the BGroupLayout.
- Add operator test app.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38877 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 70e207613508fb5b562405c4edc33ddfe77fbfdf 29-Sep-2010 Clemens Zeidler <clemens.zeidler@googlemail.com>

- Add helper functions to get the tabs of a view or a layout item.
- AddView only require the top, left tabs now.
- Remove the TwoViews test and replace it with a slightly more complex test.
- Merge XTab and YTab files into one header file.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38860 a95241bf-73f2-0310-859d-f6bbb57e9c96