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
Ben Harris
01105493cc
Work around an SC bug that causes it to try to use the same register for
...
two purposes in s_wrpkt_prepare(). This makes SSH1 work on 68K Macs, at
least until I deactivate the terminal window...
[originally from svn r2876]
2003-02-23 00:13:17 +00:00
Ben Harris
bd149e7b1e
Add a mechanism for collecting entropy, and displaying how much we've got,
...
based on the Windows version. We don't _do_ anything with the entropy yet,
though.
[originally from svn r2875]
2003-02-20 22:55:09 +00:00
Ben Harris
f53c998569
Be careful not to try to get information from windows we don't own, or that
...
don't exist at all. Also a small PuTTYgen change that I can't be bothered
to filter out of this commit.
[originally from svn r2874]
2003-02-20 22:31:52 +00:00
Ben Harris
eb14a580d7
Make this compile in Carbon.
...
[originally from svn r2867]
2003-02-19 01:03:47 +00:00
Ben Harris
670289a8b8
Bring PuTTYgen into the world of object-oriented event handling.
...
Also add a non-functional "generate" button the the key window.
[originally from svn r2857]
2003-02-16 14:27:37 +00:00
Ben Harris
6223099261
Make it possible to close the "about" and "licence" boxes again.
...
[originally from svn r2856]
2003-02-16 13:44:18 +00:00
Ben Harris
0b0935adf2
Stub code for handling key windows in PuTTYgen. This file will eventually
...
include all the stuff that does actual work in PuTTYgen.
[originally from svn r2854]
2003-02-16 13:03:12 +00:00
Ben Harris
4f59bac798
Rather than increasing the size of my switch statements yet further, have
...
a bunch of function pointers associated with each window to do things like
updates and click handling. This is all looking disturbingly object-oriented.
.
While I'm here, separate out the about box into its own file, shared by PuTTY
and PuTTYgen.
[originally from svn r2850]
2003-02-15 16:22:15 +00:00
Ben Harris
c6a92bebfc
Tiny amount of infrastructure for having actual keys in PuTTYgen.
...
[originally from svn r2849]
2003-02-15 14:20:43 +00:00
Ben Harris
0c1b343646
<OpenTransportInternet.h> seems to want <Files.h>. Silly thing.
...
[originally from svn r2848]
2003-02-15 14:20:04 +00:00
Ben Harris
ff507407b1
Move the 'vers' resources for Mac OS into their own file, to be shared
...
by the various applications.
[originally from svn r2843]
2003-02-13 12:30:10 +00:00
Ben Harris
8dcbb16ec2
Minimal shell of PuTTYgen for Mac. No actual PuTTYgen-specific code there
...
yet, but an absence of PuTTY-specific code.
[originally from svn r2842]
2003-02-12 23:53:15 +00:00
Ben Harris
10bccffd16
Clip host resize requests to the size of the desktop.
...
[originally from svn r2835]
2003-02-11 23:10:34 +00:00
Ben Harris
bea09a8046
The event log is implemented; remove it from the list.
...
[originally from svn r2830]
2003-02-10 23:49:58 +00:00
Ben Harris
2c10ece60d
Crude Event Log implementation for the Mac. I'm fairly convinced now that
...
using the List Manager was entirely the wrong decision on my part, so I'll
probably rewrite this to use TextEdit at some point, but it's better than
stderr even so.
[originally from svn r2811]
2003-02-07 01:38:12 +00:00
Ben Harris
60c9d7bae3
Clean up Carbon build procedures somewhat. I still don't have anything that
...
actually works, but I think I'm getting closer.
[originally from svn r2810]
2003-02-07 01:33:24 +00:00
Ben Harris
f9928fafae
Move net_service_lookup() to macnet.c, since that's where it belongs.
...
[originally from svn r2806]
2003-02-06 01:01:27 +00:00
Ben Harris
a1e2199dc1
Add a level of indirection to make it rather easier to work out which of a
...
session's windows we're dealing with.
[originally from svn r2804]
2003-02-04 23:39:26 +00:00
Ben Harris
1e25e56378
If we're compiling for Carbon, define OTCARBONAPPLICATION so that we get
...
the simplified (and backward-compatible) application-only interfaces.
[originally from svn r2793]
2003-02-04 02:15:18 +00:00
Ben Harris
24df1c5463
Carbonise, or at least disable MacTCP support under Carbon.
...
[originally from svn r2792]
2003-02-04 02:10:42 +00:00
Ben Harris
67312214da
I can only quote the comment in <Scrap.h> which prompted this commit:
...
/*
Newsflash! After 15 years of arduous toil, it's finally possible
for specially trained typists wielding advanced text editing
technology to define symbolic names for commonly used scrap
flavor type constants! Apple triumphs again!
*/
[originally from svn r2791]
2003-02-04 02:08:03 +00:00
Ben Harris
16f40e8bcc
Fix various breakages my Carbonisation caused in the Classic build, notably
...
that outside Carbon, CGrafPtr and GrafPtr are different types, even though
they're mostly interchangeable, so we need to interpose a cast between
GetWindowPort and SetPort.
[originally from svn r2790]
2003-02-04 02:03:53 +00:00
Ben Harris
13feddf9ea
Carbonise. Currently, size tips and copy/paste won't work in Carbon.
...
[originally from svn r2789]
2003-02-04 01:53:50 +00:00
Ben Harris
45ab39dd19
Slightly improve Carbon handling: we still have to deal with the "About..."
...
menu entry, even if the rest of the Apple Menu is done for us.
[originally from svn r2788]
2003-02-04 00:33:11 +00:00
Ben Harris
1e67347b04
Convert keyboard events into Unicode properly. I can now type all manner of
...
interesting characters and have them work properly.
[originally from svn r2787]
2003-02-04 00:01:33 +00:00
Ben Harris
e83c42bb5b
Update to match reality.
...
[originally from svn r2780]
2003-02-02 16:02:50 +00:00
Ben Harris
60b6419de5
Add support for using Navigation Services to open saved sessions.
...
Support for saving sessions using Navigation Services will come later.
[originally from svn r2779]
2003-02-02 15:59:00 +00:00
Ben Harris
49552525cc
Carbonise, mostly by replacing addresource() with c2pstrcpy() and
...
AddResource(), and similar.
[originally from svn r2775]
2003-02-02 00:04:36 +00:00
Ben Harris
e68c510ac4
Carbonise. Until we support Navigation Services, loading and saving sessions
...
is tricky.
[originally from svn r2774]
2003-02-01 23:55:00 +00:00
Ben Harris
ac8177763e
Make this compile in a Carbon world (while still supporting everything else).
...
[originally from svn r2773]
2003-02-01 23:42:30 +00:00
Ben Harris
61711b9594
Rather more natural (if much more complex) Mac Filename implementation.
...
Filenames are represented as a FSSpec, which is converted to and from an
alias record ('alis' resource) when saving and loading sessions.
.
It might be an idea to allow in-core Filenames to contain alias records too,
so that they can refer to directories that don't exist on the current system,
but that requires Filenames to be dynamically allocated, which is likely to be
a pain.
[originally from svn r2771]
2003-02-01 21:44:05 +00:00
Simon Tatham
bd16b29a7a
Oops, Ben is quite right about the rather appalling design of
...
filename_from_str. Here's a better fix, with some const
repercussions too.
[originally from svn r2768]
2003-02-01 17:24:27 +00:00