#
57c5b09e |
|
05-Aug-2012 |
Ryan Leavengood <leavengood@gmail.com> |
Use be_control_look != NULL everywhere in the Interface Kit. Should not be a functional change. It is not in the Haiku Coding Guidelines but I feel like 'if (object != NULL)' is generally preferred to 'if (object)', plus in this case of be_control_look that is the more common style.
|
#
eee4243d |
|
20-Oct-2011 |
Alex Wilson <yourpalal2@gmail.com> |
De-virtualize BView::InvalidateLayout() and introduce LayoutInvalidated() hook, like BLayout.
|
#
26fe4141 |
|
13-Apr-2010 |
Stephan Aßmus <superstippi@gmx.de> |
Small coding style fixes. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36216 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
2f86ba45 |
|
15-Feb-2009 |
Stephan Aßmus <superstippi@gmx.de> |
Implemented a new look for the Haiku interface controls. It was overheard that they looked too ninety-ish. TODO: The code behind this is work in progress. The basic idea is to extract all drawing code into a new class BControlLook, of which there is a global instance be_control_look, instantiated in InterfaceDefs.cpp. At the moment, all the old drawing code is still there, and the usage of be_control_look is inside if-bodies checking the instance against NULL. In another words, by not instanitating be_control_look, you can revert back to the old look. BControlLook's job is to provide reusable methods for drawing certain types of frames, backgrounds and labels, so that application developers can make controls that re-use the same drawing code as built-in controls and adopt to changes made there. I have added the notion of "borders". Each of the frame drawing methods can be made to draw certain borders only, which is supposed to help when controls shall visually attach. This feature is not fully explored at all ATM. TODO: Update BColumnListView header view and BStringItem text spacing. Update other apps where it makes sense to use BControlLook. For the moment, only Tracker and LaunchBox are updated. More... NOTE: The new look is not very radically different, so that existing apps do not immediately look too ugly or out of place. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
39fbf550 |
|
15-Oct-2008 |
Oliver Tappe <zooey@hirschkaefer.de> |
bonefish + zooey: * Fixed a general problem with respect to overriding of the reserved virtual function slots: instead of statically invoking the method that corresponds to the reserved slot on the class that contains the slot, we now invoke the virtual Perform() method. Perform() then dispatches the method invocation to the "proper" class, i.e. the highest class in the hierarchy that actually implements the requested method. This fixes a crash in apps that use liblayout's MSlider class and should fix one or other spurious bug with old apps or libraries, too. * added new header folder 'binary_compatibility' that contains files that define the method codes and data structures required by Perform() * looked for and implemented all used reserved virtual slot functions to invoke Perform() where necessary or to pass on the method call statically (for slots that were already maintained by Be) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28124 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
43f8c614 |
|
16-Sep-2008 |
Stephan Aßmus <superstippi@gmx.de> |
* Updated the coding style. * The layout friendly constructors don't need to mess with the control size. * The layout friendly constructors can use the respective BControl constructor. * Refactored some duplicated code. * Removed duplicated GetFontHeight() calls. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27585 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
|
#
17408188 |
|
12-Jul-2006 |
Jérôme Duval <korli@users.berlios.de> |
SetValue now avoids itself switching off also added an ASSERT to check the current radio button is still on after the switching off process this fixes the weird behavior in the password window of the ScreenSaver prefapp git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18107 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
19f441e5 |
|
05-May-2006 |
Stephan Aßmus <superstippi@gmx.de> |
the drawing code was optimized for bugs in Painter, no longer necessary git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17330 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
40fc37b0 |
|
11-Mar-2006 |
Axel Dörfler <axeld@pinc-software.de> |
* Fixed GetPreferredSize() * Text height was computed with roundf() instead of ceilf() (which makes more sense). * Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16706 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
a71c9607 |
|
01-Feb-2006 |
Axel Dörfler <axeld@pinc-software.de> |
* BControl::SetValue() now calls Invalidate() again - not doing so would break compatibility a bit too much (as this is a public class). * Instead, we're now using the same mechanism as in Dano/Zeta, that is, we use BControl::SetValueNoUpdate() in the inherited classes. * Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16183 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
8643b098 |
|
23-Nov-2005 |
Axel Dörfler <axeld@pinc-software.de> |
All controls/views now accept NULL arguments for "width" and "height" in GetPreferredSize(). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15091 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
5ac57aeb |
|
05-Nov-2005 |
Stephan Aßmus <superstippi@gmx.de> |
improved look and applied style guide, fixed redrawing in BWindows with synchronous controls, it wouldn't have mattered if Haiku didn't have anti-aliasing, override B_RETURN on keydown to disallow turning the control off git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14715 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
0c3344f4 |
|
03-Jun-2005 |
Stephan Aßmus <superstippi@gmx.de> |
no Invalidate in BControl::SetValue, I figure more controls need to be updated for this change git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12947 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
c7694b4a |
|
17-May-2005 |
Stephan Aßmus <superstippi@gmx.de> |
Make the dot a dynamic size and improve the rendering for anti-aliasing under Haiku. Confirmed to look good with different font sizes. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12711 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
9199a339 |
|
20-Oct-2004 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Synchronous and asynchronous MouseDown() code was wrongly placed. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9436 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
8053a364 |
|
16-Jun-2003 |
Marc Flerackers <mflerackers@nowhere.fake> |
Assynchronous mouse hooks and correct handling of BRadioButtons in BBox-en :) git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3534 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
ac6f7aa8 |
|
23-Jan-2003 |
Marc Flerackers <mflerackers@nowhere.fake> |
Lots of fixes, geometry calculations updated, added buffered BSlider support git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2539 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
a577a699 |
|
17-Oct-2002 |
Marc Flerackers <mflerackers@nowhere.fake> |
Fixed a bug in SetValue() git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1559 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
52a38012 |
|
08-Jul-2002 |
ejakowatz <ejakowatz@nowhere.fake> |
It is accomplished ... git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
57c5b09e1a3d0f36f94cbab11c96842d782b8eaf |
|
05-Aug-2012 |
Ryan Leavengood <leavengood@gmail.com> |
Use be_control_look != NULL everywhere in the Interface Kit. Should not be a functional change. It is not in the Haiku Coding Guidelines but I feel like 'if (object != NULL)' is generally preferred to 'if (object)', plus in this case of be_control_look that is the more common style.
|
#
eee4243d35225a35d0964ebebe94490eaca14261 |
|
20-Oct-2011 |
Alex Wilson <yourpalal2@gmail.com> |
De-virtualize BView::InvalidateLayout() and introduce LayoutInvalidated() hook, like BLayout.
|
#
26fe41417d84b47074967073b8ea2f6910832dfe |
|
13-Apr-2010 |
Stephan Aßmus <superstippi@gmx.de> |
Small coding style fixes. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36216 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
2f86ba45579bdc9648b232175f87edc62ab71b54 |
|
15-Feb-2009 |
Stephan Aßmus <superstippi@gmx.de> |
Implemented a new look for the Haiku interface controls. It was overheard that they looked too ninety-ish. TODO: The code behind this is work in progress. The basic idea is to extract all drawing code into a new class BControlLook, of which there is a global instance be_control_look, instantiated in InterfaceDefs.cpp. At the moment, all the old drawing code is still there, and the usage of be_control_look is inside if-bodies checking the instance against NULL. In another words, by not instanitating be_control_look, you can revert back to the old look. BControlLook's job is to provide reusable methods for drawing certain types of frames, backgrounds and labels, so that application developers can make controls that re-use the same drawing code as built-in controls and adopt to changes made there. I have added the notion of "borders". Each of the frame drawing methods can be made to draw certain borders only, which is supposed to help when controls shall visually attach. This feature is not fully explored at all ATM. TODO: Update BColumnListView header view and BStringItem text spacing. Update other apps where it makes sense to use BControlLook. For the moment, only Tracker and LaunchBox are updated. More... NOTE: The new look is not very radically different, so that existing apps do not immediately look too ugly or out of place. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
39fbf5509b8740d9883b61649027478dc8a3ead8 |
|
15-Oct-2008 |
Oliver Tappe <zooey@hirschkaefer.de> |
bonefish + zooey: * Fixed a general problem with respect to overriding of the reserved virtual function slots: instead of statically invoking the method that corresponds to the reserved slot on the class that contains the slot, we now invoke the virtual Perform() method. Perform() then dispatches the method invocation to the "proper" class, i.e. the highest class in the hierarchy that actually implements the requested method. This fixes a crash in apps that use liblayout's MSlider class and should fix one or other spurious bug with old apps or libraries, too. * added new header folder 'binary_compatibility' that contains files that define the method codes and data structures required by Perform() * looked for and implemented all used reserved virtual slot functions to invoke Perform() where necessary or to pass on the method call statically (for slots that were already maintained by Be) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28124 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
43f8c6143ab803f64b966b257a7488e02b1aec86 |
|
16-Sep-2008 |
Stephan Aßmus <superstippi@gmx.de> |
* Updated the coding style. * The layout friendly constructors don't need to mess with the control size. * The layout friendly constructors can use the respective BControl constructor. * Refactored some duplicated code. * Removed duplicated GetFontHeight() calls. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27585 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
|
#
17408188c51c8c137e497669a25aefce604ceec6 |
|
12-Jul-2006 |
Jérôme Duval <korli@users.berlios.de> |
SetValue now avoids itself switching off also added an ASSERT to check the current radio button is still on after the switching off process this fixes the weird behavior in the password window of the ScreenSaver prefapp git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18107 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
19f441e57543994eadbd3a2870b5b21bbdcc182a |
|
05-May-2006 |
Stephan Aßmus <superstippi@gmx.de> |
the drawing code was optimized for bugs in Painter, no longer necessary git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17330 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
40fc37b0ae7da03188f4dc25659d8acee5eaa4f0 |
|
11-Mar-2006 |
Axel Dörfler <axeld@pinc-software.de> |
* Fixed GetPreferredSize() * Text height was computed with roundf() instead of ceilf() (which makes more sense). * Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16706 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
a71c960755b6e636ce99639c700d3415788c7b41 |
|
01-Feb-2006 |
Axel Dörfler <axeld@pinc-software.de> |
* BControl::SetValue() now calls Invalidate() again - not doing so would break compatibility a bit too much (as this is a public class). * Instead, we're now using the same mechanism as in Dano/Zeta, that is, we use BControl::SetValueNoUpdate() in the inherited classes. * Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16183 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
8643b0987c2d6aca25b53fb6d8fa0a126b2b3f1f |
|
23-Nov-2005 |
Axel Dörfler <axeld@pinc-software.de> |
All controls/views now accept NULL arguments for "width" and "height" in GetPreferredSize(). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15091 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
5ac57aebfbdc1b185b31616c6f0b949d20900762 |
|
05-Nov-2005 |
Stephan Aßmus <superstippi@gmx.de> |
improved look and applied style guide, fixed redrawing in BWindows with synchronous controls, it wouldn't have mattered if Haiku didn't have anti-aliasing, override B_RETURN on keydown to disallow turning the control off git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14715 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
0c3344f4a18959a347e6ed9d58fc31976b72d6b4 |
|
03-Jun-2005 |
Stephan Aßmus <superstippi@gmx.de> |
no Invalidate in BControl::SetValue, I figure more controls need to be updated for this change git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12947 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
c7694b4ac7ff5e5e010debe4eea3b5b69aafb664 |
|
17-May-2005 |
Stephan Aßmus <superstippi@gmx.de> |
Make the dot a dynamic size and improve the rendering for anti-aliasing under Haiku. Confirmed to look good with different font sizes. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12711 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
9199a3397bec0badca7d6f898be3185213597a29 |
|
20-Oct-2004 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Synchronous and asynchronous MouseDown() code was wrongly placed. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9436 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
8053a364e1f8e6d34b4b96ca502c43b6efacb4e1 |
|
16-Jun-2003 |
Marc Flerackers <mflerackers@nowhere.fake> |
Assynchronous mouse hooks and correct handling of BRadioButtons in BBox-en :) git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3534 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
ac6f7aa8506e964f35eb1c1107aea80ae7d06d18 |
|
23-Jan-2003 |
Marc Flerackers <mflerackers@nowhere.fake> |
Lots of fixes, geometry calculations updated, added buffered BSlider support git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2539 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
a577a699da0965203aac998dca1346857293857c |
|
17-Oct-2002 |
Marc Flerackers <mflerackers@nowhere.fake> |
Fixed a bug in SetValue() git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1559 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
52a380120846174213ccce9c4aab0dda17c72083 |
|
08-Jul-2002 |
ejakowatz <ejakowatz@nowhere.fake> |
It is accomplished ... git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10 a95241bf-73f2-0310-859d-f6bbb57e9c96
|