changeset 52:7cf2788649a7

Added some tooltips
author Fox
date Fri, 25 Nov 2022 21:16:38 +0100
parents da84f5a332f0
children eed982f6d415
files src/junotu/TabColumns.java src/junotu/TabEdit.java src/junotu/TabSimpleSearch.java
diffstat 3 files changed, 17 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/junotu/TabColumns.java	Thu Nov 24 21:17:30 2022 +0100
+++ b/src/junotu/TabColumns.java	Fri Nov 25 21:16:38 2022 +0100
@@ -100,6 +100,8 @@
 	    );
 
 	    addCard.addActionListener(this);
+
+	    addCard.setToolTipText("Add card.");
 	    
 	}
 
@@ -223,6 +225,8 @@
 
 	addColumn.addActionListener(this);
 
+	addColumn.setToolTipText("Add column.");
+
 	/* TODO: DEBUG */
 	columnsNew();
 	
--- a/src/junotu/TabEdit.java	Thu Nov 24 21:17:30 2022 +0100
+++ b/src/junotu/TabEdit.java	Fri Nov 25 21:16:38 2022 +0100
@@ -43,6 +43,7 @@
 	    super();
 	    this.tag = tag;
 	    this.value = value;
+	    this.setToolTipText("Click to edit this tag. Use ':' to delimit name and value.");
 
 	    addActionListener(this);
 	    
@@ -177,6 +178,13 @@
 
 	registerKeyboardAction( this, KEY_ACTION_BACK, KeyStroke.getKeyStroke( KeyEvent.VK_ESCAPE, 0 ), WHEN_IN_FOCUSED_WINDOW );
 	registerKeyboardAction( this, KEY_ACTION_SAVE, KeyStroke.getKeyStroke( KeyEvent.VK_S, InputEvent.CTRL_DOWN_MASK ), WHEN_IN_FOCUSED_WINDOW );
+
+	title.setToolTipText("Card title.");
+	back.setToolTipText("Go back without saving. Can also use [ESC].");
+	delete.setToolTipText("Delete the card. There is no confirmation, nor going back.");
+	save.setToolTipText("Save and go back. Shift-click to save without exiting. Can also use [CTRL]+[S].");
+
+	addTag.setToolTipText("Add new tag.");
 	
     }
 
--- a/src/junotu/TabSimpleSearch.java	Thu Nov 24 21:17:30 2022 +0100
+++ b/src/junotu/TabSimpleSearch.java	Fri Nov 25 21:16:38 2022 +0100
@@ -64,8 +64,6 @@
 
 	scroll.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
 
-	search();
-
 	create.addActionListener(this);
 
 	field.getDocument().addDocumentListener(
@@ -93,6 +91,11 @@
 						);
 
 	registerKeyboardAction( this, KEY_ACTION_COMMIT, KeyStroke.getKeyStroke( KeyEvent.VK_S, InputEvent.CTRL_DOWN_MASK ), WHEN_IN_FOCUSED_WINDOW );
+
+	field.setToolTipText("Search query.");
+	create.setToolTipText("Create new card.");
+
+	search();
 	
     }