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

1773 Коммитов

Автор SHA1 Сообщение Дата
Simon Tatham a7e6d60915 Fix a _very_ subtle segfault in my two GTK container classes: the
`forall' function has to be prepared for the list of widgets to
change along the way if (for example) the callback function destroys
its input widget.

[originally from svn r3029]
2003-03-31 11:22:06 +00:00
Simon Tatham 823f52c540 Checkin of last night's work on GTK message boxes. Unix PuTTY now
has proper GUI prompts for host keys etc, so it should now be usable
without a controlling tty.

[originally from svn r3028]
2003-03-31 11:21:07 +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 3e4386d810 In a couple of places, snewn() was being asked for an array of char which was
then assigned to an unsigned char * variabe.  This fixes that.

[originally from svn r3023]
2003-03-29 23:05:36 +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
Simon Tatham a3428ae953 Having created and used uxsel, it actually turns out to be
practically trivial to put all the pieces together and create a
working prototype of Unix PuTTY! It's missing a lot of things -
notably GUI request boxes for host keys and logfiles and so forth,
the Event Log, mid-session reconfiguration, session loading and
saving, sensible population of the character sets drop-down list and
probably other fiddly little things too - but it will put up a
config box and then create a GUI window containing an SSH connection
to the host you specified, so it's _basically_ there. Woo!

[originally from svn r3020]
2003-03-29 19:52:50 +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
Simon Tatham 5107780c54 pterm now uses the new uxsel module, so it's one step closer to
being able to be a PuTTY as well as a pterm. In the process I've
also moved icky things like actually reading from the pty fd and
printing the `terminated on signal' messages into pty.c where they
obviously should have been in the first place. Also there's been one
interesting repercussion in the terminal code: terminal.c's
from_backend now calls term_out() directly rather than expecting the
front end to call it afterwards. This has had the entertaining side
effect of fixing a Windows-specific bug whereby activity in a port
forwarding through a PuTTY with a blinking cursor caused the cursor
to blink to ON (!!!!). So, a surprisingly far-reaching checkin as it
turns out...

[originally from svn r3017]
2003-03-29 18:30:14 +00:00
Simon Tatham 54d5f41c95 I'm sick of having to type (cd ..; perl mkfiles.pl) when I'm working
on Unix. So now mkfiles.pl will look in .. as well as . when
searching for Recipe, so I can run `perl ../mkfiles.pl' and it will
Just Work.

[originally from svn r3016]
2003-03-29 17:07:31 +00:00
Simon Tatham b109918032 Added uxsel.c, into which I've moved those parts of the uxnet.c
functionality that deal with selectable fds in general. The idea is
that pty.c will stop passing its fd straight to pterm.c and hand it
to this module instead, and pterm.c will start requesting a general
list of fds from this module rather than expecting a single one from
pty.c, with the ultimate aim of pterm.c being able to form the basis
of a Unix PuTTY as well as pterm proper.

[originally from svn r3015]
2003-03-29 16:47:06 +00:00
Simon Tatham d36a4c3685 Introduced wrapper macros snew(), snewn() and sresize() for the
malloc functions, which automatically cast to the same type they're
allocating the size of. Should prevent any future errors involving
mallocing the size of the wrong structure type, and will also make
life easier if we ever need to turn the PuTTY core code from real C
into C++-friendly C. I haven't touched the Mac frontend in this
checkin because I couldn't compile or test it.

[originally from svn r3014]
2003-03-29 16:14:26 +00:00
Simon Tatham 70729da988 Fix off-by-one in selection update while scrolling. Thanks Richard B.
[originally from svn r3013]
2003-03-29 13:54:11 +00:00
Owen Dunn 8397d66359 Update text about ports, hopefully not too controversial.
[originally from svn r3012]
2003-03-29 01:44:39 +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 1a27942544 DECCOLM fix, take 2. It turns out that my last fix wasn't causing crashes,
but PuTTY was running out of memory, which is both easy and fatal under Mac OS
at present.  Having fixed that, I've re-instated the screen-clearing and
cursor-homing on DECCOLM, and added resetting the scroll region, since this
seems to help VTL's keypad diagram display correctly.

[originally from svn r3006]
2003-03-27 00:22:59 +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 1ef0684e82 Revert last change. It seems to cause crashes when DECCOLM actually changes
the width of the window.

[originally from svn r3003]
2003-03-26 23:13:41 +00:00
Ben Harris 94ecb07b60 DECCOLM should clear the screen and home the cursor, so it does now.
Correct interactions with DECOM and DECSTBM not investigated.
Should fix bug "deccolm-cls", but I'll leave it open till I've checked the
interactions.

[originally from svn r3001]
2003-03-26 21:14:39 +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
Simon Tatham 2da920065f The general blurb on using Plink in batch mode ought to mention the
host key prompt, and specifically mention how to ensure it won't
bite you.

[originally from svn r2981]
2003-03-24 10:49:01 +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
Simon Tatham c42085dc89 Various cosmetic fixes to the GTK config box: vertical alignment of
edit box labels, Left/Right on the treeview to collapse and expand
branches, a window title, and the best treatment of wrapping text
widgets I could think of within the product-order-oriented GTK
layout model. I think this thing is now pretty much as good as it's
going to get before GTK v2 (which should fix one or two remaining
minor nasties which I really couldn't be bothered to work around in
GTK 1.2), so the next step is to actually start _using_ it.

[originally from svn r2979]
2003-03-22 17:00:06 +00:00
Simon Tatham ba7148c42b The GTK colour selector does not provide full 8-bit resolution in
the RGB values (it deals in floats with 2 d.p. instead). Hence I've
replaced the static RGB text item in the Colours panel with three
little edit boxes, so that a user can type in exact 0-255 RGB values
if necessary. This should have the additional advantage of being
quicker than faffing with the colour selector if you already know
exactly what you want and are in a hurry!

[originally from svn r2978]
2003-03-22 11:07:59 +00:00
Simon Tatham 271adc266d Fiddle with the cmdline_saved mechanism: the `-load' option is now
never deferred, but is evaluated instantly. This _should_ fix all
the irritating problems with (for example) proxy settings and saved
sessions not playing nicely. Or it may have some other ghastly side-
effect I haven't considered; really I ought to have been keeping
better track of all the problems in this area :-(

[originally from svn r2976]
2003-03-22 10:36:28 +00:00
Simon Tatham 17bafa0c08 Windows file selectors contain an edit box as well as the Browse
button; we must send EVENT_VALCHANGE when the edit box is manually
changed as well as when the file selector successfully completes.

[originally from svn r2975]
2003-03-22 10:05:10 +00:00
Simon Tatham a185d54301 Yikes - saving of Default Settings must have been broken for some
time! The load code in settings.c was translating an empty string
into "Default Settings" to pass to {win,ux}store, whereas the save
code was passing the empty string straight down and expecting it to
be dealt with. So, a policy decision: the precise name of the
"Default Settings" special session _at the storage level_ is up to
the individual platform storage code to decide, and all platforms
MUST assume Default Settings is meant if they receive NULL or the
empty string as a session name.

[originally from svn r2974]
2003-03-22 09:49:20 +00:00
Simon Tatham 429fe02ac8 Make sure one of the Local/Remote port forwarding radio buttons
actually starts off selected!

[originally from svn r2973]
2003-03-22 09:32:49 +00:00
Simon Tatham 196fc3ea8d Fixed the bug whereby PuTTYgen went into generation mode as soon as
it started up. The problem was that I was accepting _any_ event on
IDC_GENERATE to trigger this, not just the `clicked' event, and some
uninteresting event like `initialise' must have occurred. Quite why
this only showed up as a result of the config box revamp I can't
imagine.

[originally from svn r2972]
2003-03-22 09:22:52 +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 fded7e88c2 Mention xterm mouse reporting in the section on copy and paste.
[originally from svn r2969]
2003-03-20 22:12:12 +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 3100306c90 Better appearance and positioning for dlg_error_msg box, and also
I've just found out that it's easy to ask for the config box to be
centred on the screen by default, which is kinda cool.

[originally from svn r2962]
2003-03-18 19:47:28 +00:00
Ben Harris 7f84c9f2da Change the token for HTTP Basic Authentication from "basic" to "Basic".
According to RFC 2617, it should be case-insensitive, but some proxies
(Microsoft Proxy Server in particular) erroneously reject "basic".
Should fix semi-bug msproxy-denied.

[originally from svn r2959]
2003-03-18 19:12:40 +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
Simon Tatham e2874c40c8 Gah, another duplicate keyword. I must stop creating new docs
sections by cut and paste.

[originally from svn r2956]
2003-03-18 09:03:31 +00:00