Ben Harris
98583ce217
Bring list of applications and architectures up to date.
...
[originally from svn r3070]
2003-04-05 22:10:13 +00:00
Ben Harris
9117b20d18
dd support for list boxes in Mac OS 8. Not entirely solid, but largely
...
working.
[ bits missed in the first commit ]
[originally from svn r3069]
2003-04-05 22:03:06 +00:00
Ben Harris
f51cc630c2
Add support for list boxes in Mac OS 8. Not entirely solid, but largely
...
working.
[originally from svn r3068]
2003-04-05 22:00:57 +00:00
Ben Harris
6de4a868ff
On System 7, draw the default ring in grey if the window is disabled.
...
This isn't _quite_ right, since it uses a b/w dither everywhere, whereas
it should use grey on colour screens. That would involve mucking around
with DeviceLoop, though, and I'm not sure I can be bothered.
[originally from svn r3066]
2003-04-05 18:00:46 +00:00
Ben Harris
dddcb9ceda
Handle Return and Escape keys in dialogue box, triggering the default and
...
cancel buttons respectively.
[originally from svn r3065]
2003-04-05 17:19:38 +00:00
Ben Harris
f9f5154e76
Cope with NULL labels in every control where it makes sense, and assert that
...
all other labels are != NULL.
[originally from svn r3061]
2003-04-05 15:55:22 +00:00
Ben Harris
d077cbb088
Send EVENT_VALCHANGE when a System 7 editbox gets typed in.
...
[originally from svn r3060]
2003-04-05 15:08:17 +00:00
Ben Harris
277ca3a397
Implement dlg_end().
...
[originally from svn r3059]
2003-04-05 15:01:16 +00:00
Ben Harris
000edf3233
Implement update_special_menu(), which calls mac_adjustmenus() as appropriate.
...
Eventually, mac_adjustmenus() will handle populating the Specials menu.
[originally from svn r3058]
2003-04-05 14:34:06 +00:00
Ben Harris
87229cbf79
Implement columns, based loosely on Simon's Windows implementation. Now this
...
actually _looks_ like PuTTY.
[originally from svn r3052]
2003-04-03 23:18:06 +00:00
Simon Tatham
7706da5e17
Various error-handling fixes, mostly in Unix PuTTY but one (failure
...
to save a session) crosses over into the platform-independent side.
[originally from svn r3041]
2003-04-01 18:10:25 +00:00
Ben Harris
38e6887ad1
Correct the size of editboxes under Mac OS 8.
...
[originally from svn r3027]
2003-03-30 14:24:20 +00:00
Ben Harris
82502df284
Crude keyboard support for System 7 editboxes.
...
[originally from svn r3026]
2003-03-30 00:45:00 +00:00
Ben Harris
3ee06b8cc3
The entropy pool is full of unsigned ints, not longs.
...
[originally from svn r3025]
2003-03-29 23:57:55 +00:00
Ben Harris
f599817d78
Move the Mac port over to using snew/snewn/sresize.
...
[originally from svn r3024]
2003-03-29 23:07:55 +00:00
Ben Harris
c1c7f5eb49
Convert the System 7 static text control to be a read-only version of the
...
editbox control. This means that it has a persistent edit record, can have
its height measured and uses the system font by default, all of which are good.
[originally from svn r3022]
2003-03-29 22:04:21 +00:00
Ben Harris
f0f5932bf8
Add support for labels on editboxes and radios.
...
[originally from svn r3021]
2003-03-29 20:16:51 +00:00
Ben Harris
54aff83bf0
Add input-focus support for System 7, where the Control Manager can't do
...
it itself.
Also clean up Carbon builds.
[originally from svn r3019]
2003-03-29 18:32:36 +00:00
Ben Harris
adb469b1c6
Add the System 7 editbox CDEF, which I seem to have forgotten.
...
[originally from svn r3018]
2003-03-29 18:31:09 +00:00
Ben Harris
6174de9afd
Tidy up dlg_editbox_set() and implemen dlg_editbox_get() for System 7.
...
[originally from svn r3011]
2003-03-28 00:50:04 +00:00
Ben Harris
a263861aaa
Display half of a System 7 edit text CDEF, using TextEdit directly. This
...
is the easy bit.
[originally from svn r3010]
2003-03-28 00:06:17 +00:00
Ben Harris
5c9e56ba3e
open_settings_r() and open_settings_w() need to cope with a NULL session name.
...
[originally from svn r3009]
2003-03-27 22:46:28 +00:00
Ben Harris
9d2b0fb2d8
Get preferred and minimum sizes in the right order.
...
[originally from svn r3005]
2003-03-26 23:52:21 +00:00
Ben Harris
c8c17d2cef
Rename dlg_listbox_addwithindex() to dlg_listbox_addwithid(), since the old
...
name was, not to put too fine a point on it, wrong.
[originally from svn r2997]
2003-03-25 23:45:56 +00:00
Ben Harris
8cf125c96e
Use CountMenuItems() rather than CountMItems() since the latter isn't
...
available in Carbon.
[originally from svn r2996]
2003-03-25 23:23:03 +00:00
Ben Harris
fe590b2f51
Add support for editbox controls on Mac OS 8, and for per-control private data.
...
[originally from svn r2995]
2003-03-25 23:18:59 +00:00
Ben Harris
093c88d28a
Clean out some #ifdef'ed out junk.
...
[originally from svn r2985]
2003-03-24 22:46:11 +00:00
Ben Harris
c20818608e
Initialise the "next menu ID" counter for pop-up menus. This stops crashes
...
on Mac OS 8.
Also re-do support for activate events so as not to depend on embedding
hierarchies, and thus to work on System 7.
[originally from svn r2984]
2003-03-24 22:41:38 +00:00
Ben Harris
6991e3ae7d
Slightly improve radio button layout to more closely match the Mac OS 8 HI
...
Guidelines.
[originally from svn r2983]
2003-03-24 21:55:51 +00:00
Ben Harris
335cf4c708
Add support for pop-up menus (drop-down lists in Windows parlance).
...
For some reason, these explode horribly with the Appearance Manager present,
but work fine in bare System 7. Investigations are ongoing.
[originally from svn r2980]
2003-03-23 14:11:39 +00:00
Ben Harris
174b839586
Add crude support for multiple panels in the config dialogue box. There's
...
no way to switch between panels yet, though, so you're stuck on the first one.
[originally from svn r2971]
2003-03-21 00:24:17 +00:00
Ben Harris
ba8c8fec9c
Pass a pointer to the entire dialog box structure to event handlers, rather
...
than just the individual control pointer, because otherwise event handlers
can't modify other controls.
[originally from svn r2970]
2003-03-20 23:15:25 +00:00
Ben Harris
6d95dc84b4
Add support for drawing a ring around the default button in System 7.
...
[originally from svn r2967]
2003-03-19 00:40:15 +00:00
Ben Harris
ea3dd210de
Add support for changing the contents of a pre-Appearance static text control.
...
[originally from svn r2966]
2003-03-18 23:47:33 +00:00
Ben Harris
471e004558
Tag the "Cancel" button appropriately, in case anyone's using a theme that
...
pays attention to it.
[originally from svn r2965]
2003-03-18 23:41:14 +00:00
Simon Tatham
4d41247cde
Big sprawling dialog-box commit covering all sorts of things.
...
Buttons now have an `iscancel' flag to go with `isdefault';
dlg_last_focused() now explicitly passes the control it _doesn't_
care about (`I want the last control that had focus and isn't this
one'); and in the GTK implementation, various fixes have happened,
notably including arrow keys working sensibly in list boxes and the
treeview and short font aliases being expanded correctly to
initialise the font selectors.
[originally from svn r2958]
2003-03-18 19:06:51 +00:00
Ben Harris
893ca6173a
My First CDEF: A terribly trivial static text control for System 7.
...
Needs work.
[originally from svn r2955]
2003-03-18 00:35:40 +00:00
Ben Harris
8978c74c45
Insert a missing ampersand that meant that the last version didn't even
...
compile.
[originally from svn r2954]
2003-03-17 22:38:18 +00:00
Ben Harris
53b61424bc
Partial implementation of the platform-independent dialogue-box interface
...
for the Mac OS. This isn't anywhere near complete, and is wrong in a few
important regards, but I think it's heading in the right direction.
[originally from svn r2953]
2003-03-17 21:40:37 +00:00
Ben Harris
93198194fb
When running on a system with Aqua menu layout, delete the separator line
...
above "Quit" as well as "Quit" itself.
[originally from svn r2951]
2003-03-17 19:00:36 +00:00
Ben Harris
a816d2df18
Increase PuTTY's default partition size to 2 MB. 1 MB just isn't enough.
...
[originally from svn r2928]
2003-03-11 22:35:07 +00:00
Ben Harris
43d2fa847f
Alert box to support host-key checking.
...
[originally from svn r2920]
2003-03-06 23:46:06 +00:00
Ben Harris
33e7ee09ab
Slightly better than null verify_ssh_host_key(). It's broken in more ways
...
than I can comfortably enumerate (see the comments in the code), but it's
better than always assuming everything's OK.
[originally from svn r2919]
2003-03-06 23:44:47 +00:00
Ben Harris
614c5a3b92
Improve scheduling on the Mac:
...
1: Only update the screen when there's nothing else to do. This means that
it's a lot harder for a fast typist to outrun PuTTY.
2: Only sleep for at most 100ms at a time. This is a kludge to work around
the WakeUpProcess caused by incoming data can happen before the
WaitNextEvent it's meant to interrupt, leading to PuTTY sleeping forever
because it doesn't know there's network data pending.
[originally from svn r2901]
2003-03-01 15:12:03 +00:00
Ben Harris
000acf446c
Handle the Aqua menu layout, in which the system provides a "quit" option
...
for us, correctly.
[originally from svn r2899]
2003-02-27 23:34:59 +00:00
Ben Harris
b11ffdcd6f
Add 'plst' 0 resources to help Mac OS X do magic things.
...
These aren't actually compiled yet because they must only be present in
the Carbon build, and I don't currently compile the resources separately for
each platform.
[originally from svn r2898]
2003-02-27 23:21:23 +00:00
Ben Harris
d563d6e35b
Handle suspend and resume events in PuTTYgen as well.
...
[originally from svn r2881]
2003-02-23 13:31:12 +00:00
Ben Harris
8bff62d5b8
Don't open the event log whenever an event is logged; instead handle the
...
"Show Event Log" menu entry sensibly. Similarly, make it possible to close
(hide) the event log.
[originally from svn r2880]
2003-02-23 13:00:38 +00:00
Ben Harris
791a12ce5b
Scroll the event log to the end after adding a line if it was looking at the
...
end before the line was added.
[originally from svn r2879]
2003-02-23 12:41:44 +00:00
Ben Harris
eec4b9d08d
Add handling for suspend and resume events, and set the flags in our 'SIZE'
...
resource that say we can handle them. This seems to avoid a crash when PuTTY's
switched away from, and is necessary for Carbon anyway.
[originally from svn r2878]
2003-02-23 11:58:59 +00:00