You are not logged in.

#1 2006-01-03 12:02:37

neok
Member
From: Cyprus
Registered: 2003-12-14
Posts: 190
Website

Tree view with editable cells?

Hi,

I have written a GTK+-2 based graphical visualizer for the NEC2 antenna simulation and analysis tool http://www.qsl.net/5b4az/pages/nec2.html and I am now considering a companion graphical editor for the NEC2 input file. This file is normally produced with a text editor and specifies antenna geometry and then commands to calculate various data regarding antenna characteristics (gain, input impedance etc).

Luckily the original NEC2 was written in FORTRAN and the input was punched cards with a fixed format, so the current file format is line-based and with a fixed number of parameters per line: you can get an idea by looking into examples files in http://www.qsl.net/5b4az/pkg/nec2/examples/

What I need is an idea on how to code a graphical line editor with editable cells for each parameter and the ability to add or delete lines as needed. The data in the cells may be numerical or textual or both and there may be inter-relations between cells, e.g. one cell may have a value that is a fixed proportion of another cell's value etc.

Tips please? Thanks!


Regards

Neoklis ... Ham Radio Call: 5B4AZ

Offline

#2 2006-01-03 12:04:29

dust
Member
Registered: 2005-06-04
Posts: 152
Website

Re: Tree view with editable cells?

What language? There is a ruby gtk binding tutorial specifically for gtk's treeview:

http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-treeview


Writing stories for a machine.

Offline

#3 2006-01-03 12:14:17

tranquility
Member
From: Portugal
Registered: 2004-08-06
Posts: 136

Re: Tree view with editable cells?

Well, just about any language with bindings for gtk will work in a very similar manner. If I understand correctly, you might want to investigate the GTK treeview and GTK CellRenderer classes. Try to check the tutorials too.

Hope this helps.

Offline

#4 2006-01-03 12:38:34

neok
Member
From: Cyprus
Registered: 2003-12-14
Posts: 190
Website

Re: Tree view with editable cells?

dust wrote:

What language? There is a ruby gtk binding tutorial specifically for gtk's treeview:

http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-treeview

Well, I am using C throughout so language is not an issue in this case. Thanks for the link!


Regards

Neoklis ... Ham Radio Call: 5B4AZ

Offline

#5 2006-01-03 12:43:17

neok
Member
From: Cyprus
Registered: 2003-12-14
Posts: 190
Website

Re: Tree view with editable cells?

tranquility wrote:

Well, just about any language with bindings for gtk will work in a very similar manner. If I understand correctly, you might want to investigate the GTK treeview and GTK CellRenderer classes. Try to check the tutorials too.

Hope this helps.

Yes, thanks! Unfortunately though there is no easy way to have a spin button type editable cell, which would have been best for my needs. However, I found an example in a tutorial for the TreeView which could make a basis for a home brew second-best solution!  big_smile


Regards

Neoklis ... Ham Radio Call: 5B4AZ

Offline

#6 2006-01-03 16:26:27

demonus
Member
Registered: 2005-01-31
Posts: 62

Re: Tree view with editable cells?

http://cactus.rulez.org/projects/gnome/ … -icontext/ you may try here, I've used this as example to build my own gaim like cell renderer

Offline

#7 2006-01-03 16:29:18

demonus
Member
Registered: 2005-01-31
Posts: 62

Re: Tree view with editable cells?

well I've looked at your app, great work man

Offline

#8 2006-01-03 16:33:13

neok
Member
From: Cyprus
Registered: 2003-12-14
Posts: 190
Website

Re: Tree view with editable cells?

demonus wrote:

well I've looked at your app, great work man

Thanks, for the link and good words  wink


Regards

Neoklis ... Ham Radio Call: 5B4AZ

Offline

Board footer

Powered by FluxBB