Граф коммитов

171 Коммитов

Автор SHA1 Сообщение Дата
rods%netscape.com e9740dbb06 now remembers state when selected for single select combos and listboxes,
it does not remember mulitple selections (more work needed in content class)
converted over to rnsCOMptr as much as I could
b=21945, r=pollmann
2000-02-12 16:21:37 +00:00
rods%netscape.com d05eeaa676 removing unneeded native frames and unneeded frame classes that these derived from
fixing checkbox and radiobutton state restore
fixing right btn click on dropdown
adding in initial work for accesskey
bug 17027,26296,27063,7559; carpool a=leaf; r=kmcclusk
2000-02-09 19:34:39 +00:00
pp%ludusdesign.com 43d7ba4273 Converting ::GetIID() into NS_GET_IID(). Bug #20232. r=scc, r=mozbot 2000-02-02 22:24:56 +00:00
rods%netscape.com e501b48066 add extra debug; added some inremenal reflow code;
doing much better job check return vars;GetText now check for NS_OK;
r dcone, b 24292
2000-01-31 23:36:50 +00:00
leaf%mozilla.org f1a8910137 backing out rods to fix options lists 2000-01-28 19:03:34 +00:00
rods%netscape.com e7e764db46 added check so it doesn't do a reset on the incremental reflow
r=dcone bug=none
2000-01-28 15:04:19 +00:00
pollmann%netscape.com bcb43fcaf0 Bug 18649: non FormControlFrame derived form elements also only scroll when not at all visible r=rods 2000-01-25 22:19:39 +00:00
nisheeth%netscape.com e468aef1ea r=vidur. Add support for a new pref "layout.reflow.async.afterDocLoad" that enables async reflow in the pres shell only after the document is done loading. Cleaned up ExitReflowLock() so that it uses preferences to decide whether to do async reflow, not a parameter. 2000-01-25 16:00:44 +00:00
rods%netscape.com 7335d90bfb changed signature of GetFont b=905 r=dcone 2000-01-25 15:25:46 +00:00
beard%netscape.com 84cbca2516 floating views. bug=21966, r=troy, rods, a=brendan 2000-01-25 01:53:34 +00:00
pierre%netscape.com eca7ac464e Backing out one line from the previous checkin in order to fix #24344 ("Crash when displaying a list box"). 2000-01-19 12:27:40 +00:00
rods%netscape.com cde6e415cd Initial shift click will now work correctly for mulitple with selected items
it now will scroll to the selected items on start up
b 24178,7025 r=kmcclusk
2000-01-18 23:33:22 +00:00
hyatt%netscape.com 489fa24f63 Fixes for bugs 17460 and 21656. r=travis 2000-01-14 09:28:54 +00:00
brade%netscape.com 4139a0f457 use proper key for disconguous selection on Mac (r=jfrancis) 2000-01-13 16:01:04 +00:00
rods%netscape.com cee7c68c6f Listbox was handle clicks in the combobox incorrectly and this caused the
dropdown to rollup too soon.
b=23484 r=kmcclusk
2000-01-11 20:36:37 +00:00
rods%netscape.com de25ed658f Added unconstrainted reflow optimizations
r=kmcclusk,dcone bug=12653
2000-01-09 01:41:11 +00:00
rods%netscape.com a25e7644fc backed out all changes from today (1/5/2000) 2000-01-05 16:42:47 +00:00
rods%netscape.com 2eeffb7cab Added unconstrainted reflow optimizations
reworked reflow to more accurately calculate its size
r=kmcclusk,dcone bug=12653
2000-01-05 15:46:29 +00:00
sspitzer%netscape.com 42e7039924 fix warnings 1999-12-28 19:41:57 +00:00
rods%netscape.com 7c47447ac9 Fixed the edge case where the select may have zero options or one option
with no lable and no content and it sizes out to be zero high
also fixed twhere visibility wasbeing check incorrectly
r=kmcclusk
1999-12-22 19:49:36 +00:00
rods%netscape.com 1aa5067600 stripping out all the whitespace for form data submission
commented changing the visible directly
bug 21276, r=pollmann a=chofmann
1999-12-14 14:16:09 +00:00
hyatt%netscape.com 3f9fa43e97 Massive rewrite of the focus/blur architecture. Things should behave better
now. r=saari
1999-12-08 04:54:29 +00:00
rods%netscape.com 58000ea4b5 Always passing back that the frames are there, this still isn't right and needs to be
reworked again. But this will able some XUL selects to work that otherwise would be
broken and I haven't found it to cause any problems with a lot of testing. I have
regressed to this situation in the past and it worked OK.
r=kmcclusk, bug=none but hangas (or self) would have filed one by end of day.
1999-12-08 00:08:41 +00:00
rods%netscape.com 6e773b0546 removing unused variables (bloat) and using nsLayoutAtoms::optionSelectedPseudo instead of
using a string and creating and deleting it each time.
r=kmcclusk
1999-12-06 22:59:43 +00:00
rods%netscape.com a15c550545 removed the substraction of the border and padding for fixed width
r=kmcclusk b 18448
1999-12-05 20:45:58 +00:00
hyatt%netscape.com 16a944a1e3 Implementing a generalized recycler and arena for all layout frames. Hoping to improve
bug #9489.  Should also definitely fix bug #15916. r=troy
1999-12-04 23:49:50 +00:00
rods%netscape.com 8718dcf0dc CheckIfAllFramesHere not actually check to see if all the frames are there
r=kmcclusk Bug 19949
1999-11-24 21:12:03 +00:00
tbogard%aol.net a0640b60c4 Changed nsIPresContext& to nsIPresContext*. Changed nsEventStatus& to nsEventStatus*. Now more compatible with XPIDL. a=vidur r=scc 1999-11-24 06:03:41 +00:00
sfraser%netscape.com a3a45cef6a #ifdef out all the stupid printfs. r=pinkerton, no bug. 1999-11-23 03:26:56 +00:00
rods%netscape.com 5acd6380be added bool parm to is DoneAddinContent r=dcone bug 18241 1999-11-19 15:46:20 +00:00
rods%netscape.com accfa429da Added MakeSureSomethingIsSelected to the combobox so the ListBox can
call it after it is initialized.
1999-11-16 22:47:23 +00:00
rods%netscape.com ad0bd43918 Disabled key events when it is disabled
r=dcone,b=14771
1999-11-12 15:08:28 +00:00
rods%netscape.com ac91f36e7c Removed the mDisplay data member it was the same as mHasAllFrames, this was preventing
the options from having there selected state displayed initially
Also, changed it so when in drop down mode and nothing is selected it always scrolls
to 0,0
b=14771,13771 r=kmcclusk
1999-11-12 15:00:30 +00:00
rods%netscape.com 63760fca6d Added new method "DoneAddingContent" so the select frame can be told that all the content has been added
Reworked the select code to keep the state as to whether all the content and/or all the frames
have been created and then whether it is initialized
r=self&kmcclusk, bug 17965
1999-11-11 22:13:33 +00:00
rods%netscape.com d8bca1113b Fixes MLK 18207 - missing addref, r=beard
Fixes Crasher 17852 by temporarily commenting out the offending line, waiting on bug 18183
r=kmcclusk
1999-11-09 13:41:27 +00:00
dmose%mozilla.org 42fc94a6ec updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:40:37 +00:00
pollmann%netscape.com 5ba410cabf Bug 17431: Clean house in form and form control destructors to allow reframing r=harishd a=choffman 1999-11-04 23:16:47 +00:00
rods%netscape.com 146ceb26bc Commented out the reset of the list when an option gets added
Fixes crashers 17836, 17852, 17965 r=kmcclusk
1999-11-04 22:45:10 +00:00
joki%netscape.com d5c05ea133 Changes to DOM events to accomodate the new breakdown of events into mouse and key events. This fixes a couple of bug, though the main one is 13406. Involves changes to multiple DOM generated file as well as fixing up usage of DOM event api usage in editor, rdf, and xul. r:vidur 1999-11-03 07:11:45 +00:00
rods%netscape.com dcb84d1cc1 Add CountAllChild to count all the option and optgroup elements so lists
get sized correctly when no rows are specified
r=kmcclusk, bug=4050
1999-11-03 00:07:01 +00:00
pollmann%netscape.com ce61901fde Removing null code. No bug number. r=nisheeth 1999-11-02 01:50:15 +00:00
rods%netscape.com 6e01f6ce6e Check to see if the option being added has the "selected" property, if it
does then the list needs to be reinitialized.
r=dcone, bug #17519
1999-11-01 15:41:17 +00:00
rods%netscape.com 022efe1d62 Listboxes now obey CSS specifed sizes
r=kmcclusk,related to bug 16317
1999-10-28 20:31:23 +00:00
troy%netscape.com a47e8db44b Changed SetView/GetView to take an additional argument which is the
pres context
1999-10-26 04:44:41 +00:00
rods%netscape.com 6bd1234f0f changed the padding so it is adding in the correct left right instead of top bottom
r=kmcclusk, Bug #16936
1999-10-21 22:22:32 +00:00
rods%netscape.com 7c9efc7940 added code to the destructor to make sure the list get rolled up.
r=kmcclusk bug 15912
1999-10-20 21:59:04 +00:00
rods%netscape.com 354b09bef7 Removed old commented out code and unused comments. r=kmcclusk, (no bug) 1999-10-19 11:35:17 +00:00
kmcclusk%netscape.com 8216078009 Return the value of the option element value attribute if it is present otherwise return
the content of the option. bug #16158. r=rods@netscape.com
1999-10-14 23:41:40 +00:00
pollmann%netscape.com 110dc42745 Bug 15841: Don't default to selecting item 0 of a listbox
Bug 15769: Default select item 0 when adding or removing opt to combo
r=harishd
1999-10-12 08:47:29 +00:00
rods%netscape.com a2c07e7ba4 Changed the way the list figures out how high a single item is, it now subtracts out the padding & border instead of just the border
r=kmcclusk
1999-10-07 21:39:50 +00:00
pavlov%netscape.com dd46c93cdc ifdef out the call to CaptureMouse since it is no longer needed r=rods 1999-10-06 13:36:39 +00:00
pollmann%netscape.com c2734ed9cc Bug 15170: Implement onchange notification for list boxes 1999-10-05 23:43:06 +00:00
rods%netscape.com e121d483ee Added new method to tell the listcontrolframe it is about to be rolled up by the combobox
this enables it to unset any temporary selections and restore the actual selection
1999-10-01 14:30:33 +00:00
rods%netscape.com c2da5cb934 Changed GetVerticalInsidePading to take the PresContext to the method can use the cached LookAndFeel object
added some key support made it so it sets the focus back to the main webshell window when the drop down is closed
1999-09-30 11:37:58 +00:00
peterl%netscape.com 0ee00122a0 manage view visibility better 1999-09-29 03:36:16 +00:00
dcone%netscape.com 6708def373 Added a Release.. to fix a leak 1999-09-24 13:49:12 +00:00
pollmann%netscape.com 9c3cf449e6 Bug 11488: Crash when deleting options from GFX selects 1999-09-21 13:25:32 +00:00
pollmann%netscape.com dd83c13707 Bug 13960: Combo box must not be dropped down before mouse moves update the selected option. 1999-09-19 09:48:04 +00:00
pollmann%netscape.com 75c5f6cbbc Bug 9136: Combobox selectedIndex now defaults to 0 instead of -1 1999-09-17 07:22:23 +00:00
pollmann%netscape.com 739eb3fb1b Bug 13960: Update GFX combos when selection is set. 1999-09-16 22:36:29 +00:00
pollmann%netscape.com 38b2f3b98f Bug 13058: (Fixed Solaris bustage by removing Inherited typedef) 1999-09-15 05:31:31 +00:00
dcone%netscape.com 48a648eead Added a Mac case for creating the popup widget.. The #ifdef will come out when all platforms support the PopUp_CID 1999-09-14 21:29:58 +00:00
pollmann%netscape.com 7de8a23562 Backing things out until I can get Solaris bustage figured out. 1999-09-14 20:42:26 +00:00
pollmann%netscape.com ce6b56d3bd Bug 13058: Implement nsIStatefulFrame for selects. Some memory leak fixes. Plus the usual plethora of bugfixes for native selects 1999-09-14 19:37:45 +00:00
rods%netscape.com a88a857804 cleaned up some code
add method to get the absolute rect of the combobox frame for hit detectio
now drop downs drop down under the select
1999-09-13 23:20:50 +00:00
rods%netscape.com a9c8647536 temporary fix for scrolling the dropdown until gfx scrollbars get in 1999-09-13 18:29:00 +00:00
rods%netscape.com 471a693a76 When asked for the selected item string it return first the value, then the label then the content in that order if any are empty 1999-09-10 22:56:23 +00:00
rods%netscape.com 8f3c34039e Better fix for option elements with no content in them 1999-09-09 19:37:23 +00:00
sfraser%netscape.com 6c9a33ac66 #ifdef out a bunch of rods's printfs. 1999-09-09 00:23:40 +00:00
rods%netscape.com ce1ac471da Fixed selection in lists 1999-09-08 19:54:30 +00:00
rods%netscape.com 4a4b4f9b6f Added the proper event processing for disabled options
ListBoxes (as dropdowns) are now notified before the are about to be dropped down
1999-09-08 14:27:38 +00:00
rods%netscape.com ac28d10d0e Removed ref counting changed the the popup is positioned
removing dom listeners on descruction
1999-08-31 13:22:50 +00:00
rods%netscape.com 9b61766a0c change all index parameters to PRInt32 from PRUint32
added key listener support for keyboard navagation inside the list
fixed extended selection
fixed a minor problem with selecting an item
1999-08-27 14:42:27 +00:00
pollmann%netscape.com 4470669745 Cleanup, and bugfixes for bug 12475 and 12350 1999-08-27 03:58:13 +00:00
rods%netscape.com 4d101399a7 Completely reworked the select GFX object - List and Combobox, it now does all event processing
via DOM listeners instead of through the frames
1999-08-26 14:54:07 +00:00
pollmann%netscape.com b18052f3d5 Bug 3256: Add ScrollIntoView() method to form frame objects. 1999-08-21 00:09:24 +00:00
rods%netscape.com 941247629a Renamed some methods and changed the selected item to be able to pass the currently selected index instead of just being able to get the currently selected item 1999-08-19 14:11:28 +00:00
rods%netscape.com fdd33e59b6 Fixed Reset to work properly, removed InitializeFromContent method, changed where the list was adding itself to FormControlFrame 1999-08-10 19:22:51 +00:00
rods%netscape.com 48114ca937 Started to add code to better handle resizing when there are no elements. 1999-08-06 14:14:38 +00:00
rods%netscape.com aab50185d8 Made many changes to fix several bugs 1999-07-28 21:38:08 +00:00
troy%netscape.com 7e4e30d0c4 Added failure check for call to nsStyleData::GetBorder() 1999-07-28 04:48:34 +00:00
pavlov%netscape.com 8b8b9c3727 window creation changes 1999-07-27 04:27:17 +00:00
kmcclusk%netscape.com 41ed34acb6 nsPresContext.cpp,.h - Added eWidgetRendering_PartialGfx as a rendering mode to PresContext.
ua.css - Added select[multiple] rule for multi-select listboxes without a size
Fixed form submission for gfx checkboxes,radiobuttons, and select by rewriting GetNamesValues.
Added nsListControlFrame::GetSizeAttribute and nsListControlFrame::GetNumberOfRows
Added logic to nsCSSFrameConstructor::ConstructSelectFrame and nsListControlFrame::Reflow
to handle the case of a multiselect select without a size specified.
1999-07-20 22:32:41 +00:00
troy%netscape.com a6aae963a7 Added 'm' prefix to some of the nsHTMLReflowState data members 1999-07-20 03:41:03 +00:00
kmcclusk%netscape.com f052dc2f0d fixed bugs #6303, #6753, #6756, #6759
Re-wrote nsComboboxFrame.
removed the obsolete nsHTMLAtoms: comboText,comoTextSelected,comTextSelectedFocus,dropDownVisible,
dropdownHidden, dropDownBtnOut, dropDownBtnPressed,
Added nsHTMLAtoms::combobox, nsLayoutAtoms::popupList
Renamed dropDownList to dropDownListPseudo
Added "arrow.gif" as to be used the background-image for the combobox button
ua.css - added rules for select to differentiate between comboboxes and listboxes.
Added style rules to more closely match the XPTOOLKIT XPWidgets look.
removed the following :-moz-combobox-text, -moz-combobox-textselected
nsIFormControlFrame.h - Added SetSuggestedSize method.
nsButtonControlFrame - Implemented SetSuggestedSize.
nsCSSFrameConstructor.cpp - Rewrote ConstructSelectFrame.
nsIWidget.h -Added GetAbsoluteBounds method.
nsWindow.cpp - Implemented GetAbsoluteBounds.
1999-07-14 22:00:24 +00:00
sspitzer%netscape.com 3649abeee9 fix warning 1999-07-06 22:40:54 +00:00
kmcclusk%netscape.com 1ab657043a Modified gfx-rendered widget styles to more closely match styles
in http://www.mozilla.org/xpfe/nsGFXWidgets.html.
Added check for null mHitFrame in nsListControlFrame::MultipleSelection and
nsListControlFrame::SingleSelection.
1999-06-23 21:50:56 +00:00
kmcclusk%netscape.com 8584722a29 Removed commented out code to perform system mouse capture. 1999-06-21 20:46:47 +00:00
kmcclusk%netscape.com 70c83e0548 Numerous changes to support gfx-rendered form elements. 1999-06-21 20:41:56 +00:00
nisheeth%netscape.com 5406520710 Patch from alecf to do a null pointer check on argument to GetSelectedIndex(). 1999-06-05 00:18:58 +00:00
kmcclusk%netscape.com fd468cfbd4 fix for bug #6971. Added support for clicking and dragging over items in single
and multiselect listboxes. Also supports holding down the shift and ctrl keys
while dragging.
1999-05-28 21:12:09 +00:00
kmcclusk%netscape.com 56cb572831 fixes for bugs #5809, #5852, #6828, #6973.
Added a new test16.html sample to test gfx-rendered widgets to viewer.
Added support for test17.html sample to test printing.
1999-05-27 21:17:10 +00:00
kmcclusk%netscape.com ab4f0a0584 bug #994 Major rework of nsListboxControlFrame to support option groups. Modified ua.css
optgroup > option rule to use padding to offset the option group's options.
1999-05-17 22:36:08 +00:00
kmcclusk%netscape.com bdce020a9a bug #5993. Removed references to nsIWidget in form HTML content elements. the form elements
now go through the nsFormControlFrame interface instead. This removes the dependency between
form element content and nsIWidget.
1999-05-13 23:45:40 +00:00
kipp%netscape.com fea30bc4eb Reworked frame factory methods; fixed bug 4519 1999-05-11 22:03:29 +00:00
kmcclusk%netscape.com b447bbea26 bug #3547- Modified nsFileControlFrame.cpp to call nsFormFrame::AddFormControlFrame.
bug #5589. Selection area is now calculated using the inherited Reflow rather
than using the calculations used for the native listbox control.
Fixed varous other rendering bugs related to frame-based listboxes.
bug #2797. GetSize is no longer needed in nsListControlFrame and it has been removed.
Fixed frame-based combobox nsComboboxFrame so that will set it's label to the
first option in the drop-down list if a default value has not been specified.
Added optgroup style rules to ua.css. Opt groups now render, but there are remaining
problems with selection.
Modified nsButtonControlFrame::Reflow to call nsFormFrame::AddFormControlFrame.
This fixes a bug where Gfx-rendered submit button's were not working.
Refactored code in nsListControlFrame in preparation for supporting option groups.
Refactored selection code into SingleSelect and MultiSelect paths.
Removed unused code in nsListControlFrame.
Removed mSelectedFrame member variable. It is no longer needed.
Fixed nsListControlFrame::SetProperty so that it will toggle the selection in a
single select listbox.
1999-05-07 20:30:16 +00:00
karnaze%netscape.com 00e49d0539 bug 4143; bug 2467; removed frame caching in nsFormFrame. 1999-04-27 00:06:03 +00:00
kmcclusk%netscape.com f928d919b1 fix for bug #3162, Removed #ifndef MAC in the nsSelectControlFrame::GetProperty.
The Mac now supports native combo box widgets so it no longer will crash in GetProperty
with a null mWidget field.
Modified nsComboboxControlFrame::HandleEvents. MouseExit from the combox rect now
initiates mouse capture on the drop-down list.
Modified nsCSSFrameConstructor::ConstructSelectFrame to initialize the drop-down list
for frame-based comboboxes as hidden.
Added a nsIListControlFrame::CaptureMouseEvents method.
Implemented nsListControlFrame::CaptureMouseEvents.
1999-04-16 19:28:12 +00:00
kipp%netscape.com 2df6116e6a Nuked useless includes 1999-04-13 21:52:03 +00:00
kmcclusk%netscape.com a1fecd8f08 Enabled frame-based comboboxes when widget rendering mode is gfx.
Major changes to nsComboboxControlFrame:
Removed commented out code + nsIPluggableEventListener references.
Implemented nsComboboxControlFrame::GetNamesValues
Implemented nsComboboxControlFrame::SetProperty GetProperty methods
Fixed references to previously freed memory in nsComboboxControlFrame::ReResolveStyleContext
Modified ua.css style rules for dropdown-visible, drodown-hidden to have -moz- prefix.
Added -moz-dropdown-btn-out and -moz-dropdown-btn-pressed, -moz-dropdown-list rules.
Modified nsListControlFrame.cpp to calculate the width of the dropdown list for combo boxes correctly
Added nsListControlFrame::GetProperty and SetProperty methods.
Modified nsCSSFrameConstructor::ConstructSelectFrame to setup combobox.
1999-04-12 22:14:31 +00:00