New Text Editing Widget



Hello,

I want to write a new text widget for representation of biopolymers sequences. It must satisfy next criteria:

1. To have the numeric "markers" of the first symbol in each string. It represents the position of this symbol in whole sequence. For example:

1      GATCGATCGATCGATGCTAGCTAGCATC
29     GTACGATCGGATCGATCGTATCGAGCTA
...........
1001 GCTAGCTAGCTAGCGATCGATCGAGCGA
etc.

This markers cannot be selected or deleted. It can be swithable by functions for exmpl.

2. It must be possible to represent so called "double" string, when buffer contains the "upper" string and "lower" string is generating automatically and rendering under the "upper". For example:

1     GTAGCTAGGCTAGCGATCGATC - the string from buffer
       CATCGATCCGATCGCTAGCTAG  - automatically generated (according strong biological rules)
23   CATAGCTGATGATGCTAGCTAGC
       GTATCGACTACTACGATCGATCG ... etc

3. No any GtkWidgets and other objects will be inserted or rendered etc.
4. No any chars besides of small set of latin letters will be represented.


Therefore I have next questions:

1.  Witch GtkWidget and accompanying objects is better to subclass? (sorry, but I'm newbie in Gtk yet, and in programming sphere too). I hade a look with Gtk source and dcumentation and decided that GtkTextView too complex for this work.

2. Where I can find documentation about the principles of text rendering in Gtk? I found only the short text about creation of GtkText in Gtk - devel package.
3. Any other suggestion and help are invited.

Big thanx!

Maxim A. Telegin
IBPM
Pushchino
Russian Academy of Sciences

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]