From: D-Man <dsh8290@rit.edu>
To: sourcenav@sources.redhat.com
Subject: Re: customization
Date: Tue, 13 Feb 2001 09:30:00 -0000 [thread overview]
Message-ID: <20010213123017.A11342@harmony.cs.rit.edu> (raw)
In-Reply-To: <Pine.SOL.3.91.1010209112257.22410D-100000@cse.cygnus.com>
On Fri, Feb 09, 2001 at 11:28:48AM -0800, Mo DeJong wrote:
| On Fri, 9 Feb 2001, D-Man wrote:
|
| > I would like to change a few things about SN's gui, but I don't think
| > there are any options for it yet :
| >
| > o always add an Editor view to Class and XRef views
| > o Editor view is always 80 characters wide when created
| > o Editor displays in reverse video (like gvim does)
| > o Editor is read-only (a viewer really, not an editor)
| >
| > I really don't mind hard-coding these prefs into my copy, but I don't
| > know either Tcl or Tk. If someone would show me what to add, and
| > where I would greatly appreciate it.
|
| Well, we can give you general tips on how to implement the
| changes but you are going to have to actually go into the
| code and get it working.
Of course, this is what I was asking for.
|
| For example, that "Editor is read-only" can be done by setting
| the -state option of the editor's text widget to disabled.
| You would need to add a command like:
|
| $text configure -state disabled
Ok, got that. Line 118 in share/gui/multiedit.tcl
|
| The "reverse video" thing should not be hard at all. Just
| set the background to black and the fg to green. Here
| is a quick wish (Tk) script to get you started.
|
| $ wish
| % text .t -bg black -fg green
| % pack .t
That worked, but I found the highlight colors were to dark for my
taste. I put it back to the default white background.
|
| > Also, I would like gvim to open up at the proper line of code when I
| > double-click in a view. I didn't find the cl option in the help
| > files, and also I don't know what format string specifier I would
| > need to use in the "External Editor" option. Could someone give me
| > some pointer here too?
|
| The docs have some info about each of the format strings
| you can use for an "External Editor".
|
| Mo DeJong
| Red Hat Inc
I couldn't figure out which function to call to put the Editor view
into the Class and XRef views. I did find what appears to be the
constructor for the Class and XRef views though.
Also, I couldn't get the Editor to be 80 chars wide by default. It is
much smaller (around 60 characters). I tried changing line 119 in
multiedit.tcl to have -width 80 instead of -width $width , but it
didn't seem to have any effect.
-D
next prev parent reply other threads:[~2001-02-13 9:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-09 9:54 customization D-Man
2001-02-09 11:28 ` customization Mo DeJong
2001-02-13 9:30 ` D-Man [this message]
2001-02-13 10:19 ` customization Kenneth Luke
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010213123017.A11342@harmony.cs.rit.edu \
--to=dsh8290@rit.edu \
--cc=sourcenav@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).