some help
authorgc <gc>
Sun, 24 Feb 2008 16:50:23 +0000 (16:50 +0000)
committergc <gc>
Sun, 24 Feb 2008 16:50:23 +0000 (16:50 +0000)
bin/booh-classifier

index 5b545abcdaa561f85f9a953c240f0b997a0459f6..ad2e942ecfd59014c80f1863af61b975de7a8501 100644 (file)
@@ -1147,7 +1147,7 @@ def execute
     dialog.title = utf8(_("Booh message"))
 
     vb1 = Gtk::VBox.new(false, 5)
     dialog.title = utf8(_("Booh message"))
 
     vb1 = Gtk::VBox.new(false, 5)
-    label = Gtk::Label.new.set_markup(utf8(_("You're about to <b>execute</b> actions on the marked images.\nPlease confirm below the actions. This operation is not undoable!")))
+    label = Gtk::Label.new.set_markup(utf8(_("You're about to <b>execute</b> actions on the marked images.\nPlease confirm below the actions. You cannot undo this operation!")))
     vb1.pack_start(label, false, false)
 
     table = Gtk::Table.new(0, 0, false)
     vb1.pack_start(label, false, false)
 
     table = Gtk::Table.new(0, 0, false)
@@ -1536,6 +1536,9 @@ def create_menubar
     
     helpmenu = Gtk::MenuItem.new(utf8(_("_Help")))
     helpsubmenu = Gtk::Menu.new
     
     helpmenu = Gtk::MenuItem.new(utf8(_("_Help")))
     helpsubmenu = Gtk::Menu.new
+    helpsubmenu.append(howto = Gtk::ImageMenuItem.new(Gtk::Stock::HELP))
+    helpsubmenu.append(speed = Gtk::ImageMenuItem.new(utf8(_("Speedup: key shortcuts"))))
+    speed.image = Gtk::Image.new("#{$FPATH}/images/stock-info-16.png")
     helpsubmenu.append(tutos = Gtk::ImageMenuItem.new(utf8(_("Online tutorials (opens a web-browser)"))))
     tutos.image = Gtk::Image.new("#{$FPATH}/images/stock-web-16.png")
     helpsubmenu.append(Gtk::SeparatorMenuItem.new)
     helpsubmenu.append(tutos = Gtk::ImageMenuItem.new(utf8(_("Online tutorials (opens a web-browser)"))))
     tutos.image = Gtk::Image.new("#{$FPATH}/images/stock-web-16.png")
     helpsubmenu.append(Gtk::SeparatorMenuItem.new)
@@ -1543,6 +1546,41 @@ def create_menubar
     helpmenu.set_submenu(helpsubmenu)
     mb.append(helpmenu)
 
     helpmenu.set_submenu(helpsubmenu)
     mb.append(helpmenu)
 
+    howto.signal_connect('activate') {
+        show_popup($main_window, utf8(_("<span size='large' weight='bold'>Help</span>
+
+1. Open a directory with <span foreground='darkblue'>File/Open</span>; the classifier will scan it (including subdirectories) and
+show thumbnails for all images and videos at the bottom.
+
+2. You can then navigate through images with the <span foreground='darkblue'>Left/Right</span> keyboard keys, or by <span foreground='darkblue'>clicking</span>
+on thumbnails.
+
+3. You may associate a <span foreground='darkblue'>label</span> to each thumbnail. Either hit the <span foreground='darkblue'>Delete</span> key to associate
+the built-in <i>to remove</i> label, or hit any alphabetical key to associate a label you define.
+The first time you hit a key without any label associated, a popup will ask for the full
+name of this label, and what color you want. To clear the current label, hit the <span foreground='darkblue'>Space</span> key.
+
+4. To help you better view what thumbnails are associated to your labels, you may <span foreground='darkblue'>hide</span>
+some of them by unchecking the labels checkboxes on the left.
+
+5. Once you're finished reviewing all thumbnails, use <span foreground='darkblue'>File/Execute</span> to execute the desired
+actions on labels.
+")), { :pos_centered => true, :not_transient => true })
+    }
+    speed.signal_connect('activate') {
+        show_popup($main_window, utf8(_("<span size='large' weight='bold'>Key shortcuts</span>
+
+<span foreground='darkblue'>Left/Right</span>: move left and right in images
+<span foreground='darkblue'>Enter</span>: 'view' current image: for images, display EXIF data; for videos, play it
+<span foreground='darkblue'>Alt-Left/Right</span>: rotate current image clockwise/counter-clockwise
+<span foreground='darkblue'>Delete</span>: assign the 'to remove' label on current image
+<span foreground='darkblue'>Space</span>: clear any label on current image
+<span foreground='darkblue'>Control-z</span>: undo
+<span foreground='darkblue'>Control-r</span>: redo
+
+Any alphabetical key will assign (or popup for) the associated label on current image.
+")), { :pos_centered => true, :not_transient => true })
+    }
     tutos.signal_connect('activate') { open_url('http://booh.org/tutorial.html') }
     about.signal_connect('activate') { call_about }
 
     tutos.signal_connect('activate') { open_url('http://booh.org/tutorial.html') }
     about.signal_connect('activate') { call_about }