#
2ffa9f8e |
|
03-Aug-2015 |
Augustin Cavalier <waddlesplash@gmail.com> |
Revert "Revert "BTwoDimensionalLayout: Removed duplicated code."" This reverts commit c2e9a9227ecadca3a4fdc7e7f7569fb9c7dc1391. I misunderstood what Diver meant -- apparently whe he said "revert", he meant the whole changeset, not this specific commit. So the culprit is probably BTextView then.
|
#
c2e9a922 |
|
03-Aug-2015 |
Augustin Cavalier <waddlesplash@gmail.com> |
Revert "BTwoDimensionalLayout: Removed duplicated code." This reverts commit fd3e3e7bfb6e31cced1a98fc6a24c45f2feeba93. Apparently this code wasn't duplicated, as it caused all sorts of problems in applications (e.g. Debugger was blank). Fixes #12269.
|
#
fd3e3e7b |
|
30-Jul-2015 |
Axel Dörfler <axeld@pinc-software.de> |
BTwoDimensionalLayout: Removed duplicated code. * Probably some refactoring leftovers.
|
#
32e627a7 |
|
14-Apr-2015 |
Michael Lotz <mmlr@mlotz.ch> |
BTwoDimensionalLayout: Fix leak of CompoundLayouter layout[er].
|
#
e724b26f |
|
08-Jul-2013 |
John Scipione <jscipione@gmail.com> |
Remove enum elaborated type specifier ...from orientation params. Elaborated type specifiers are not needed for C++ code and removing them makes doxygen happy. Verified working on both gcc2h and gcc4h builds.
|
#
53617d36 |
|
05-Nov-2011 |
Alex Wilson <yourpalal2@gmail.com> |
Override a bunch of methods in layout related classes for FBC stability. * Especially made sure to override archiving methods, since these are called rarely, so the cost is very minimal * Otherwise, the closer a class is to a base class, the more likely I was to give it all the overrides.
|
#
8151838e |
|
02-Nov-2011 |
Alex Wilson <yourpalal2@gmail.com> |
Add FBC padding to all (I think..) of the visible Layout related classes.
|
#
a851b3ad |
|
31-Oct-2011 |
Alex Wilson <yourpalal2@gmail.com> |
Add Perform() methods to all the layout-related classes that needed them.
|
#
b38ea98f |
|
16-Oct-2011 |
Alex Wilson <yourpalal2@gmail.com> |
Devirtualize BLayout::InvalidateLayout(), add a protected hook BLayout::DoLayout(). This will allow for much better control over the propagation of layout invalidations, and therefore cleaner, more optimal code.
|
#
4e0131f5 |
|
09-Sep-2011 |
Alex Wilson <yourpalal2@gmail.com> |
Rename BLayout::DerivedLayoutItems() to DoLayout(), which is consistent with BView::DoLayout(). Also adjusted child classes and documentation.
|
#
813147df |
|
09-Jun-2011 |
Alex Wilson <yourpalal2@gmail.com> |
* Add new SetInsets() methods to BTwoDimensionalLayout, BSplitView * Also add equivalent methods to the layout builders in LayoutBuilder.h * BSplitView now calls BControlLook::ComposeSpacing(), instead of BSplitLayout * part of #7447 git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42077 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
6648dd3c |
|
07-Jun-2011 |
Alex Wilson <yourpalal2@gmail.com> |
* Add new spacing/inset constants for the layout API. For now, leave B_USE_DEFAULT_SPACING, but this will go soon. * Rename BControlLook::ComposeItemSpacing() to ComposeSpacing(), and extend it to handle the new constants. * Adjust users of BControlLook::ComposeItemSpacing() accordingly. * part of #7447 git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42025 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
de667551 |
|
14-Apr-2011 |
Alex Wilson <yourpalal2@gmail.com> |
Add a new layouter 'CollapsingLayouter', which is used by BTwoDimensionalLayout to collapse empty rows or columns. Update BGridLayout so that empty rows/columns are given min/max constraints of B_SIZE_UNSET by default, which allows them to be collapsed. Fixes #6979 git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41252 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
82ab3167 |
|
02-Sep-2010 |
Alex Wilson <yourpalal2@gmail.com> |
Add default spacing for Layouts (#5614) * introduce B_USE_DEFAULT_SPACING, which works somewhat like B_SIZE_UNSET and B_ALIGN_HORIZONTAL_UNSET * introduce static float BControlLook::ComposeItemSpacing(float spacing), which checks uses be_control_look->DefaultItemSpacing(). * modify layouts to use BControlLook::ComposeItemSpacing() in SetInsets and SetSpacing methods. * default insets are still 0, 0, 0, 0, but can be set to default spacing by passing B_USE_DEFAULT_SPACING * I've found two regressions, patches incoming, please report others on #5614. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38512 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
1d6c7b6c |
|
17-Aug-2010 |
Alex Wilson <yourpalal2@gmail.com> |
Big change deriving BLayout from BLayoutItem, and allowing viewless BLayouts. a few highlights: * BLayout now derives publicly from BLayoutItem * Added BAbstractLayout class, which our layouts now derive from * updated layout builders to avoid creating views when they don't need to * updated layout classes * updated AboutSystem to fix a little regression * more details on #6407 * please tell me about any regressions, I've tried to find them all, but some may have slipped by. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38207 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
4a254e4d |
|
27-Jul-2010 |
Alex Wilson <yourpalal2@gmail.com> |
Generally, clean up new archiving constant names & strings to be consistent in all classes. Modify archiving constants to be const char* const (thanks Ingo). Also modify archiving in many classes to use less fields by storing more data in arrays and structs. The common min, max, and preferred sizes, for example are always stored in an array now. In BTwoDimensionalLayout and BSplitLayout, the insets are archived in a BRect. Also fixed a typo in BGridLayout which caused column info to be incorrect during archival. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37777 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
80c2bbd8 |
|
16-Jul-2010 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Patch by Alex Wilson (with small style changes by myself): Added support for archiving/unarchiving. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37541 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
1bbf3b88 |
|
02-Jul-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
Patch by Alex Wilson as part of GSoC 2010 : fix a crashing bug in BTwoDimensionalLayout::AlignWith() (ticket #6244). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37348 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
320a5686 |
|
28-Mar-2010 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
* The CompoundLayouters were leaked before. Made the class BReferenceable and update references correctly. * LocalLayouter::SetCompoundLayouter(): Remove the local layouter from the previous compound layouter. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35983 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
07dbd4d5 |
|
17-Oct-2009 |
Axel Dörfler <axeld@pinc-software.de> |
* Cleanup, no functional change. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33615 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
a0747aad |
|
29-Jun-2009 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
After the first call to BView::InvalidateLayout() further invocations don't invoke the layout's InvalidateLayout() anymore. This could cause problems when the layout caches layout related information and also updates those on calls other than LayoutView(). A call to such a method after an InvalidateLayout() would mark the cached info valid and the layout would use the cached info until the first InvalidateLayout() after the next LayoutView(), even if BView::InvalidateLayout() had been called again in the meantime. * Introduced a new method BView::ResetLayoutInvalidation(), which must be called by layout implementations whenever they have updated their cached information and need further InvalidateLayout() notifications. * Adjusted the existing layout implementations to use the method. Fixes bug #4047. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31316 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
4aeb7a3c |
|
23-Jun-2009 |
Stephan Aßmus <superstippi@gmx.de> |
* Made BTwoDimensionalLayout and BSplitLayout::GetInsets() const. * Give access to BSplitLayout::SetInsets() and GetInsets() from BSplitView. * Give access to BSplitView::SetInsets() from BSplitLayoutBuilder and LayoutBuilder. * Some automatic white-space cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31197 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
99238ef5 |
|
19-Feb-2008 |
Stephan Aßmus <superstippi@gmx.de> |
Disable excessive debug output. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24024 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
8c264769 |
|
27-Sep-2007 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
* Removed the qoca library and the layouter implementation using it. * Use the new ComplexLayouter for the more complex layouting tasks. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22335 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
a19a660a |
|
12-May-2007 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Removed the BSize(const BRect&) constructor and added BRect::Size() instead. Also added a BRect(BPoint, BSize) constructor. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21120 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
9ecf9d1c |
|
26-Aug-2006 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Merge from layout management branch. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18649 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
2ffa9f8e542aa0c7dffd043e908d1af92da9d3aa |
|
03-Aug-2015 |
Augustin Cavalier <waddlesplash@gmail.com> |
Revert "Revert "BTwoDimensionalLayout: Removed duplicated code."" This reverts commit c2e9a9227ecadca3a4fdc7e7f7569fb9c7dc1391. I misunderstood what Diver meant -- apparently whe he said "revert", he meant the whole changeset, not this specific commit. So the culprit is probably BTextView then.
|
#
c2e9a9227ecadca3a4fdc7e7f7569fb9c7dc1391 |
|
03-Aug-2015 |
Augustin Cavalier <waddlesplash@gmail.com> |
Revert "BTwoDimensionalLayout: Removed duplicated code." This reverts commit fd3e3e7bfb6e31cced1a98fc6a24c45f2feeba93. Apparently this code wasn't duplicated, as it caused all sorts of problems in applications (e.g. Debugger was blank). Fixes #12269.
|
#
fd3e3e7bfb6e31cced1a98fc6a24c45f2feeba93 |
|
30-Jul-2015 |
Axel Dörfler <axeld@pinc-software.de> |
BTwoDimensionalLayout: Removed duplicated code. * Probably some refactoring leftovers.
|
#
32e627a7fb5f789dad10e9957ea5a06624828c05 |
|
14-Apr-2015 |
Michael Lotz <mmlr@mlotz.ch> |
BTwoDimensionalLayout: Fix leak of CompoundLayouter layout[er].
|
#
e724b26f23ad0df100a47f8d913bcdb3d54267df |
|
08-Jul-2013 |
John Scipione <jscipione@gmail.com> |
Remove enum elaborated type specifier ...from orientation params. Elaborated type specifiers are not needed for C++ code and removing them makes doxygen happy. Verified working on both gcc2h and gcc4h builds.
|
#
53617d366d1729716cc1e2764feb4a734b65b9f0 |
|
05-Nov-2011 |
Alex Wilson <yourpalal2@gmail.com> |
Override a bunch of methods in layout related classes for FBC stability. * Especially made sure to override archiving methods, since these are called rarely, so the cost is very minimal * Otherwise, the closer a class is to a base class, the more likely I was to give it all the overrides.
|
#
8151838e3892d0a18d89d73e2cc37e1f5d01264d |
|
02-Nov-2011 |
Alex Wilson <yourpalal2@gmail.com> |
Add FBC padding to all (I think..) of the visible Layout related classes.
|
#
a851b3ad543ebaebc18589b959c01ccaaf35202f |
|
31-Oct-2011 |
Alex Wilson <yourpalal2@gmail.com> |
Add Perform() methods to all the layout-related classes that needed them.
|
#
b38ea98f527e2d4a610e9891a10d19ddc9bc00c1 |
|
16-Oct-2011 |
Alex Wilson <yourpalal2@gmail.com> |
Devirtualize BLayout::InvalidateLayout(), add a protected hook BLayout::DoLayout(). This will allow for much better control over the propagation of layout invalidations, and therefore cleaner, more optimal code.
|
#
4e0131f51ba30445ab5b48d57ad45564cf6617d1 |
|
09-Sep-2011 |
Alex Wilson <yourpalal2@gmail.com> |
Rename BLayout::DerivedLayoutItems() to DoLayout(), which is consistent with BView::DoLayout(). Also adjusted child classes and documentation.
|
#
813147df835cb6637d8d2bbf737f96b5056898e6 |
|
09-Jun-2011 |
Alex Wilson <yourpalal2@gmail.com> |
* Add new SetInsets() methods to BTwoDimensionalLayout, BSplitView * Also add equivalent methods to the layout builders in LayoutBuilder.h * BSplitView now calls BControlLook::ComposeSpacing(), instead of BSplitLayout * part of #7447 git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42077 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
6648dd3cf1597c4fcae16fcfa76270f3acda90b6 |
|
07-Jun-2011 |
Alex Wilson <yourpalal2@gmail.com> |
* Add new spacing/inset constants for the layout API. For now, leave B_USE_DEFAULT_SPACING, but this will go soon. * Rename BControlLook::ComposeItemSpacing() to ComposeSpacing(), and extend it to handle the new constants. * Adjust users of BControlLook::ComposeItemSpacing() accordingly. * part of #7447 git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42025 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
de667551ce1c18738c555d92e8b3ec3e1ff86fb5 |
|
14-Apr-2011 |
Alex Wilson <yourpalal2@gmail.com> |
Add a new layouter 'CollapsingLayouter', which is used by BTwoDimensionalLayout to collapse empty rows or columns. Update BGridLayout so that empty rows/columns are given min/max constraints of B_SIZE_UNSET by default, which allows them to be collapsed. Fixes #6979 git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41252 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
82ab3167232c5c8ee53e684eddc83dc7cb60f1cc |
|
02-Sep-2010 |
Alex Wilson <yourpalal2@gmail.com> |
Add default spacing for Layouts (#5614) * introduce B_USE_DEFAULT_SPACING, which works somewhat like B_SIZE_UNSET and B_ALIGN_HORIZONTAL_UNSET * introduce static float BControlLook::ComposeItemSpacing(float spacing), which checks uses be_control_look->DefaultItemSpacing(). * modify layouts to use BControlLook::ComposeItemSpacing() in SetInsets and SetSpacing methods. * default insets are still 0, 0, 0, 0, but can be set to default spacing by passing B_USE_DEFAULT_SPACING * I've found two regressions, patches incoming, please report others on #5614. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38512 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
1d6c7b6cb6f46c2672074ff137a18833d4dd3041 |
|
17-Aug-2010 |
Alex Wilson <yourpalal2@gmail.com> |
Big change deriving BLayout from BLayoutItem, and allowing viewless BLayouts. a few highlights: * BLayout now derives publicly from BLayoutItem * Added BAbstractLayout class, which our layouts now derive from * updated layout builders to avoid creating views when they don't need to * updated layout classes * updated AboutSystem to fix a little regression * more details on #6407 * please tell me about any regressions, I've tried to find them all, but some may have slipped by. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38207 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
4a254e4ddbb0aaeb909ecd68a8442c4302618050 |
|
27-Jul-2010 |
Alex Wilson <yourpalal2@gmail.com> |
Generally, clean up new archiving constant names & strings to be consistent in all classes. Modify archiving constants to be const char* const (thanks Ingo). Also modify archiving in many classes to use less fields by storing more data in arrays and structs. The common min, max, and preferred sizes, for example are always stored in an array now. In BTwoDimensionalLayout and BSplitLayout, the insets are archived in a BRect. Also fixed a typo in BGridLayout which caused column info to be incorrect during archival. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37777 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
80c2bbd8ae62af882a3327024f8ab306a2923239 |
|
16-Jul-2010 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Patch by Alex Wilson (with small style changes by myself): Added support for archiving/unarchiving. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37541 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
1bbf3b889e0b5a3a5af7d21e25b2af185c32cf94 |
|
02-Jul-2010 |
Adrien Destugues <pulkomandy@pulkomandy.ath.cx> |
Patch by Alex Wilson as part of GSoC 2010 : fix a crashing bug in BTwoDimensionalLayout::AlignWith() (ticket #6244). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37348 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
320a5686e4a077d464f71a382571d882784321c3 |
|
28-Mar-2010 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
* The CompoundLayouters were leaked before. Made the class BReferenceable and update references correctly. * LocalLayouter::SetCompoundLayouter(): Remove the local layouter from the previous compound layouter. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35983 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
07dbd4d5237ba47cf1b40857af9b40752eb2ea79 |
|
17-Oct-2009 |
Axel Dörfler <axeld@pinc-software.de> |
* Cleanup, no functional change. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33615 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
a0747aad3bb6204d11f634473eeced2d3f351875 |
|
29-Jun-2009 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
After the first call to BView::InvalidateLayout() further invocations don't invoke the layout's InvalidateLayout() anymore. This could cause problems when the layout caches layout related information and also updates those on calls other than LayoutView(). A call to such a method after an InvalidateLayout() would mark the cached info valid and the layout would use the cached info until the first InvalidateLayout() after the next LayoutView(), even if BView::InvalidateLayout() had been called again in the meantime. * Introduced a new method BView::ResetLayoutInvalidation(), which must be called by layout implementations whenever they have updated their cached information and need further InvalidateLayout() notifications. * Adjusted the existing layout implementations to use the method. Fixes bug #4047. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31316 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
4aeb7a3cc2d01a2d21127d7dd8cf5594e6c1e141 |
|
23-Jun-2009 |
Stephan Aßmus <superstippi@gmx.de> |
* Made BTwoDimensionalLayout and BSplitLayout::GetInsets() const. * Give access to BSplitLayout::SetInsets() and GetInsets() from BSplitView. * Give access to BSplitView::SetInsets() from BSplitLayoutBuilder and LayoutBuilder. * Some automatic white-space cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31197 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
99238ef54fffc6e5af8e2ce682d0365770abeb55 |
|
19-Feb-2008 |
Stephan Aßmus <superstippi@gmx.de> |
Disable excessive debug output. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24024 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
8c2647695a7b6b6dc7257886ea2102561d3b100d |
|
27-Sep-2007 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
* Removed the qoca library and the layouter implementation using it. * Use the new ComplexLayouter for the more complex layouting tasks. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22335 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
a19a660a78afa845a9d54d5b2edd135257334658 |
|
12-May-2007 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Removed the BSize(const BRect&) constructor and added BRect::Size() instead. Also added a BRect(BPoint, BSize) constructor. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21120 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
9ecf9d1c1d4888d341a6eac72112c72d1ae3a4cb |
|
26-Aug-2006 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Merge from layout management branch. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18649 a95241bf-73f2-0310-859d-f6bbb57e9c96
|