Ignore:
Timestamp:
2009-01-09T22:11:24+01:00 (15 years ago)
Author:
ulfl
Message:

Improve panels on the right side:
a) add a normal/minimized display mechanism, with "triangle icon"
b) display number of active items in title
c) show title bold if panel has "active items"
d) add close "X" button

(b and c currently not implemented in the various plugins - but easy to do so)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/SelectionListDialog.java

    r1195 r1228  
    262262                selectionHistory.removeLast();
    263263        }
     264       
     265        int ways = 0;
     266        int nodes = 0;
     267        int relations = 0;
     268        for (OsmPrimitive o : newSelection) {
     269            if (o instanceof Way)
     270                ways++;
     271            else if (o instanceof Node)
     272                nodes++;
     273            else if (o instanceof Relation)
     274                relations++;
     275        }
     276
     277        if( (nodes+ways+relations) != 0) {
     278            setTitle(tr("Selection: Rel.: {0} / Ways: {1} / Nodes: {2}", relations, ways, nodes), true);
     279        } else {
     280            setTitle(tr("Selection"), false);
     281        }
    264282    }
    265283
Note: See TracChangeset for help on using the changeset viewer.