#
08fdc76a |
|
23-Jul-2022 |
Augustin Cavalier <waddlesplash@gmail.com> |
WebPositive: Fix INTEGRATE_MENU_INTO_TAB_BAR. It seems to have been broken for some time. Maybe some users want this and we should expose it in settings instead of hiding it behind #ifs?
|
#
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>
|
#
aa7f93c5 |
|
24-Jan-2019 |
Rob Gill <rrobgill@protonmail.com> |
src/apps Code formatting * No functional changes code formatting changes only Change-Id: I046ae21d9b288126022fe0bc2ddf827843765e70 Reviewed-on: https://review.haiku-os.org/c/896 Reviewed-by: Stephan Aßmus <superstippi@gmx.de>
|
#
3b9755d7 |
|
09-Sep-2017 |
John Scipione <jscipione@gmail.com> |
Webpositive: unset tool tip over tab close button Tool tip reads tab name or "New tab" for new tab, making it sometimes appear that the close button would produce a new tab instead. Removing the tooltip over the close button eliminates this confusion. An alternative suggested in hrev45298 was to make the tool tip say "Close tab" instead but some felt it unneccessary and so was reverted. "A tool-tip for the close buttons is completely unnecessary. The prevailing thought for items where the action is easy to grasp (or easy to grasp upon clicking the first time), is that a tool tip is not necessary." This method fixes the confusion w/o adding uneccessary clutter.
|
#
ec7c3ff3 |
|
09-Sep-2017 |
John Scipione <jscipione@gmail.com> |
Webpositive: Refactor ... to make variables available in outer scope, eliminate now redundant nested if and reorder condition variables to avoid function call in common case. all prep for next commit...
|
#
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>
|
#
fa19dd44 |
|
10-Dec-2015 |
looncraz <looncraz@looncraz.net> |
apps: Convert to using Set*UIColor. Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com> Patches 0045-0075, 0077-0087 from looncraz, unmodified.
|
#
1cb5adb6 |
|
23-Apr-2014 |
Adrien Destugues <pulkomandy@pulkomandy.tk> |
TabManager: better delay detection for closing the menu. As suggested by stippi, we can use system_time and the CurrentMessage when field to determine the relative time of the actual mouse clicks, rather than the time of message delivery.
|
#
507a03cf |
|
22-Apr-2014 |
Adrien Destugues <pulkomandy@pulkomandy.tk> |
Clsoe the tab list menu when clicking the button twice. The menu was closed, but immediately reopened by the click on the button. If the time since the menu closing is shorter than a double-click delay, don't open the menu again. Fixes #9538.
|
#
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.
|
#
3d319aec |
|
15-Jun-2013 |
Stephan Aßmus <superstippi@gmx.de> |
WebPositive - TabManager - fixed off by one error in seemingly unused code.
|
#
fff103f5 |
|
20-Feb-2013 |
John Scipione <jscipione@gmail.com> |
WebPositive close x fixes. * Remove the Close tab and Close find bar tooltips. * Offset the x again. * Add some comments.
|
#
789e7d85 |
|
18-Feb-2013 |
John Scipione <jscipione@gmail.com> |
Tweak close x so it doesn't look disabled
|
#
cdb4abbd |
|
17-Feb-2013 |
John Scipione <jscipione@gmail.com> |
Add tooltips for close tab and close find bar
|
#
688daae9 |
|
17-Feb-2013 |
John Scipione <jscipione@gmail.com> |
Don't offset close tab x on click
|
#
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.
|
#
552778e9 |
|
07-Jan-2011 |
leavengood <leavengood@94f232f2-1747-11df-bad5-a5bfde151594> |
Align the tabs menu by using AttachedToWindow. Somewhat of a hack and I swear InvalidateLayout worked before, but it does not seem to now. Also use a const for an empty BString instead of returning a local for the tab label. git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@573 94f232f2-1747-11df-bad5-a5bfde151594
|
#
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
|
#
8c15e233 |
|
12-Dec-2010 |
leavengood <leavengood@94f232f2-1747-11df-bad5-a5bfde151594> |
Set the tab label to the URL if no title is provided in the HTML. Fixes #6330. And so I'm back on Web+ development. Yay. git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@549 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
|
#
ed0c70c1 |
|
14-Jun-2010 |
stippi <stippi@94f232f2-1747-11df-bad5-a5bfde151594> |
* Small cleanups. * Make sure that the BWebView for which a notification is received still exists. This affected only the title changed notification, for which this was already checked, and the icon received notification, which could actually lead to a crash if the tab was closed before receiving the notification. git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@522 94f232f2-1747-11df-bad5-a5bfde151594
|
#
af7e6dd1 |
|
19-May-2010 |
stippi <stippi@94f232f2-1747-11df-bad5-a5bfde151594> |
Display tool tips for browser tabs with the page title. git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@504 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
|
#
1cb5adb6983c29bedce9c716877bae8cf8c1e921 |
|
23-Apr-2014 |
Adrien Destugues <pulkomandy@pulkomandy.tk> |
TabManager: better delay detection for closing the menu. As suggested by stippi, we can use system_time and the CurrentMessage when field to determine the relative time of the actual mouse clicks, rather than the time of message delivery.
|
#
507a03cfe0f3a52f3b3ec9bfd7d9498c9f3c754e |
|
22-Apr-2014 |
Adrien Destugues <pulkomandy@pulkomandy.tk> |
Clsoe the tab list menu when clicking the button twice. The menu was closed, but immediately reopened by the click on the button. If the time since the menu closing is shorter than a double-click delay, don't open the menu again. Fixes #9538.
|
#
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.
|
#
3d319aec2612dfdc4bd8a53e957ef302378c5bc6 |
|
15-Jun-2013 |
Stephan Aßmus <superstippi@gmx.de> |
WebPositive - TabManager - fixed off by one error in seemingly unused code.
|
#
fff103f567777567fafabf5b7c3f6c252642f80d |
|
20-Feb-2013 |
John Scipione <jscipione@gmail.com> |
WebPositive close x fixes. * Remove the Close tab and Close find bar tooltips. * Offset the x again. * Add some comments.
|
#
789e7d856e1e59af76566b9f806c2087258be0d7 |
|
18-Feb-2013 |
John Scipione <jscipione@gmail.com> |
Tweak close x so it doesn't look disabled
|
#
cdb4abbd185bf5a02ef0d7bbcba449bf60fc17b2 |
|
17-Feb-2013 |
John Scipione <jscipione@gmail.com> |
Add tooltips for close tab and close find bar
|
#
688daae9cc75fe02cc0dc063b8e07c8df5cdf54c |
|
17-Feb-2013 |
John Scipione <jscipione@gmail.com> |
Don't offset close tab x on click
|
#
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.
|
#
552778e90ca6fb2df4728cb2fe4d5279039980c3 |
|
07-Jan-2011 |
leavengood <leavengood@94f232f2-1747-11df-bad5-a5bfde151594> |
Align the tabs menu by using AttachedToWindow. Somewhat of a hack and I swear InvalidateLayout worked before, but it does not seem to now. Also use a const for an empty BString instead of returning a local for the tab label. git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@573 94f232f2-1747-11df-bad5-a5bfde151594
|
#
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
|
#
8c15e2338555542ec1f90471e3b39fab287cc7b3 |
|
12-Dec-2010 |
leavengood <leavengood@94f232f2-1747-11df-bad5-a5bfde151594> |
Set the tab label to the URL if no title is provided in the HTML. Fixes #6330. And so I'm back on Web+ development. Yay. git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@549 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
|
#
ed0c70c14d54d2e70168fbdfda1168c25411214a |
|
14-Jun-2010 |
stippi <stippi@94f232f2-1747-11df-bad5-a5bfde151594> |
* Small cleanups. * Make sure that the BWebView for which a notification is received still exists. This affected only the title changed notification, for which this was already checked, and the icon received notification, which could actually lead to a crash if the tab was closed before receiving the notification. git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@522 94f232f2-1747-11df-bad5-a5bfde151594
|
#
af7e6dd1a4d25e5c44ebf550c03c149243a5e87f |
|
19-May-2010 |
stippi <stippi@94f232f2-1747-11df-bad5-a5bfde151594> |
Display tool tips for browser tabs with the page title. git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@504 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
|