Ignore:
Timestamp:
2011-11-20T18:08:10+01:00 (12 years ago)
Author:
bastiK
Message:

history panel: new column indicating CT status of the user

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/history/VersionTableColumnModel.java

    r4598 r4601  
    44import static org.openstreetmap.josm.tools.I18n.tr;
    55
     6import javax.swing.SwingConstants;
    67import javax.swing.table.DefaultTableColumnModel;
    78import javax.swing.table.TableCellRenderer;
    89import javax.swing.table.TableColumn;
     10
    911/**
    1012 * The {@see TableColumnModel} for the table with the list of versions
     
    1416    protected void createColumns() {
    1517        TableColumn col = null;
    16         TableCellRenderer renderer = new VersionTableCellRenderer();
    1718        VersionTable.RadioButtonRenderer bRenderer = new VersionTable.RadioButtonRenderer();
    1819
    19         // column 0 - Reverence
     20        // column 0 - Version
    2021        col = new TableColumn(0);
     22        /* translation note: 3 letter abbr. for "Version" */
     23        col.setHeaderValue(tr("Ver"));
     24        col.setCellRenderer(new VersionTable.AlignedRenderer(SwingConstants.CENTER));
     25        col.setResizable(false);
     26        addColumn(col);
     27        // column 1 - Reverence
     28        col = new TableColumn(1);
     29        col.setHeaderValue(tr("A"));
    2130        col.setCellRenderer(bRenderer);
    2231        col.setCellEditor(new VersionTable.RadioButtonEditor());
    23         col.setMaxWidth(1);
     32        col.setMaxWidth(18);
    2433        col.setResizable(false);
    2534        addColumn(col);
    26         // column 1 - Current
    27         col = new TableColumn(1);
     35        // column 2 - Current
     36        col = new TableColumn(2);
     37        col.setHeaderValue(tr("B"));
    2838        col.setCellRenderer(bRenderer);
    2939        col.setCellEditor(new VersionTable.RadioButtonEditor());
    30         col.setMaxWidth(1);
     40        col.setPreferredWidth(18);
    3141        col.setResizable(false);
    3242        addColumn(col);
    33         // column 2 - Rest
    34         col = new TableColumn(2);
    35         col.setHeaderValue(tr("Version"));
    36         col.setCellRenderer(renderer);
     43        // column 3 - CT state
     44        col = new TableColumn(3);
     45        /* translation note: short for "Contributor Terms" */
     46        col.setHeaderValue(tr("CT"));
     47        col.setCellRenderer(new VersionTable.LabelRenderer());
     48        col.setPreferredWidth(22);
     49        col.setResizable(false);
     50        addColumn(col);
     51        // column 4 - Date
     52        col = new TableColumn(4);
     53        col.setHeaderValue(tr("Date"));
     54        col.setResizable(false);
     55        addColumn(col);
     56        // column 5 - User
     57        col = new TableColumn(5);
     58        col.setHeaderValue(tr("User"));
     59        col.setResizable(false);
    3760        addColumn(col);
    3861    }
Note: See TracChangeset for help on using the changeset viewer.