Mercurial > cgi-bin > hgweb.cgi > ClipMan
comparison src/name/blackcap/clipman/SearchDialog.kt @ 31:0c6c18a733b7
Compiles, new menu still a mess.
author | David Barts <n5jrn@me.com> |
---|---|
date | Thu, 30 Jan 2020 16:01:51 -0800 |
parents | c4f53bc01732 |
children | 08eaae2aaf76 |
comparison
equal
deleted
inserted
replaced
30:0e88c6bed11e | 31:0c6c18a733b7 |
---|---|
6 import java.awt.Color | 6 import java.awt.Color |
7 import java.awt.Toolkit | 7 import java.awt.Toolkit |
8 import java.awt.event.ActionEvent | 8 import java.awt.event.ActionEvent |
9 import java.awt.event.ActionListener | 9 import java.awt.event.ActionListener |
10 import javax.swing.* | 10 import javax.swing.* |
11 import javax.swing.border.* | |
12 import javax.swing.event.DocumentEvent | 11 import javax.swing.event.DocumentEvent |
13 import javax.swing.event.DocumentListener | 12 import javax.swing.event.DocumentListener |
14 | 13 |
15 class SearchDialog: JDialog(frame.v), ActionListener, DocumentListener { | 14 class SearchDialog: JDialog(frame.v), ActionListener, DocumentListener { |
16 /* the search term */ | 15 /* the search term */ |
56 return PasteboardQueue.Direction.BACKWARDS | 55 return PasteboardQueue.Direction.BACKWARDS |
57 } | 56 } |
58 throw RuntimeException("impossible button state!") | 57 throw RuntimeException("impossible button state!") |
59 } | 58 } |
60 | 59 |
61 /* standard spacing between elements (18 pixels = 1/4") and half that */ | 60 /* standard spacing between elements (10 pixels ≅ 1/7") and half that */ |
62 private val BW = 9 | 61 private val BW = 5 |
63 private val BW2 = 2 * BW | 62 private val BW2 = 10 |
64 | 63 |
65 /* where to begin searching from. unlike the other properties, this | 64 /* where to begin searching from. unlike the other properties, this |
66 one is read/write. null means to start from the beginning on | 65 one is read/write. null means to start from the beginning on |
67 forward searches, and from the end on backward searches (i.e. | 66 forward searches, and from the end on backward searches (i.e. |
68 search everything) */ | 67 search everything) */ |