Commit Graph

629 Commits

Author SHA1 Message Date
pavlov%pavlov.net
1fdeb4210c impliment nsPopUpMenu code (it is identical to nsMenu.. why are these not
inheriting each other?)


git-svn-id: svn://10.0.0.236/trunk@14411 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 04:28:30 +00:00
pierre%netscape.com
a6451b0f2c Initialize the 2 new fields of the nsSizeEvent (mWinWidth + mWinHeight) before dispatching the event. Fix a crash due to recursive calls in the sample viewer app.
git-svn-id: svn://10.0.0.236/trunk@14395 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 02:49:14 +00:00
pierre%netscape.com
32cba0e347 Set the scroll bar dimensions to 16 pixels instead of 10.
git-svn-id: svn://10.0.0.236/trunk@14388 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 01:41:44 +00:00
pierre%netscape.com
a1df98431f Set the coordinates ot the top-level object to (0,0) instead of its global coordinates.
Removed the override of PointInWidget() which became obsolete after the change above.
Changed Move() and Resize() to call the toolbox only when necessary.


git-svn-id: svn://10.0.0.236/trunk@14387 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 01:40:56 +00:00
pierre%netscape.com
2e047c30a0 Removed the override of PointInWidget() which became obsolete after the change in the coordinate system.
git-svn-id: svn://10.0.0.236/trunk@14385 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 01:40:43 +00:00
pierre%netscape.com
784d87b96e Clean up the drawing code. Use StartDraw() and EndDraw(). It still has to be replaced with a native control.
git-svn-id: svn://10.0.0.236/trunk@14384 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 01:39:44 +00:00
pierre%netscape.com
78526b9f65 Set the coordinates ot the top-level object to (0,0) instead of its global coordinates.
Clipping and settting the origin is done in StartDraw() instead of Update().


git-svn-id: svn://10.0.0.236/trunk@14383 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 01:38:33 +00:00
pierre%netscape.com
af1dba3c99 Remove the unused CalcTotalOffset()
git-svn-id: svn://10.0.0.236/trunk@14382 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 01:38:00 +00:00
cls%seawood.org
38ef0246e0 Fixed check for motif
git-svn-id: svn://10.0.0.236/trunk@14367 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 21:55:44 +00:00
pavlov%pavlov.net
a14fdfbd96 Impliment menu callbacks, fix a few paint events, remove some old debugging
messages.  Use nsWidget::Show for nsWindow::Show.


git-svn-id: svn://10.0.0.236/trunk@14327 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 04:25:51 +00:00
pavlov%pavlov.net
5150414c26 revert changes to gtklayout. make sure some labels are shown since they are
inside the mWidget


git-svn-id: svn://10.0.0.236/trunk@14298 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-09 21:04:32 +00:00
pavlov%pavlov.net
598102d7c1 Patch from Owen Taylor <otaylor@redhat.com> that makes nsWidget inherit from
nsBaseWidget.  It moves the Create() functions into nsWidget for the base
creation so that the code is reused and not the same code in each file.  This
patch also fixes numerous nsWindow related issues.


git-svn-id: svn://10.0.0.236/trunk@14281 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-09 15:49:30 +00:00
pavlov%pavlov.net
3c65e04df8 Impliment Resize for nsWidget (and nsWindow (it calls nsWidget::Resize/Move)
Add patch for gtklayout from Owen Taylor that makes sure the widgets added are
shown and realized.  We now get a window popped up that shows the spinner,
toolbar, menu, etc etc etc.  its getting close!


git-svn-id: svn://10.0.0.236/trunk@14278 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-09 05:45:57 +00:00
pavlov%pavlov.net
9e26b77291 Patch from Owen Taylor <otaylor@redhat.com> which uses the correct GdkWindow
to draw to.


git-svn-id: svn://10.0.0.236/trunk@14276 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-09 03:02:08 +00:00
pavlov%pavlov.net
6cd3539dc6 nsComboBox implimentation from Chris Lahey <clahey@mich.net>
nsWidget and nsWindow changes (fix class inheritance, provide functions in
nsWidget and not nsWindow since everything is derived from nsWidget) patch
from Owen Taylor <otaylor@redhat.com>


git-svn-id: svn://10.0.0.236/trunk@14274 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-08 23:31:40 +00:00
pavlov%pavlov.net
8c7dd7cd60 call gtk_widget_show() on all the menuitems that are being added to the
menubar


git-svn-id: svn://10.0.0.236/trunk@14273 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-08 22:39:14 +00:00
pavlov%pavlov.net
217523a5d1 Fixed nsMenu::AddMenu so that it adds menus to menus correctly.
git-svn-id: svn://10.0.0.236/trunk@14270 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-08 20:57:57 +00:00
pavlov%pavlov.net
0fe9befefc add 'this' to the userdata of the widget so that callbacks will have the info
they need


git-svn-id: svn://10.0.0.236/trunk@14269 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-08 20:45:53 +00:00
pavlov%pavlov.net
0e76c6696d patch from skinny@knowhere.net for the scrollbar widget implimentation.
git-svn-id: svn://10.0.0.236/trunk@14268 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-08 19:36:31 +00:00
pavlov%pavlov.net
1ca0554355 set the userdata for all of the widgets to 'this'. Use the userdata in the
callbacks in nsGtkEventHandler


git-svn-id: svn://10.0.0.236/trunk@14267 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-08 18:51:09 +00:00
pavlov%pavlov.net
3246866ead minor code cleanup in nsCheckButton.cpp. begin work on nsComboBox.
git-svn-id: svn://10.0.0.236/trunk@14266 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-08 18:19:37 +00:00
pavlov%pavlov.net
cc3b90eac2 Fix GTK Build so that it will compile without Motif. Remove extra mWidget's
from a few widgets that were provided mWidget from nsWidget.


git-svn-id: svn://10.0.0.236/trunk@14265 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-08 17:54:19 +00:00
pavlov%pavlov.net
bab432bdde initial stab at converting GdkEvents into mozilla events.
git-svn-id: svn://10.0.0.236/trunk@14262 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-08 05:53:52 +00:00
pavlov%pavlov.net
7dda2eea3d blizzard%appliedtheory.com patch to allow this to compile without motif
installed.  this patch also fixes the arguments to the event callbacks to
those of Gtk


git-svn-id: svn://10.0.0.236/trunk@14261 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-08 04:34:08 +00:00
pavlov%pavlov.net
f8353761e5 fix ::Remove so that it works on both TextWidget and TextAreaWidget
git-svn-id: svn://10.0.0.236/trunk@14259 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-08 04:12:42 +00:00
pavlov%pavlov.net
fd6626fd2e Initial nsText* implimentation. This should be about 90% functional.
git-svn-id: svn://10.0.0.236/trunk@14258 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-08 04:05:34 +00:00
pavlov%pavlov.net
3856fcd990 fix menu code... submenus are not added correctly for some reason, but the
earlier warnings are gone.


git-svn-id: svn://10.0.0.236/trunk@14255 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-08 02:05:02 +00:00
pavlov%pavlov.net
e64ca00484 Menu's are now displayed correctly (almost).
git-svn-id: svn://10.0.0.236/trunk@14251 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-08 01:13:43 +00:00
msw%gimp.org
cec9a1349a Oops - not using this.
git-svn-id: svn://10.0.0.236/trunk@14242 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-07 18:43:17 +00:00
pavlov%pavlov.net
35e4f0d399 initialize mWidget to null
git-svn-id: svn://10.0.0.236/trunk@14239 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-07 17:30:50 +00:00
pavlov%pavlov.net
2313f1b071 Add the menu bar to the Window correctly.
git-svn-id: svn://10.0.0.236/trunk@14237 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-07 17:23:30 +00:00
msw%gimp.org
43d0d8905a Move all the widget to inherit from nsWidget, not nsWindow. Add stub
for mouse events in nsWidget


git-svn-id: svn://10.0.0.236/trunk@14236 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-07 17:00:11 +00:00
pavlov%pavlov.net
3282afa5c2 convert nsLabel's to nsWidget instead of nsWindow. Impliment part of
nsPopUpMenu


git-svn-id: svn://10.0.0.236/trunk@14235 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-07 15:18:51 +00:00
msw%gimp.org
59f0348d97 set the size of buttons on creation. Need to check to make sure this
is the Right Way.


git-svn-id: svn://10.0.0.236/trunk@14234 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-07 05:43:47 +00:00
pavlov%pavlov.net
6fd52ccd4f Initial GTK code for menus.
git-svn-id: svn://10.0.0.236/trunk@14224 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-07 02:05:59 +00:00
saari%netscape.com
7ea3e11e01 Mac only change.
Don't unlock GDeviceHandles. Fixed.
Don't dereference unlocked handles. Fixed.


git-svn-id: svn://10.0.0.236/trunk@14221 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-07 01:45:03 +00:00
pavlov%pavlov.net
03823732fb show the widgets so that they appear on the screen
git-svn-id: svn://10.0.0.236/trunk@14215 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 23:46:18 +00:00
shaver%netscape.com
b1c2d66c81 created new nsWidget common baseclass, and reparented nsButton to use it -- more reparenting to follow
git-svn-id: svn://10.0.0.236/trunk@14214 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 23:33:15 +00:00
shaver%netscape.com
2fc303099e improve nsWindow to handle toplevel and embedded windows, and use GtkLayout
git-svn-id: svn://10.0.0.236/trunk@14207 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 18:26:30 +00:00
shaver%netscape.com
4bc88b9fbd fix compile bustage
git-svn-id: svn://10.0.0.236/trunk@14203 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 17:11:58 +00:00
pavlov%pavlov.net
b02c929071 add these items to the parent widget (layout)
git-svn-id: svn://10.0.0.236/trunk@14200 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 16:35:24 +00:00
pavlov%pavlov.net
27839170f2 fix the million errors that GTK was giving out when the window was popped up.
Fix it to show menus.


git-svn-id: svn://10.0.0.236/trunk@14190 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 04:45:46 +00:00
spider%netscape.com
f1f10c21ed Allow Image URL's to be set independently. Needed for XML parsing.
git-svn-id: svn://10.0.0.236/trunk@14187 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 02:24:50 +00:00
spider%netscape.com
e9ec733cab Add GetImageDimensions API
git-svn-id: svn://10.0.0.236/trunk@14183 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 02:00:25 +00:00
akkana%netscape.com
e26d7f0f4d Remove dlldeps.c reference which was breaking the build
git-svn-id: svn://10.0.0.236/trunk@14182 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 01:48:22 +00:00
spider%netscape.com
a29da299d7 Fix crash when image not loaded yet
git-svn-id: svn://10.0.0.236/trunk@14180 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 01:24:09 +00:00
shaver%netscape.com
2247f3b0ca init the device context -- we display a window now
git-svn-id: svn://10.0.0.236/trunk@14168 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-05 22:39:37 +00:00
spider%netscape.com
6b3dd2fbf4 Expose OnPaint and HandleEvent for cases where a native widget is not
created for the toolbars


git-svn-id: svn://10.0.0.236/trunk@14160 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-05 21:03:04 +00:00
spider%netscape.com
9433ef1b24 Changed toolbar code to support wrapping in View system
git-svn-id: svn://10.0.0.236/trunk@14155 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-05 19:52:50 +00:00
pavlov%pavlov.net
9647c2ec68 cleanups for compile
git-svn-id: svn://10.0.0.236/trunk@14145 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-05 17:58:08 +00:00