saari%netscape.com
cdd22b1986
mozilla/widget/src/xpwidgets/nsBaseWidget.h
uncommented nsIMenuListener *mMenuListener for XPToolkit menus
Index: nsBaseWidget.cpp
===================================================================
RCS file: /m/pub/mozilla/widget/src/xpwidgets/nsBaseWidget.cpp
uncommented mMenuListener code for XPToolkit menus
1999-01-27 04:20:20 +00:00
mcmullen%netscape.com
302ce3167e
Added a new InitializeMacToolbox() to NSStdLib (declared in macstdlibextras.h) and exported it. This makes all the Mac Toolbox Init calls, and also (if DEBUG) initializes SIOUX without menus. Safe to call this multiple times (it has a static boolean). Removed toolbox initialization from constructor of nsAppShell, and called InitializeMacToolbox() instead. Called InitializeMacToolbox from main in viewer app, and also from a static initializer in nsAppRunner.cpp.
1999-01-27 02:11:56 +00:00
pinkerton%netscape.com
06c19d7496
fix a leak where the Enumerator would create itself with a refcnt of 1 and then we'd addref it again in GetChildren(). Fixed so that the Enumerator doesn't addref itself and added addref's in the appropriate places to correct that assumption.
1999-01-26 18:07:11 +00:00
waterson%netscape.com
cc239fe9fc
Fixed capitalization error.
1999-01-26 04:03:59 +00:00
michaelp%netscape.com
1b121f5a72
moving headers from src to public. added support for dib sections to windows
...
drawing surface. WIP on making blender work with arbitrary pixel organizations.
1999-01-25 22:16:47 +00:00
akkana%netscape.com
3f25c259d9
Pav's changes only work if you also have his fixes to gtk.
...
Since those aren't available yet, I've reverted his changes to make
selection and editor typein work.
When the new gtk is available, search for HAVE_GTK_BETTER_THAN_1_1_13
to see how to turn his changes back on (they are very worthwhile, we
just can't afford a regression while we wait for the new gtk).
1999-01-25 22:10:48 +00:00
pinkerton%netscape.com
e9888a49f9
fixing a leak in GetChildren() and cleaning it up to use nsComPtr when creating a new enumerator.
1999-01-25 19:18:43 +00:00
pinkerton%netscape.com
25ea6dd97c
Fix bug 2535 (memory leaks) with nsCOMPtr
1999-01-25 17:45:04 +00:00
sudu%netscape.com
6624efe2b9
OJI MozClassic to raptor merge
1999-01-25 08:05:00 +00:00
pavlov%pavlov.net
932229f590
only redraw the stuff that needs to be redrawn, not the entire widget.
1999-01-25 02:21:20 +00:00
pavlov%pavlov.net
950aa6679e
fix button pressing
1999-01-25 00:51:21 +00:00
pavlov%pavlov.net
17648a2e1c
we require gtk 1.1.13, remove #ifdef's. clean up key press handling
1999-01-23 12:03:14 +00:00
pavlov%pavlov.net
cbb68346eb
fix text widgets getting focus.
1999-01-23 11:26:09 +00:00
pavlov%pavlov.net
eb75eac16b
animated things work, editor works, etc etc etc. be happy!
1999-01-23 01:58:45 +00:00
saari%netscape.com
08140967d1
Commenting out until I figure out what I horked
1999-01-23 01:08:17 +00:00
radha%netscape.com
3c623e5a80
Use the EventQueue service provider instead of manipulating directly with PLEventQueue
1999-01-23 00:54:43 +00:00
saari%netscape.com
f065f8df2f
Commenting out until I figure out what I horked
1999-01-23 00:46:57 +00:00
saari%netscape.com
fd0965aadc
Commenting out until I figure out what I horked
1999-01-23 00:26:51 +00:00
mcafee%netscape.com
389fcbdee8
Cleaning up whitespace
1999-01-23 00:02:41 +00:00
saari%netscape.com
f9fe3cd8f0
First Checked In.
1999-01-22 23:53:53 +00:00
saari%netscape.com
135412c230
Set mMenuListener to null in constructor
1999-01-22 23:25:16 +00:00
saari%netscape.com
5a3024bd0e
Added nsIMenuListener.h and made a member variable in nsBaseWidget for holding one of these.
This is for the XPToolkit menus to hook in and get notified of menu events.
1999-01-22 23:23:00 +00:00
blizzard%appliedtheory.com
cecaf27f77
handle the top level widget special in resizing
1999-01-22 16:10:29 +00:00
blizzard%appliedtheory.com
bc752de0c6
resizing fixes
1999-01-22 16:02:34 +00:00
pavlov%pavlov.net
5c58680a67
setup place for ramiro to fix bug 2503 easily
1999-01-22 12:10:43 +00:00
davidm%netscape.com
0ee72b3136
2239 Crash when leaving test9
1999-01-22 01:49:08 +00:00
rods%netscape.com
934d281ab9
Removed the GetFont method (this functionality is now a part of the nsIDeviceContext)
1999-01-21 23:59:14 +00:00
rods%netscape.com
57251495aa
Added new Method for getting System Attributes (colors, fonts, sizes)
...
many of these are duplicated in nsLookAndFeel. The enums will be removed
from nsLookAndFeel.
1999-01-21 23:55:27 +00:00
pierre%netscape.com
693e7203ad
Fix #2251 "Garbage renders over the back button"
1999-01-21 11:42:00 +00:00
pierre%netscape.com
ab39f1571e
Removed the obsolete 'mTE'.
1999-01-21 11:41:26 +00:00
pierre%netscape.com
c8c16d923e
Removed the unused method DrawWidget()
1999-01-21 11:21:51 +00:00
pierre%netscape.com
3ddd00c52f
Calls SetOrigin() in Invalidate(). Fixes the problem where on going to a new page the top of the html area gets drawn last. Thanks to Cyrus Harmon <cyrus@neomorphic.com>
1999-01-21 11:21:10 +00:00
pierre%netscape.com
3a4a6cba6f
Mac only: added 'isCommand' in nsInputEvent
1999-01-21 09:52:07 +00:00
pierre%netscape.com
698b0c7465
initialize the Rendering Context from a GrafPort to fix a crash on print
1999-01-21 08:41:21 +00:00
akkana%netscape.com
1e6298885a
Handle alphanumeric characters properly
1999-01-20 18:43:59 +00:00
rods%netscape.com
161d16eee7
Fixed scrollbar rendering problem by commenting out the WM_CTLCOLORSCROLLBAR
...
message in switch statement. (fix thanks to Michael Lowe)
1999-01-20 15:42:51 +00:00
pierre%netscape.com
2b7fa89adb
display the AppearanceMgr frame around edit fields
1999-01-19 22:34:43 +00:00
pierre%netscape.com
7fd48a6bec
fixed Scroll() in case the caller passes a null clipRect
1999-01-19 19:29:43 +00:00
rods%netscape.com
4916cb3b44
Added new Method for Querying System Fonts
1999-01-19 17:36:19 +00:00
pinkerton%netscape.com
bde7a0bfbd
Added cut/copy to pierre's paste work and sync'd the work done in textWidget to that in textAreaWidget so both now support cut/copy/paste the same way (though the code isn't shared).
1999-01-19 17:21:37 +00:00
pierre%netscape.com
18f4e4ea48
use the newly added HandleUpdateEvent() to redraw the top-level widget
1999-01-19 14:34:14 +00:00
pierre%netscape.com
f327e84e4d
fixed live scrolling
1999-01-19 14:33:47 +00:00
pierre%netscape.com
f8e9e4e8e2
added HandleUpdateEvent() and use ::BeginUpdate() in Update() in order to improve performance during live scrolling
1999-01-19 14:33:21 +00:00
pierre%netscape.com
208f3660d0
added Paste
1999-01-19 10:29:48 +00:00
pierre%netscape.com
bf0027d64a
moved ConvertOSMenuResultToPPMenuResult() from nsMacMain
1999-01-19 10:29:30 +00:00
pierre%netscape.com
6ad1c5ab54
propagate menu event to focused widget and its parents
1999-01-19 10:28:53 +00:00
pierre%netscape.com
bbb59e88cc
Fixed the clip rgn in Scroll(): the scrollbars no longer flicker.
1999-01-19 04:29:08 +00:00
pavlov%pavlov.net
a6f0134412
parse ~/.gtkrc (if it exists) file to make things look more consistant with
...
other gtk apps.
1999-01-19 02:45:55 +00:00
pavlov%pavlov.net
f3403d13bc
return true for events that we handle and not false
1999-01-19 02:17:30 +00:00
pierre%netscape.com
9b2c45c82a
Paint only the damaged area instead of the whole widget. Reuse the rendering context to update the children. Scroll the children.
1999-01-19 00:02:51 +00:00
pierre%netscape.com
fc7abd29e2
DoMessagePump() no longer returns a boolean
1999-01-19 00:01:41 +00:00
pavlov%pavlov.net
d881cd83e7
fix mouse clicking
1999-01-18 23:42:04 +00:00
pavlov%pavlov.net
ef484d02ed
fix Invalidate() and Update()
1999-01-17 19:30:13 +00:00
pavlov%pavlov.net
9437c83d97
only create 1 GC since we are pushing the same visual for all of the widgets.
1999-01-17 18:58:28 +00:00
pavlov%pavlov.net
6b1eab88cd
fix bustage
1999-01-17 03:08:56 +00:00
pavlov%pavlov.net
33ef8cb54c
move the event queue into nsToolkit
1999-01-17 02:09:55 +00:00
pavlov%pavlov.net
01c1753df8
Inherit nsDialog from nsWindow instead of nsWidget. s/Motif/GTK+/ in *.h for
...
some comments
1999-01-17 01:36:13 +00:00
pavlov%pavlov.net
1ce7f22bca
move some stuff from nsWindow to nsWidget. Removed more unused code, do
...
redraws correctly...
1999-01-16 23:12:35 +00:00
sfraser%netscape.com
148d347cc0
Fix control key handling to call HandleControlKey, to fix the font problem. Also draw a box around the control for looks.
1999-01-16 00:42:33 +00:00
sfraser%netscape.com
e6027588a8
Mcmullen's fixes for scroll bar behaviour, and override a method so that scroll bars are sized correctly.
1999-01-16 00:41:20 +00:00
sfraser%netscape.com
d8eb05860d
Tweak the window size so that the scroll bar is correctly positioned, and create a root Mac control for the window (so that we get control embedding).
1999-01-16 00:40:26 +00:00
sfraser%netscape.com
fc2f244935
mcmullen's scrollbar fixes (use 32-bit control values), some tweaks of Mac control visibility to avoid drawing controls in the wrong places, add a couple of utility methods for creating and adjusting Mac controls.
1999-01-16 00:39:28 +00:00
sfraser%netscape.com
bb5a9a2c34
Optimization: don't refocus a widget if it is already focussed
1999-01-16 00:30:40 +00:00
pierre%netscape.com
e3a19d235c
fixed the windowless menu handler to work with non-raptor windows (SIOUX debug window, for instance)
1999-01-15 22:34:59 +00:00
joki%netscape.com
48ae4e8fb7
Temporary fix to windows key events to give them a coord not associated with the mouse.
1999-01-15 22:24:23 +00:00
jfrancis%netscape.com
db9f2b1285
Removing Powerplant
1999-01-15 05:19:59 +00:00
jfrancis%netscape.com
717c601126
Powerplant removal
1999-01-15 05:11:22 +00:00
sfraser%netscape.com
b5f845a2ce
Bustage fix: adding PowerPlant library back (DEBUG target only)
1999-01-15 03:46:36 +00:00
jfrancis%netscape.com
63812b8e5a
Removing Powerplant
1999-01-15 00:06:35 +00:00
sfraser%netscape.com
af432d54b4
Call Inherited::SetFont in the SetFont method
1999-01-14 23:43:41 +00:00
pavlov%pavlov.net
efdfec098b
#ifdef around some recent gtk changes
1999-01-14 23:02:50 +00:00
pinkerton%netscape.com
800786f351
fix misunderstanding with params to SetText()
1999-01-14 18:57:44 +00:00
pinkerton%netscape.com
a7020b65e7
fix misunderstanding with parameters in SetText()
1999-01-14 18:56:49 +00:00
pavlov%pavlov.net
4cc7a542c0
fix bug 2352
1999-01-14 18:35:55 +00:00
sfraser%netscape.com
83c0407709
Fix build bustage (adding method CreateFontAliasTable())
1999-01-14 07:14:24 +00:00
pierre%netscape.com
9fbcc80bbd
Fixed the mouseRgn in WaitNextEvent in order not to continuously send mouseMoved events.
1999-01-14 07:02:28 +00:00
sfraser%netscape.com
8adffedbb5
No longer call the static method of nsFontMetricsMac in StartDraw; since nsMacControl implements SetFont now, this is no longer necessary.
1999-01-14 05:50:56 +00:00
sfraser%netscape.com
2750fa716a
Override SetFont to setup the control font properly. Previously, it was being picked up from the port just before drawing, which no longer works after the font optimizations in GFX.
1999-01-14 05:48:29 +00:00
sfraser%netscape.com
b3f733e464
Override CreateFontAliasTable to tweak the font settings for Mac (specifically, use Courier in preference to Courier New for the fixed width font). Also #ifdef out the font num cache, now that nsFontMetricsMac is smarter about cacheing the font num.
1999-01-14 05:44:50 +00:00
sfraser%netscape.com
f8e1a0028a
Warnings fix (remove ; )
1999-01-14 05:37:28 +00:00
pollmann%netscape.com
83f98faaee
Bug 2088 2099: Similar fixes for nsListBox (add PreCreateWidget to get mMultiSelect)
1999-01-13 07:27:24 +00:00
pollmann%netscape.com
70ac649676
Bug 2088 2099: Check the IsPassword and IsReadOnly data members on creation.
1999-01-13 07:14:22 +00:00
pollmann%netscape.com
d944a0b8c2
Bug 2088 2099: Add PreCreateWidget method for password and readonly text elements.
1999-01-13 07:09:21 +00:00
pinkerton%netscape.com
70349fe327
fix problem where SetText would truncate text to 255.
1999-01-13 00:03:05 +00:00
pinkerton%netscape.com
85158561f2
fix #2247 to fix lack of redraw when text is set
1999-01-13 00:02:51 +00:00
mcmullen%netscape.com
41e7307ae5
Fully implement scrollbars - live scrolling, etc. Includes changes by Cyrus Harmon.
1999-01-12 19:26:31 +00:00
blizzard%appliedtheory.com
2d09d8adad
clean up factories for gtk. make destroying for nsWidgets() cleaner.
1999-01-12 04:42:09 +00:00
pavlov%pavlov.net
b0a13ace63
sync all my changes. removed lots of code that is provided in nsBaseWidget,
...
added focus handlers, etc etc etc
1999-01-12 03:56:33 +00:00
pavlov%pavlov.net
09e2f443a0
set event.point.[xy] to 0
1999-01-11 23:06:13 +00:00
pavlov%pavlov.net
97031df1f3
allow nsWindow's to take focus. this should fix problem for editor people
1999-01-10 18:48:05 +00:00
pavlov%pavlov.net
eb52f9504c
halfway fix the excessive GC problem. more work on resizing
1999-01-09 21:16:20 +00:00
pavlov%pavlov.net
acd084d6c6
Resizing works.... somewhat. More to come
1999-01-09 17:41:20 +00:00
beard%netscape.com
7db5cb6bbe
Turned off call to NET_PollSockets() on XP_MAC, to fix link error, not really needed anyway.
1999-01-08 22:43:45 +00:00
pavlov%pavlov.net
a976fb2e47
use GDK bit stuff for the alt/ctrl/shift mods
1999-01-08 15:55:52 +00:00
pierre%netscape.com
6a8bb7040a
Fixed bug in SetPosition. Thanks to Cyrus Harmon <cyrus@neomorphic.com>
1999-01-08 05:36:06 +00:00
sfraser%netscape.com
dd642f2028
Add SIOUX event handling in debug mode. Also remove a couple of unnecessary #defines and use the Universal Header versions.
1999-01-08 03:29:39 +00:00
sfraser%netscape.com
8f4ee62626
Change 'memory' include to search in system path
1999-01-08 03:28:47 +00:00
akkana%netscape.com
365817c89e
1965: Fix mouse-down events
1999-01-07 21:06:21 +00:00
mcafee%netscape.com
0896c99dc9
Variable had wrong type (1229), thanks to tor@cs.brown.edu
1999-01-07 20:14:34 +00:00
brade%netscape.com
d27e20fbbd
reduce Macintosh compiler warnings by removing extra ;
1999-01-06 18:49:37 +00:00
warren%netscape.com
3d9c908207
Added check for null.
1999-01-06 00:06:14 +00:00
pierre%netscape.com
f8c62f1334
removed the handle locking/unlocking in Init()
1999-01-05 04:07:23 +00:00
pierre%netscape.com
bee6ae8584
commented out an annoying assert
1999-01-05 03:51:17 +00:00
blizzard%appliedtheory.com
fa9520e3ce
don't return the address of something allocated on the stack
1998-12-29 01:07:35 +00:00
pavlov%pavlov.net
815637d719
yet another attempt to get resizing working
1998-12-24 21:06:27 +00:00
pavlov%pavlov.net
9a87c6eea2
fix build, more event cleanups
1998-12-24 02:46:34 +00:00
pavlov%pavlov.net
024beed937
remove lots and lots and lots and lots of excess code that isn't used.
...
fix up a few events
1998-12-24 02:10:49 +00:00
pierre%netscape.com
f941ca3d69
Export the 2 functions to fix link errors in embedding applications
1998-12-23 06:54:37 +00:00
pavlov%pavlov.net
6da5899ae4
comment something out
1998-12-23 04:17:30 +00:00
pavlov%pavlov.net
fe27a2c01b
Redo all the evil event handling. We still do not resize properly, but I am
...
getting closer.
1998-12-23 03:31:15 +00:00
pierre%netscape.com
54fd83d004
moved nsRefData to nsMacMessageSink.h
1998-12-22 06:38:00 +00:00
pierre%netscape.com
b6d3d328bb
defined the Raptor windowKind bit and moved nsRefData to nsMacMessageSink.h
1998-12-22 06:37:46 +00:00
pierre%netscape.com
aeff8eaaf0
Handle the Raptor windowKind bit
1998-12-22 06:37:32 +00:00
pierre%netscape.com
1b25f03672
File Removed.
1998-12-22 02:04:26 +00:00
pierre%netscape.com
8bb5fe19ef
Fixed for the Mac
1998-12-22 02:02:24 +00:00
pinkerton%netscape.com
1fccc59141
Get rid of obsolete interfaces.
1998-12-21 21:54:29 +00:00
pinkerton%netscape.com
e6c0b3d37e
Decouple the toolbars from the toolbox once and for all. Implement collapsing/expanding toolbars with new grippy mechanism.
1998-12-21 21:54:17 +00:00
rods%netscape.com
a29a012791
Added several enums for form's controls
1998-12-21 16:53:49 +00:00
brade%netscape.com
e9dc173ef8
have SetAlignment return NS_OK (reduce Mac compiler warnings)
1998-12-21 16:51:19 +00:00
brade%netscape.com
f2853da8d6
reduce Mac compiler warnings by commenting out unused local variables
1998-12-21 16:48:35 +00:00
pierre%netscape.com
392e110ad0
Remove 'mBounds' that was hidding a recently added member variable with the same name in nsBaseWidget
1998-12-20 13:16:48 +00:00
pierre%netscape.com
cf39974924
Added a reminder to not always pass the entire widget rect in NS_PAINT_EVENTs
1998-12-20 13:14:29 +00:00
ramiro%netscape.com
9bb7820d60
Renamed 'main' to 'scribble'.
1998-12-20 08:22:02 +00:00
peterl%netscape.com
771b8f3e81
sync to new attribute api
1998-12-20 01:35:57 +00:00
pavlov%pavlov.net
b69707dccf
we require gtk 1.1.6 now
1998-12-19 20:10:31 +00:00
pavlov%pavlov.net
0488070648
fix crash
1998-12-19 20:02:31 +00:00
pavlov%pavlov.net
340357e342
lots and lots of code cleanup.
1998-12-19 18:04:06 +00:00
hyatt%netscape.com
37b1699757
Implemented expanding/collapsing nodes in the tree view AND implemented
...
selection in the tree view.
1998-12-18 23:57:11 +00:00
pierre%netscape.com
4dbe87a66d
Update() no longer passes the rendering context to the children
1998-12-18 13:34:39 +00:00
pierre%netscape.com
b42b6ca58a
Update() no longer passes the rendering context to the children and ignore invisible widgets
1998-12-18 13:34:22 +00:00
pierre%netscape.com
754e763f06
Fixed continuous drawing of controls by doing a ValidRect after DrawControl
1998-12-18 13:29:39 +00:00
pierre%netscape.com
ed9efc3407
Call DeviceContextImpl::Init() just because Windows does it
1998-12-18 13:29:06 +00:00
shaver%netscape.com
009626137f
resprinkle NO_STATIC_LIB, but spare libpng so that viewer is cool. Also, repair some viewer/apprunner link foibles
1998-12-18 02:55:23 +00:00
blizzard%appliedtheory.com
73321fc450
only destroy the widget if it has actually been created
1998-12-18 02:52:55 +00:00
waterson%netscape.com
f77d6fb67a
Fix build bustage.
1998-12-18 01:33:26 +00:00
mjudge%netscape.com
874cb09b7f
fixing build
1998-12-18 01:09:11 +00:00
davidm%netscape.com
1d34fc5c03
Fix problems with multiple windows leaking the event queue
1998-12-17 23:10:42 +00:00
hyatt%netscape.com
cb7161fc0e
Fixing Pink's build bustage.
1998-12-17 22:48:36 +00:00
pinkerton%netscape.com
9c27434d23
using nsCOMPtr and grippies are now drawn by hand so we can get the right look and scaling. Separation of grippies from toolbar in place with ifdefs.
1998-12-17 22:15:48 +00:00
pinkerton%netscape.com
5e4b35a9c5
using nsCOMPtr
1998-12-17 22:15:09 +00:00
pinkerton%netscape.com
ca8c871fe8
using nsCOMPtr and preparing for separation from grippy and toolbar manager with ifdefs.
1998-12-17 22:14:28 +00:00
pinkerton%netscape.com
f5c9eca872
inserted IID() method for use with nsCOMPtr.
1998-12-17 22:13:41 +00:00
hyatt%netscape.com
9e6d9c33ac
Paving the way for the implementation of expanding/collapsing folders.
1998-12-17 22:11:51 +00:00
rods%netscape.com
f78d6cde7f
Added LBS_EXTENDEDSEL flag to get the proper MULTIPLE seleciton behavior
1998-12-17 18:44:52 +00:00
hyatt%netscape.com
8268678354
Fixing build bustage. Sorry!
1998-12-17 00:07:23 +00:00
hyatt%netscape.com
b3c7340bb2
Fixing build bustage. Sorry!
1998-12-17 00:05:06 +00:00
hyatt%netscape.com
000bd58188
Added code for hit detection. (Can now detect a hit on the trigger and tell
...
which row/column was hit.)
1998-12-16 23:02:30 +00:00
hyatt%netscape.com
c9143b7001
Modifications for rollover color support.
1998-12-16 22:06:26 +00:00
davidm%netscape.com
9ffcab4426
First pass at adding nspr event queue on the mac so that clicking on links works properly
1998-12-16 22:03:18 +00:00
dcone%netscape.com
8c984661d6
fixed resoluton problem for printing.
1998-12-16 18:02:38 +00:00