public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* Re: Is it possible to save window size and position preferences?
       [not found] <200208011739.g71Hdel25222@mx1.redhat.com>
@ 2002-08-01 11:29 ` Keith Seitz
  0 siblings, 0 replies; 4+ messages in thread
From: Keith Seitz @ 2002-08-01 11:29 UTC (permalink / raw)
  To: Hartman, John (St. Paul); +Cc: 'insight@sources.redhat.com'

On Thu, 1 Aug 2002, Hartman, John (St. Paul) wrote:

> Is it possible to save window size and position preferences for Insight?  It
> is really tedious to have to open, size, and place all windows every time I
> run.

Hmmm. I'm pretty sure we do this already. I know when I run Insight, I
always get my source and console windows exactly where I left them...

> There is a bunch of preference stuff in gdbtkinit, but window size and
> position doesn't seem to be part of it.  The "help" file doesn't say much
> except to list the menu options in a font too teeny to read.

Ah, I see what's going on (and I don't really like it, either)... We save
the geometry of any _open_ windows when Insight is exited. Once they are
saved like this, these settings will never go away (unless you delete your
preferences file). So even if you close them, they will show up the
"right" way next time.

It does this on unix and cygwin/windows.

Keith


^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Is it possible to save window size and position preferences?
       [not found] <200208012101.g71L11l15815@mx1.redhat.com>
@ 2002-08-01 14:25 ` Keith Seitz
  0 siblings, 0 replies; 4+ messages in thread
From: Keith Seitz @ 2002-08-01 14:25 UTC (permalink / raw)
  To: Hartman, John (St. Paul); +Cc: 'insight@sources.redhat.com'

On Thu, 1 Aug 2002, Hartman, John (St. Paul) wrote:

> I deleted gdbtk.ini and then ran Insight.  The behavior I get is
> 1) open, size and place Register and Locals windows
> 2) close Insight

How are you running insight? I've only ever run it from a console. This
could impact where insight thinks your gdbtk.ini is. (I'm just taking wild
guesses here, of course.)

How are you closing it? I just click on the destroy button on the window's
title bar. (Again, totally in the dark here.)

> If I open gdbtk.ini (attached) after step 2, it contains for these windows
> only:
>
> 	[reg]
> 		highlight_fg=blue
> 		rows=16
> 	[locals]
>
> What do the commands in the ini file look like for windows open and sized?
> As a brute-force hack, I could hand edit my ini file for the placement I
> want.

You're definitely missing some things... You should have a section that
looks like this:

[geometry]
	.srcwin0.srcwin=WIDTHxHEIGHT+X+Y
	.console0.console=WIDTHxHEIGHT+X+Y

and so on for other windows.

Keith


^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Is it possible to save window size and position preferences?
@ 2002-08-01 14:13 Hartman, John (St. Paul)
  0 siblings, 0 replies; 4+ messages in thread
From: Hartman, John (St. Paul) @ 2002-08-01 14:13 UTC (permalink / raw)
  To: 'insight@sources.redhat.com'

[-- Attachment #1: Type: text/plain, Size: 868 bytes --]

On Thu, 1 Aug 2002, Keith Seitz wrote:

>Ah, I see what's going on (and I don't really like it, either)... We save
>the geometry of any _open_ windows when Insight is exited. Once they are
>saved like this, these settings will never go away (unless you delete your
>preferences file). So even if you close them, they will show up the
>"right" way next time.

I deleted gdbtk.ini and then ran Insight.  The behavior I get is
1) open, size and place Register and Locals windows
2) close Insight
3) run Insight again - and get only the source window, open to its original
dimensions

If I open gdbtk.ini (attached) after step 2, it contains for these windows
only:

	[reg]
		highlight_fg=blue
		rows=16
	[locals]

What do the commands in the ini file look like for windows open and sized?  
As a brute-force hack, I could hand edit my ini file for the placement I
want.


[-- Attachment #2: gdbtk.ini --]
[-- Type: application/octet-stream, Size: 2334 bytes --]

# GDBtk Init file
# GDBtkInitVersion: 1
[global]
	font/bold=-family windows-caption
	font/default=-family windows-message
	font/menu=-family windows-menu
	font/status=-family windows-status
	font/fixed=-family fixedsys
	font/italic=-size 8 -weight normal -overstrike 0 -underline 0 -slant italic -family {MS Sans Serif}
[gdb]
	session=args dirs executable target pwd
	font italic=-size 8 -weight normal -overstrike 0 -underline 0 -slant italic -family {MS Sans Serif}
	session=/xygdrive/d/MicroBlaze/examples/testcpp
	font_cache=
	main_names=MAIN___ MAIN__ main
	session=sim
	use_icons=1
	B1_behavior=1
	session=$cdir:$cwd
	recent-projects=/xygdrive/d/MicroBlaze/examples/testcpp/testcpp_db.out
	ImageDir=images2
	mode=0
	session=/xygdrive/d/MicroBlaze/examples/testcpp/testcpp_db.out
	session=$cdir:$cwd
	control_target=1
[load]
	sim-portname=1000
	sim-verbose=0
	default-portname=1000
	sim-runlist=1 1 1 0
	default-port=com1
	main=1
	verbose=0
	baud=38400
	default-verbose=0
	exit=1
	port=com1
	check=0
	target=sim
	default-runlist=0 0 1 0
	bp_at_func=0
[console]
	wrap=0
	prompt=(gdb) 
	prompt_fg=DarkGreen
	log_fg=green
	font=src-font
	target_fg=blue
	error_fg=red
	deleteLeft=1
[src]
	tab_size=8
	run_attach=1
	trace_fg=magenta
	thread_fg=pink
	font=src-font
	top_control=1
	bp_fg=red
	run_run=1
	run_cont=0
	source2_fg=navy
	break_fg=black
	handlebg=red
	disabled_fg=black
	run_load=1
	temp_bp_fg=orange
	PC_TAG=green
	variableBalloons=1
	STACK_TAG=gold
	BROWSE_TAG=#9595e2
	linenums=1
[reg]
	highlight_fg=blue
	rows=16
[stack]
	font=src-font
[locals]
[watch]
[bp]
	show_threads=0
[search]
	filter_mode=starts with
[process]
	xtermtty=no
[geometry]
[help]
	browser=0
[browser]
	top_height=0
	view_height=-1
	width=0
	view_is_open=0
	hide_h=0
[kod]
	show_icon=0
[window]
[session]
	/xygdrive/d/MicroBlaze/examples/testcpp/testcpp_db.out/all-keys=args dirs executable target pwd
	/xygdrive/d/MicroBlaze/examples/testcpp/testcpp_db.out/pwd=/xygdrive/d/MicroBlaze/examples/testcpp
	/xygdrive/d/MicroBlaze/examples/testcpp/testcpp_db.out/target=sim
	/xygdrive/d/MicroBlaze/examples/testcpp/testcpp_db.out/executable=/xygdrive/d/MicroBlaze/examples/testcpp/testcpp_db.out
	/xygdrive/d/MicroBlaze/examples/testcpp/testcpp_db.out/dirs=$cdir:$cwd
[mem]
	size=4
	ascii_char=.
	numbytes=0
	color=green
	format=x
	ascii=1
	bytes_per_row=16

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Is it possible to save window size and position preferences?
@ 2002-08-01 10:52 Hartman, John (St. Paul)
  0 siblings, 0 replies; 4+ messages in thread
From: Hartman, John (St. Paul) @ 2002-08-01 10:52 UTC (permalink / raw)
  To: 'insight@sources.redhat.com'

Is it possible to save window size and position preferences for Insight?  It
is really tedious to have to open, size, and place all windows every time I
run.
 
There is a bunch of preference stuff in gdbtkinit, but window size and
position doesn't seem to be part of it.  The "help" file doesn't say much
except to list the menu options in a font too teeny to read.
 
(I am running under NT, using RedHat GNUpro for the Xilinx MicroBlaze.
Insight's About reports gdb 5.0, but nothing much about Insight's version)

John Hartman 
Trane BASD 
jhartman@trane.com 

 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-08-01 21:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <200208011739.g71Hdel25222@mx1.redhat.com>
2002-08-01 11:29 ` Is it possible to save window size and position preferences? Keith Seitz
     [not found] <200208012101.g71L11l15815@mx1.redhat.com>
2002-08-01 14:25 ` Keith Seitz
2002-08-01 14:13 Hartman, John (St. Paul)
  -- strict thread matches above, loose matches on Subject: below --
2002-08-01 10:52 Hartman, John (St. Paul)

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).