On 07/04/2015 16:30, Ton PA0TBR wrote:
Hello Bill,
Hi Ton,

Thanks for your quick answer and the work you have been doing to reduce the length.

Where in the source can I find the country list?
The country list is taken from a standard CTY.DAT file (it is embedded in the application) which you can override with a user version if you wish.

The extra abbreviation as it stands now is:

        // do some obvious abbreviations
        countryName.replace ("Islands", "Is.");
        countryName.replace ("Island", "Is.");
        countryName.replace ("North ", "N. ");
        countryName.replace ("Northern ", "N. ");
        countryName.replace ("South ", "S. ");
        countryName.replace ("East ", "E. ");
        countryName.replace ("Eastern ", "E. ");
        countryName.replace ("West ", "W. ");
        countryName.replace ("Western ", "W. ");
        countryName.replace ("Central ", "C. ");
        countryName.replace (" and ", " & ");
        countryName.replace ("Republic", "Rep.");
        countryName.replace ("United States", "U.S.A.");
        countryName.replace ("Fed. Rep. of ", "");
        countryName.replace ("French ", "Fr.");
        countryName.replace ("Asiatic", "AS");
        countryName.replace ("European", "EU");
        countryName.replace ("African", "AF");

which is in displaytext.cpp. They seemed to be good choices after reviewing a current CTY.DAT file. More similar unambiguous replacement could be added.

The position of the heading is not so important, but when I look at decoded callsigns, I like to see when the decode took place. Enlarging the window is no option for me, running 2 instances, logbook and PowerSDR, my monitors are crowded as it is.

Maybe an option to allow truncation? It's probably not that easy to know what will fit, with the different font sizes, fonts and environments.
You are correct that is potentially a complex calculation, but my problem with truncation is that there is no indication that truncation has happened, the horizontal scroll bar is the idiomatic way of indicating truncation of a text field. I did have a brief attempt at ensuring that the scroll view port is left scrolled as far to the left as possible after new decodes but hit some issues with implementation. If you think this would help I can have another go at that.

I have recently improved the ability to set the decoded text font fixing some defects. You may find that selecting smaller font for decoded text is your best option.

I have plans to make the activity windows into proper table views as the current implementation using a text edit widget is not the most suitable for displaying this sort of information. Text edits provide a vast number of features that we don't need but complicate populating and manipulating them a great deal. A table view will allow user setting of column width and even hiding columns. A table view would even allow wrapping within a column if we wished or a tool tip to display extra information about the decode line.

Another option with a table view could be to have only a single activity window with a "filter" button that filters it to decodes and Tx messages on the current Rx frequency i.e. the same window could then double as a band activity and on frequency activity monitor.

73,
Ton PA0TBR

73
Bill
G4WJS.


    Date: Mon, 06 Apr 2015 22:23:27 +0100
    From: Bill Somerville <[email protected]
    <mailto:[email protected]>>
    Subject: Re: [wsjt-devel] Horizontal scroll bar in WSJT-X Band
            Activity        window
    To: [email protected]
    <mailto:[email protected]>
    Message-ID: <[email protected]
    <mailto:[email protected]>>
    Content-Type: text/plain; charset=windows-1252; format=flowed

    On 06/04/2015 21:19, Ton PA0TBR wrote:
    > Hello all,
    Hi Ton,
    >
    > For quite some time now the Band Activity window in WSJT-X sometimes
    > has a horizontal scrollbar and when this happens, the window
    contents
    > is scrolled to the right.
    > The UTC column is then no longer visible, which is a bit of a
    nuisance.
    >
    > A decode like the following, which has a long country name seems to
    > trigger this:
    > 1603  -4  0.9  834 # CQ E77AW JN83 !Bosnia-Herzegovina
    >
    > I am not sure that this 'feature' was always present, maybe long
    > country names were abbreviated in the past?
    > My current version is 1.5.0 r4998, but this is happening for quite
    > some time.
    >
    > My question is if something can be done to avoid the horizontal
    scrolling.
    Yes, I added that recently. The problem was that lines were getting
    truncated, particularly when the font size is increased.

    Country names are abbreviated to some extent and limited in length. I
    also changed the abbreviation logic to do some more common
    abbreviations
    rather than turning word into initials e.g. European -> EU, North
    ->N.,
    South -> S., U.S.A. etc..

    If you wish to remove the scroll bar, make the main window a bit wider
    or turn off country lookups or reduce the decoded text font size in
    settings.

    Unfortunately because of the separate widgets used to display heading
    line and the decoded text, it is not really practical to scroll the
    headings in line with the decodes.
    >
    > 73,
    > Ton PA0TBR
    >
    73
    Bill
    G4WJS.


------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
wsjt-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wsjt-devel

Reply via email to