#
7c095f47 |
|
01-Jun-2020 |
John Scipione <jscipione@gmail.com> |
BeControlLook: Fix app integration drawing issues Update BTab::DrawTab() to pass the current index, the index of the selected tab, and the index of the first and last tabs into BControlLook::DrawActiveTab() and BControlLook::DrawInactiveTab(). This allows you to draw tabs differently in your BTab or BControlLook subclass in many different circumstances. Modify BControlLook API to add indexes to DrawActiveTab() and DrawInactiveTab() like so: void DrawActiveTab(..., int32 index = 0, int32 selected = -1, int32 first = 0, int32 last = 0); void DrawInactiveTab(..., int32 index = 0, int32 selected = -1, int32 first = 0, int32 last = 0); These extra indexes are not used by HaikuControlLook which relies only on if the tab is active or inactive to draw. Add IndexOf(BTab* tab) method to BTabView and document it to get the index of the current tab in BTab::DrawTab(). Also add a warning in the BTabView::DrawTab() method not to use the position and full parameters anymore, use BTabView::IndexOf(), BTabView::Selection(), and BTabView::TabCount() to get the info you need. Using a dynamic_cast to a BTabView in BeControlLook to determine if the view is derived from a BTabView didn't work in the case of WebPositive. Furthermore, WebPositive does custom tab drawing which needed to be updated for alternative control look. These index parameters passed from BTab to BeControlLook allow us to draw the tab like BeOS without relying on a dynamic_cast to BTabView to get the info. Reproduce the functionality described above for BTab in WebPositive's custom tabs. Eliminate no longer needed code in favor of using indexes. Update WebPositive custom tabs to use BControlLook::DrawTabFrame() instead of BControlLook::DrawInactiveTab() matching the update made in BTabView. In BeControlLook::DrawTabFrame() fill rect with base color, WebPositive doesn't draw any tab background, so it expects this work to be done for it. Eliminate hasFrames variable from WebPositive. Rename TabSelected(index) to UpdateSelection(index) in WebPositive to better reflect its purpose. Adjusted HaikuControlLook::DrawInactiveTab() to draw the tab borders more selectively. Only draw border if left border is set for top and bottom tabs or top border is set for left and right tabs. Undo no longer needed frame manipulation border drawing workaround in HaikuControlLook::DrawTabFrame(). Draw scroll bar triangle without using DrawArrowShape(). Unlike in HaikuControlLook, DrawArrowShape() is used to draw arrows in BOutlineListView and menus distinctly from how it draws arrows in scroll bars. Draw our distinct arrows in DrawSrollBarButtons() instead. This fixes overflow of time edit up-down arrows in Clock prefs and the collapse-expand arrow in Deskbar not being vertically centered. In DrawBorders() only inset if we actually draw the border. Fix alignment issues with DrawSliderThumb dots for example in MediaPlayer volume knobs. Draw using line arrays calling AddLine instead of StrokeLine in several places. DrawMenuBar() extends to draw final pixel which eliminates an extra lines at the end of menu bars. Truncate button labels better fixing a few issues for example keymap keyboard layout button labels. Button insets has been updated a bit to fix drawing issues with buttons missing a border. Using a dynamic_cast to a BButton to determine if a view is a button in BeControlLook didn't work in the case of the keymap label. Look for B_FLAT, B_HOVER, or B_DEFAULT_BUTTON flag in BeControlLook::DrawLabel() to draw the label inverted on click. Pass the B_FLAT flag from Keymap keys when drawing using BControlLook so that the label is inverted. Change-Id: I07631f4b006bdb9aeca2adc9cbdf2da54dae8e92 Reviewed-on: https://review.haiku-os.org/c/haiku/+/2866 Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
|
#
cf3524e0 |
|
26-Aug-2017 |
Kacper Kasper <kacperkasper@gmail.com> |
Fix WebPositive drawing glitches. * Introduced with recent BTabView changes. * Adjust drawing tabs a bit. * Remove trailing whitespace. Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
|
#
9f97d1cc |
|
23-Apr-2014 |
Adrien Destugues <pulkomandy@pulkomandy.tk> |
Remove useless include.
|
#
b4c8efac |
|
16-Jun-2013 |
Stephan Aßmus <superstippi@gmx.de> |
WebPositive: Removed wrong license text from all files ... ... which were technically never distributed by Apple nor are derived from code distributed by Apple. Only BrowserApp and BrowserWindow were originally derived from code that used to be part of WebKit and was distributed by Apple.
|
#
9d33da6c |
|
16-Jun-2013 |
Stephan Aßmus <superstippi@gmx.de> |
WebPositive: Fixed untranslated empty tab region tool-tip.
|
#
8236628b |
|
17-Feb-2013 |
John Scipione <jscipione@gmail.com> |
Style changes only
|
#
45ecce1d |
|
29-Jul-2012 |
Ryan Leavengood <leavengood@gmail.com> |
Fix #6978: Add and close tabs on middle mouse down, not up. This reduces perceived latency. One day when I add a tab close undo stack, this will be even better. But generally using the middle mouse button is not accidental.
|
#
739ed61c |
|
20-Jul-2012 |
Philippe Saint-Pierre <stpere@gmail.com> |
CID 709703: Order of ops was unclear, but insignificant
|
#
1af1ea85 |
|
04-Jan-2011 |
leavengood <leavengood@94f232f2-1747-11df-bad5-a5bfde151594> |
Implement #35: Add a tab menu. Still needs icons but this works for now. git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@569 94f232f2-1747-11df-bad5-a5bfde151594
|
#
530dea0f |
|
27-Dec-2010 |
leavengood <leavengood@94f232f2-1747-11df-bad5-a5bfde151594> |
Let the controller handle setting the default tool tip for the tab bar so it knows the state changed. A good example of where using a controller-based design can't be done halfway. It took me way too long to debug this (that mostly being my fault.) Fixes #6382. git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@556 94f232f2-1747-11df-bad5-a5bfde151594
|
#
26bc1632 |
|
09-Dec-2010 |
anevilyak <anevilyak@94f232f2-1747-11df-bad5-a5bfde151594> |
Layout fixes that hadn't yet been committed. git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@548 94f232f2-1747-11df-bad5-a5bfde151594
|
#
e71c5717 |
|
25-Jul-2010 |
stippi <stippi@94f232f2-1747-11df-bad5-a5bfde151594> |
Account for the fact that the visible frame of a tab is one pixel larger at the bottom. Will fix Haiku ticket #6383 when a new package is made available. git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@539 94f232f2-1747-11df-bad5-a5bfde151594
|
#
3a3173e8 |
|
22-May-2010 |
stippi <stippi@94f232f2-1747-11df-bad5-a5bfde151594> |
Set a tool-tip for the area outside of any tabs. git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@514 94f232f2-1747-11df-bad5-a5bfde151594
|
#
d5c44717 |
|
02-May-2010 |
stippi <stippi@94f232f2-1747-11df-bad5-a5bfde151594> |
* Fixed double click outside tabs to only be recognized when the first click was outside as well. * Single tertiary click outside tabs opens new tab on mouse up. * Reset fClickCount always when the click was inside a tab. git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@474 94f232f2-1747-11df-bad5-a5bfde151594
|
#
ef4f1b55 |
|
03-May-2010 |
stippi <stippi@94f232f2-1747-11df-bad5-a5bfde151594> |
Since fLastMouseEventTab is never updated in _MouseMoved() while fMouseDown is true, we need to recheck it in MouseUp(). This would fix the problem with the middle mouse button click to close tabs if we didn't move closing to the mouse up event, and it also fixes other situations, like clicking on one tab, moving the mouse over another tab's close button, releasing the mouse and clicking again without moving it inbetween. git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@471 94f232f2-1747-11df-bad5-a5bfde151594
|
#
464aca71 |
|
01-May-2010 |
stippi <stippi@94f232f2-1747-11df-bad5-a5bfde151594> |
Fix a bug with closing tabs by pressing the tertiary mouse button. fMouseDown would be true, but the fLastMouseEventTab would have been reset when removing the tab. Rather than fixing this problem, behave the same as Firefox and close the tab on mouse up (when the mouse is still over the tab, which allows the user a way back out). Avoids the above problem as a side effect. git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@469 94f232f2-1747-11df-bad5-a5bfde151594
|
#
029353b4 |
|
14-Apr-2010 |
stippi <stippi@94f232f2-1747-11df-bad5-a5bfde151594> |
* Reworded defines in Jamfiles to make them more readable. * Split WebTabView into several files in a new sub-folder "tabview". * Implemented scrolling the tab view left/right when there are more tabs than fit into the view. * Fixed graphic glitches in the TabContainerView when the window is resized, the space behind the last tab was not managed properly. git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@416 94f232f2-1747-11df-bad5-a5bfde151594
|
#
9f97d1cca2a5e32433f5767ddefe80586a40e53e |
|
23-Apr-2014 |
Adrien Destugues <pulkomandy@pulkomandy.tk> |
Remove useless include.
|
#
b4c8efacea6265d17537b6b5fe007c21ea9d9dd1 |
|
16-Jun-2013 |
Stephan Aßmus <superstippi@gmx.de> |
WebPositive: Removed wrong license text from all files ... ... which were technically never distributed by Apple nor are derived from code distributed by Apple. Only BrowserApp and BrowserWindow were originally derived from code that used to be part of WebKit and was distributed by Apple.
|
#
9d33da6ca412e6861e7c651c32907f3173400dc4 |
|
16-Jun-2013 |
Stephan Aßmus <superstippi@gmx.de> |
WebPositive: Fixed untranslated empty tab region tool-tip.
|
#
8236628b59ddeb8a9d850d8baa84b51cf1842951 |
|
17-Feb-2013 |
John Scipione <jscipione@gmail.com> |
Style changes only
|
#
45ecce1d57e8fa0f58c0f50627f87924cb87e514 |
|
29-Jul-2012 |
Ryan Leavengood <leavengood@gmail.com> |
Fix #6978: Add and close tabs on middle mouse down, not up. This reduces perceived latency. One day when I add a tab close undo stack, this will be even better. But generally using the middle mouse button is not accidental.
|
#
739ed61c38bf8e712f6c9b88c20ed5a860acfc00 |
|
20-Jul-2012 |
Philippe Saint-Pierre <stpere@gmail.com> |
CID 709703: Order of ops was unclear, but insignificant
|
#
1af1ea854634d4b2c84bf0bc170a63b58a6269b5 |
|
04-Jan-2011 |
leavengood <leavengood@94f232f2-1747-11df-bad5-a5bfde151594> |
Implement #35: Add a tab menu. Still needs icons but this works for now. git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@569 94f232f2-1747-11df-bad5-a5bfde151594
|
#
530dea0f1619582b0246b5c7e1daad06e783b7ff |
|
27-Dec-2010 |
leavengood <leavengood@94f232f2-1747-11df-bad5-a5bfde151594> |
Let the controller handle setting the default tool tip for the tab bar so it knows the state changed. A good example of where using a controller-based design can't be done halfway. It took me way too long to debug this (that mostly being my fault.) Fixes #6382. git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@556 94f232f2-1747-11df-bad5-a5bfde151594
|
#
26bc1632000d90f95e6aaef5f468c735c5370ed6 |
|
09-Dec-2010 |
anevilyak <anevilyak@94f232f2-1747-11df-bad5-a5bfde151594> |
Layout fixes that hadn't yet been committed. git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@548 94f232f2-1747-11df-bad5-a5bfde151594
|
#
e71c5717b1aa65043bbef09830a474257e05403b |
|
25-Jul-2010 |
stippi <stippi@94f232f2-1747-11df-bad5-a5bfde151594> |
Account for the fact that the visible frame of a tab is one pixel larger at the bottom. Will fix Haiku ticket #6383 when a new package is made available. git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@539 94f232f2-1747-11df-bad5-a5bfde151594
|
#
3a3173e8cb42451fb9f99ea773b50085cfe5ba41 |
|
22-May-2010 |
stippi <stippi@94f232f2-1747-11df-bad5-a5bfde151594> |
Set a tool-tip for the area outside of any tabs. git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@514 94f232f2-1747-11df-bad5-a5bfde151594
|
#
d5c4471790572a33a47d80317f523aac096c216e |
|
02-May-2010 |
stippi <stippi@94f232f2-1747-11df-bad5-a5bfde151594> |
* Fixed double click outside tabs to only be recognized when the first click was outside as well. * Single tertiary click outside tabs opens new tab on mouse up. * Reset fClickCount always when the click was inside a tab. git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@474 94f232f2-1747-11df-bad5-a5bfde151594
|
#
ef4f1b553391ba664a1ef6a287b1afc6039f4f61 |
|
03-May-2010 |
stippi <stippi@94f232f2-1747-11df-bad5-a5bfde151594> |
Since fLastMouseEventTab is never updated in _MouseMoved() while fMouseDown is true, we need to recheck it in MouseUp(). This would fix the problem with the middle mouse button click to close tabs if we didn't move closing to the mouse up event, and it also fixes other situations, like clicking on one tab, moving the mouse over another tab's close button, releasing the mouse and clicking again without moving it inbetween. git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@471 94f232f2-1747-11df-bad5-a5bfde151594
|
#
464aca712fec2d1d0db5200721e5acc0529e6a0b |
|
01-May-2010 |
stippi <stippi@94f232f2-1747-11df-bad5-a5bfde151594> |
Fix a bug with closing tabs by pressing the tertiary mouse button. fMouseDown would be true, but the fLastMouseEventTab would have been reset when removing the tab. Rather than fixing this problem, behave the same as Firefox and close the tab on mouse up (when the mouse is still over the tab, which allows the user a way back out). Avoids the above problem as a side effect. git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@469 94f232f2-1747-11df-bad5-a5bfde151594
|
#
029353b44c63fa39a9135f36f225bfac5daed34b |
|
14-Apr-2010 |
stippi <stippi@94f232f2-1747-11df-bad5-a5bfde151594> |
* Reworded defines in Jamfiles to make them more readable. * Split WebTabView into several files in a new sub-folder "tabview". * Implemented scrolling the tab view left/right when there are more tabs than fit into the view. * Fixed graphic glitches in the TabContainerView when the window is resized, the space behind the last tab was not managed properly. git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@416 94f232f2-1747-11df-bad5-a5bfde151594
|