97 Commits

Author SHA1 Message Date
kmcclusk%netscape.com
7102d1ac96 fix for bug#4325. ScrollingView's now manage their component's (mClipView, mHScrollBarView,
mVScrollBarView, mCornerView) visibility when the ScrollingView's visibility changes.


git-svn-id: svn://10.0.0.236/trunk@27877 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-16 19:18:30 +00:00
michaelp%netscape.com
d8c7e182c0 cleaned up view flags stuff.
git-svn-id: svn://10.0.0.236/trunk@27817 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-16 04:23:43 +00:00
joki%netscape.com
9a0d9abb24 Adding spacebar to list of keys that will scroll page.
git-svn-id: svn://10.0.0.236/trunk@26545 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-06 21:37:34 +00:00
kipp%netscape.com
639a6cdf02 Make SetWidget assertion more particular about when to bomb
git-svn-id: svn://10.0.0.236/trunk@26161 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-03 19:01:15 +00:00
troy%netscape.com
62df50c49d Fix for bug #4317. Changed SetPosition() to call AdjustChildWidgets() with
"this" as the second parameter instead of the scrolled view


git-svn-id: svn://10.0.0.236/trunk@25352 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-28 05:25:07 +00:00
michaelp%netscape.com
ed7c96c44c added Set/GetLineHeight().
git-svn-id: svn://10.0.0.236/trunk@24524 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-20 01:25:37 +00:00
michaelp%netscape.com
ab643ac84a ScrollTo() now blits wherever possible.
git-svn-id: svn://10.0.0.236/trunk@24518 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-20 00:47:08 +00:00
michaelp%netscape.com
bc79a637e9 added APIs for scrolling by page or line.
git-svn-id: svn://10.0.0.236/trunk@24504 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-20 00:11:35 +00:00
michaelp%netscape.com
53ce63ea80 fixed bug where out of order computation of child view positions and scroll
offsets in layout, widgets could be in different places than their views.
made nsView::List() print out all units in app units.


git-svn-id: svn://10.0.0.236/trunk@24322 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-18 21:04:00 +00:00
michaelp%netscape.com
81f9258975 added nsIClipView.h
added support for getting/setting scroll properties in scrollable view so
that the app can control whether scrolling should be accomplished via
blitting or painting.
more work in progress for the new compositor.


git-svn-id: svn://10.0.0.236/trunk@23381 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-09 22:10:31 +00:00
warren%netscape.com
0b33372d99 nsRepository -> nsIComponentManager changes.
git-svn-id: svn://10.0.0.236/trunk@23300 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-09 09:44:27 +00:00
rods%netscape.com
e0396140b8 Aded check for null parent to fix printing
git-svn-id: svn://10.0.0.236/trunk@22909 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-05 20:14:05 +00:00
rods%netscape.com
704f4fa587 Added where a scrolled view sets the widget for the vertical scrollbar
into the window so the window can send the vertical scrollbar the appropriate
message.


git-svn-id: svn://10.0.0.236/trunk@22894 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-05 15:41:50 +00:00
michaelp%netscape.com
d1f2203c7c added unknown content quality. fixed potential crash because of bug in timer
code. now uses rootscrollable for all scrollable view notifications.


git-svn-id: svn://10.0.0.236/trunk@20823 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 19:57:45 +00:00
michaelp%netscape.com
1b2aa59d45 added Get/SetScrollableRoot() to nsIViewManager. fixed bug where maximizing
window would cause junk to be shown below/to the right of the real content
if the document was scrolled towards bottom/right. fixed flashing scrollbar
problem. made quality control work again.


git-svn-id: svn://10.0.0.236/trunk@20751 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 00:57:06 +00:00
troy%netscape.com
3ced68e7e0 Re-ordered the call to SetPosition(0) for the horizontal scrollbar,
because the way it was caused the scrollbar to be enabled when it should
be disabled...


git-svn-id: svn://10.0.0.236/trunk@19417 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 05:03:04 +00:00
troy%netscape.com
832f79717f Added GetScrollbarVisibility()
git-svn-id: svn://10.0.0.236/trunk@19409 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 04:25:31 +00:00
michaelp%netscape.com
9548d7fa85 work in progress for new compositor. not currently enabled, so it won't
affect anyone else. killed Paint() method of scrolling view since it
no longer does anything useful. made view manager destructor protected to
eliminate gcc warnings.


git-svn-id: svn://10.0.0.236/trunk@19406 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 04:12:21 +00:00
joki%netscape.com
f85ee98763 Modifying view event flow to always start processing from top view, not enter at children
git-svn-id: svn://10.0.0.236/trunk@19215 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 22:45:59 +00:00
troy%netscape.com
a02386ecfe Fix for bug #2748. Reset the scroll-position to 0 when the scrollbar
is no longer needed


git-svn-id: svn://10.0.0.236/trunk@19122 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-31 18:42:13 +00:00
michaelp%netscape.com
36e4ee9653 corner view now paints correctly again.
git-svn-id: svn://10.0.0.236/trunk@18956 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 22:37:16 +00:00
troy%netscape.com
05ab551aaa Changed clip-view to clip sibling windows
git-svn-id: svn://10.0.0.236/trunk@18923 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 17:07:21 +00:00
michaelp%netscape.com
8b6acf11bf fixed bug where CreateWidget() was called twice for the ClipView and zero
times for the CornerView.


git-svn-id: svn://10.0.0.236/trunk@18903 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-28 05:04:43 +00:00
joki%netscape.com
b39d75f877 Move focus shifting code from nsScrollingView.cpp to nsEventStateManager.cpp
git-svn-id: svn://10.0.0.236/trunk@17387 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-08 21:13:59 +00:00
michaelp%netscape.com
9708832dd7 the corner view works again, and thanks to michael.lowe@bigfoot.com it paints
in the correct system specified "background" color.


git-svn-id: svn://10.0.0.236/trunk@16704 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-19 06:20:36 +00:00
michaelp%netscape.com
72b9fbb09b we not put the responsibility for managing damage regions into the widget
code instead of doing it in the viewmanager. this allows us to paint much
more optimally.


git-svn-id: svn://10.0.0.236/trunk@16417 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-15 05:47:25 +00:00
michaelp%netscape.com
3fbc2c9f07 updated for new blending API.
git-svn-id: svn://10.0.0.236/trunk@15491 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 02:16:14 +00:00
michaelp%netscape.com
05a6bdf469 fixed bug where computing *need* for vert/horz scrollbar did not take into
account the fact that there might be a need for the other scrollbar too.
it used to be that if it knew that it *did* need a vert/horz scrollbar it
would take the other one into account properly. it was just in making the
initial decision that there was an error.


git-svn-id: svn://10.0.0.236/trunk@15290 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-25 03:32:00 +00:00
michaelp%netscape.com
6313915e19 reduced scollbar flashing.
git-svn-id: svn://10.0.0.236/trunk@15196 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 00:06:46 +00:00
michaelp%netscape.com
ddee55a0ed fixed display of black or garbage when resizing scrolled scrollingviews.
git-svn-id: svn://10.0.0.236/trunk@15194 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 23:43:08 +00:00
michaelp%netscape.com
bff62c7d82 fixed problem with vertical scrollbar not always appearing.
git-svn-id: svn://10.0.0.236/trunk@14744 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-16 19:42:53 +00:00
vidur%netscape.com
a9e72c3c46 Temporary fix when scroll frame is created unsized. The real fix will come from michaelp.
git-svn-id: svn://10.0.0.236/trunk@14573 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 02:50:24 +00:00
michaelp%netscape.com
43acfe6cc5 removed widget parameters from nsIView::Init(). added CreateWidget() and SetWidget()
APIs to replace this functionality. also added CreateScrollControls() to
nsIScrollableView.


git-svn-id: svn://10.0.0.236/trunk@14036 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-04 04:14:10 +00:00
michaelp%netscape.com
fd21a37d46 changed nsIView::Init() so that it no longer takes an opacity value. this
allows the view manager to maintain global state re: opacity.


git-svn-id: svn://10.0.0.236/trunk@13955 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-03 06:36:36 +00:00
michaelp%netscape.com
29bd495725 changes to support nsIRenderingContext that conforms to COM conventions.
git-svn-id: svn://10.0.0.236/trunk@13703 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-30 02:08:25 +00:00
troy%netscape.com
36841b7bfb Fixed positioning of horizontal scrollbar to be inside of the control
rect, and added missing curly braces around if stmt and else clause


git-svn-id: svn://10.0.0.236/trunk@13601 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-28 06:12:36 +00:00
michaelp%netscape.com
331c0397cf removed zindex from nsIView::Init().
git-svn-id: svn://10.0.0.236/trunk@13541 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-27 03:36:49 +00:00
troy%netscape.com
5129708072 Changed clip view to have an opacity of 0.0f and no transparent content
git-svn-id: svn://10.0.0.236/trunk@13476 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-26 20:53:36 +00:00
troy%netscape.com
a34949bc86 Added a XXX comment about what's the correct value for the clip
view's opacity


git-svn-id: svn://10.0.0.236/trunk@13419 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-25 04:24:26 +00:00
troy%netscape.com
af673cd536 Changed SetScrolledView() to mark the clip view as having transparent content
if the scrolled view has transparent content


git-svn-id: svn://10.0.0.236/trunk@13418 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-25 04:15:59 +00:00
troy%netscape.com
e8c1c880f1 Added ability to control the insets used when positioning the scrollbars and
clip view


git-svn-id: svn://10.0.0.236/trunk@13258 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-21 16:07:55 +00:00
troy%netscape.com
97d2ab236b Removed some code that's no longer needed now that the frames correctly
compute their size based on any absolutely positioned children they
have


git-svn-id: svn://10.0.0.236/trunk@13125 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-19 21:24:53 +00:00
troy%netscape.com
41e4edcfca Added GetScrollPosition, removed some XXX comments that I should have
removed before checking in, and added some more documentation


git-svn-id: svn://10.0.0.236/trunk@13089 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-19 16:57:27 +00:00
troy%netscape.com
e2209a9a18 Changed scrolling view to use a clip view and to slide the scrolled
view up and down rather than maintain a logical scrolled offset


git-svn-id: svn://10.0.0.236/trunk@13080 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-19 00:44:28 +00:00
troy%netscape.com
35c48dd63c Changed it so that we have a dirty region per view with a widget rather
than having just one dirty region. Also changed it so that we stop painting
when we get to a view that has a widget


git-svn-id: svn://10.0.0.236/trunk@12865 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-15 04:55:21 +00:00
michaelp%netscape.com
a532925345 two pass compositing now works.
git-svn-id: svn://10.0.0.236/trunk@12536 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-11 01:00:59 +00:00
dcone%netscape.com
8c80a91e55 Fixed an offset problem
git-svn-id: svn://10.0.0.236/trunk@12201 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-07 17:55:57 +00:00
dcone%netscape.com
b93d1f46fc Fixed a mac problem, a variable scoping problem was fixed in the handle method.
git-svn-id: svn://10.0.0.236/trunk@12195 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-07 15:17:27 +00:00
pierre%netscape.com
88c6e0ec95 re-enable the scrollbars on Mac, the widgets are now implemented
git-svn-id: svn://10.0.0.236/trunk@10790 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-23 09:19:55 +00:00
kostello%netscape.com
458aaa4768 Changes implementation to match the new Widget interfaces i.e. t
he signature of many of the "getters" changed.


git-svn-id: svn://10.0.0.236/trunk@9994 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-14 20:54:38 +00:00