SearchAction.java
=================
|
old
|
new
|
|
| 304 | 304 | JCheckBox allElements = new JCheckBox(tr("all objects"), initialValues.allElements); |
| 305 | 305 | allElements.setToolTipText(tr("Also include incomplete and deleted objects in search.")); |
| 306 | 306 | JCheckBox addOnToolbar = new JCheckBox(tr("add toolbar button"), false); |
| | 307 | addOnToolbar.setToolTipText(tr("Add a button with this search expression to the toolbar.")); |
| 307 | 308 | |
| 308 | 309 | JRadioButton standardSearch = new JRadioButton(tr("standard"), !initialValues.regexSearch && !initialValues.mapCSSSearch); |
| 309 | 310 | JRadioButton regexSearch = new JRadioButton(tr("regular expression"), initialValues.regexSearch); |
| … |
… |
|
| 321 | 322 | selectionSettings.add(inSelection, GBC.eop()); |
| 322 | 323 | |
| 323 | 324 | JPanel additionalSettings = new JPanel(new GridBagLayout()); |
| 324 | | additionalSettings.setBorder(BorderFactory.createTitledBorder(tr("Additional settings"))); |
| | 325 | additionalSettings.setBorder(BorderFactory.createTitledBorder(tr("Options"))); |
| 325 | 326 | additionalSettings.add(caseSensitive, GBC.eol().anchor(GBC.WEST).fill(GBC.HORIZONTAL)); |
| 326 | 327 | |
| 327 | 328 | JPanel left = new JPanel(new GridBagLayout()); |
| … |
… |
|
| 471 | 472 | |
| 472 | 473 | private static JPanel buildHintsSection(HistoryComboBox hcbSearchString) { |
| 473 | 474 | JPanel hintPanel = new JPanel(new GridBagLayout()); |
| 474 | | hintPanel.setBorder(BorderFactory.createTitledBorder(tr("Search hints"))); |
| | 475 | hintPanel.setBorder(BorderFactory.createTitledBorder(tr("Hints"))); |
| 475 | 476 | |
| 476 | 477 | hintPanel.add(new SearchKeywordRow(hcbSearchString) |
| 477 | 478 | .addTitle(tr("basics")) |
| 478 | 479 | .addKeyword(tr("Baker Street"), null, tr("''Baker'' and ''Street'' in any key")) |
| 479 | 480 | .addKeyword(tr("\"Baker Street\""), "\"\"", tr("''Baker Street'' in any key")) |
| 480 | 481 | .addKeyword("<i>key</i>:<i>valuefragment</i>", null, |
| 481 | | tr("''valuefragment'' anywhere in ''key''"), "name:str matches name=Bakerstreet") |
| | 482 | tr("''valuefragment'' anywhere in ''key''"), tr("name:str matches name=Bakerstreet")) |
| 482 | 483 | .addKeyword("-<i>key</i>:<i>valuefragment</i>", null, tr("''valuefragment'' nowhere in ''key''")), |
| 483 | 484 | GBC.eol()); |
| 484 | 485 | hintPanel.add(new SearchKeywordRow(hcbSearchString) |
| … |
… |
|
| 491 | 492 | .addKeyword("\"key\"=\"value\"", "\"\"=\"\"", |
| 492 | 493 | tr("to quote operators.<br>Within quoted strings the <b>\"</b> and <b>\\</b> characters need to be escaped " + |
| 493 | 494 | "by a preceding <b>\\</b> (e.g. <b>\\\"</b> and <b>\\\\</b>)."), |
| | 495 | tr("\"Baker Street\""), |
| 494 | 496 | "\"addr:street\""), |
| 495 | 497 | GBC.eol().anchor(GBC.CENTER)); |
| 496 | 498 | hintPanel.add(new SearchKeywordRow(hcbSearchString) |
| 497 | 499 | .addTitle(tr("combinators")) |
| 498 | | .addKeyword("<i>expr</i> <i>expr</i>", null, tr("logical and (both expressions have to be satisfied)")) |
| | 500 | .addKeyword("<i>expr</i> <i>expr</i>", null, tr("logical and (both expressions have to be satisfied)"), |
| | 501 | tr("Baker Street")) |
| 499 | 502 | .addKeyword("<i>expr</i> | <i>expr</i>", "| ", tr("logical or (at least one expression has to be satisfied)")) |
| 500 | 503 | .addKeyword("<i>expr</i> OR <i>expr</i>", "OR ", tr("logical or (at least one expression has to be satisfied)")) |
| 501 | 504 | .addKeyword("-<i>expr</i>", null, tr("logical not")) |
| … |
… |
|
| 519 | 522 | GBC.eol().anchor(GBC.CENTER)); |
| 520 | 523 | hintPanel.add(new SearchKeywordRow(hcbSearchString) |
| 521 | 524 | .addTitle(tr("metadata")) |
| 522 | | .addKeyword("user:", "user:", tr("objects changed by user", "user:anonymous")) |
| 523 | | .addKeyword("id:", "id:", tr("objects with given ID"), "id:0 (new objects)") |
| 524 | | .addKeyword("version:", "version:", tr("objects with given version"), "version:0 (objects without an assigned version)") |
| | 525 | .addKeyword("user:", "user:", tr("objects changed by user"), tr("user:anonymous")) |
| | 526 | .addKeyword("id:", "id:", tr("objects with given ID"), tr("id:0 (new objects)")) |
| | 527 | .addKeyword("version:", "version:", tr("objects with given version"), tr("version:0 (objects without an assigned version)")) |
| 525 | 528 | .addKeyword("changeset:", "changeset:", tr("objects with given changeset ID"), |
| 526 | | "changeset:0 (objects without an assigned changeset)") |
| | 529 | tr("changeset:0 (objects without an assigned changeset)")) |
| 527 | 530 | .addKeyword("timestamp:", "timestamp:", tr("objects with last modification timestamp within range"), "timestamp:2012/", |
| 528 | 531 | "timestamp:2008/2011-02-04T12"), |
| 529 | 532 | GBC.eol()); |