diff --git a/help/C/figures/browse.png b/help/C/figures/browse.png deleted file mode 100644 index e72fc89..0000000 Binary files a/help/C/figures/browse.png and /dev/null differ diff --git a/help/C/figures/camera.png b/help/C/figures/camera.png deleted file mode 100644 index 6fe7727..0000000 Binary files a/help/C/figures/camera.png and /dev/null differ diff --git a/help/C/figures/file_chooser.png b/help/C/figures/file_chooser.png deleted file mode 100644 index a0f7226..0000000 Binary files a/help/C/figures/file_chooser.png and /dev/null differ diff --git a/help/C/figures/icon.png b/help/C/figures/icon.png deleted file mode 100644 index 36b89a2..0000000 Binary files a/help/C/figures/icon.png and /dev/null differ diff --git a/help/C/figures/libreoffice.png b/help/C/figures/libreoffice.png deleted file mode 100644 index 5563284..0000000 Binary files a/help/C/figures/libreoffice.png and /dev/null differ diff --git a/help/C/figures/main.png b/help/C/figures/main.png deleted file mode 100644 index 9f9caa2..0000000 Binary files a/help/C/figures/main.png and /dev/null differ diff --git a/help/C/figures/password_dialog.png b/help/C/figures/password_dialog.png deleted file mode 100644 index 4ee06f2..0000000 Binary files a/help/C/figures/password_dialog.png and /dev/null differ diff --git a/help/C/figures/pidgin.png b/help/C/figures/pidgin.png deleted file mode 100644 index 13056d4..0000000 Binary files a/help/C/figures/pidgin.png and /dev/null differ diff --git a/help/C/figures/select_from_stock.png b/help/C/figures/select_from_stock.png deleted file mode 100644 index 457de04..0000000 Binary files a/help/C/figures/select_from_stock.png and /dev/null differ diff --git a/help/C/figures/stock_browser.png b/help/C/figures/stock_browser.png deleted file mode 100644 index 95ec714..0000000 Binary files a/help/C/figures/stock_browser.png and /dev/null differ diff --git a/help/C/figures/take_a_photo.png b/help/C/figures/take_a_photo.png deleted file mode 100644 index 4d504c4..0000000 Binary files a/help/C/figures/take_a_photo.png and /dev/null differ diff --git a/help/C/index.page b/help/C/index.page deleted file mode 100644 index 4294574..0000000 --- a/help/C/index.page +++ /dev/null @@ -1,46 +0,0 @@ - - - - - Mugshot - The Mugshot help. - - Sean Davis - smd.seandavis@gmail.com - 2013 - - -

Creative Commons Attribution-Share Alike 3.0 Unported License

-
-
- - -<!-- This shows on the page in title font --> -<!-- the icon only shows when installed --> -<media type="image" mime="image/png" src="figures/icon.png">[icon]</media> -<app>Mugshot</app> Help - - -

Welcome to the Mugshot help guide. For a quick introduction into Mugshot's most basic features, visit the Getting Started with Mugshot page.

- -

Other help topics are grouped together into sections below. Enjoy using Mugshot!

- - -
- -Contents -
- - - -

- Your script or application looks better if it has help files similar to other applications in ubuntu. -

-

- Some people think that help files are only for apps that are difficult to use. -

-
- -
diff --git a/help/C/mugshot-quickstart.page b/help/C/mugshot-quickstart.page deleted file mode 100644 index cd5573a..0000000 --- a/help/C/mugshot-quickstart.page +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - Sean Davis - smd.seandavis@gmail.com - 2013 - - Get started with Mugshot - - -Getting Started -

Mugshot is a lightweight user configuration utility. It allows you to quickly configure your profile image in Linux and Pidgin, as well as your user details for your Linux user and LibreOffice.

- - - -

Once Mugshot launches, enter your user details, choose a profile image, and click Apply to save your changes.

- -

If you've installed and regularly use Pidgin and/or LibreOffice, you will then be prompted to update your settings, but this is entirely up to you.

- - - - - -
diff --git a/help/C/mugshot-take-a-picture.page b/help/C/mugshot-take-a-picture.page deleted file mode 100644 index 77764aa..0000000 --- a/help/C/mugshot-take-a-picture.page +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - Sean Davis - smd.seandavis@gmail.com - 2013 - - Take a picture with Mugshot - - -Taking a Picture -

One of the key features of Mugshot is the ability to easily choose a profile image, whether its from your camera (say "cheese!"), stock photos, or your picture library.

- - - -
-Using the Stock Browser - -

If stock user images are installed (/usr/share/pixmaps/faces), the Select from stock... option will be available in the image menu. Click this menu item to continue.

- - - -

Each of the stock photos will be loaded into the browser. Simply select the one you wish to use and click Apply. Note that the picture will not be saved until clicking the Apply button in the main application window.

- -
- -
-Using the File Browser - -

The stock browser is your typical file chooser dialog, with the addition of a preview window and cropping options. Since user images are square, Mugshot automatically crops images to the desired size. You can crop left (aligning to the left side of the image), center (centering the image), or right (aligning to the right side of the image.

- - - -

Once you are happy with your selection and crop settings, click Apply. Note that the picture will not be saved until clicking the Apply button in the main application window.

- -
- -
-Using a Camera - -

If your webcam is detected by Linux, and you have the necessary components installed (gstreamer1.0-plugins-good), the Capture from camera... option will be available in the image menu. Click this menu item to continue.

- - - -

The camera will then initialize, and the Record button will become available once the camera is ready. Simply click the record button to snap a photo. Try to position yourself in the middle of the frame as the photo will be cropped to a square and center-aligned.

- -

If you'd like to try again, just click the Retry button. Otherwise, click the Apply button to continue. Note that the picture will not be saved until clicking the Apply button in the main application window.

-
- -
diff --git a/mugshot_lib/CameraDialog.py b/mugshot_lib/CameraDialog.py index cfaf28e..7d170d7 100644 --- a/mugshot_lib/CameraDialog.py +++ b/mugshot_lib/CameraDialog.py @@ -19,7 +19,7 @@ from gi.repository import Gtk # pylint: disable=E0611 import logging logger = logging.getLogger('mugshot_lib') -from . helpers import get_builder, show_uri, get_help_uri +from . helpers import get_builder class CameraDialog(Gtk.Dialog): @@ -57,7 +57,3 @@ class CameraDialog(Gtk.Dialog): def on_btn_close_clicked(self, widget, data=None): """Destroy the dialog when closed.""" self.destroy() - - def on_btn_help_clicked(self, widget, data=None): - """Show the help dialog when Help is clicked.""" - show_uri(self, "ghelp:%s" % get_help_uri('preferences')) diff --git a/mugshot_lib/Window.py b/mugshot_lib/Window.py index 68da756..d5937a7 100644 --- a/mugshot_lib/Window.py +++ b/mugshot_lib/Window.py @@ -21,7 +21,7 @@ logger = logging.getLogger('mugshot_lib') import os -from . helpers import get_builder, show_uri, get_help_uri +from . helpers import get_builder, show_uri class Window(Gtk.Window): @@ -68,7 +68,7 @@ class Window(Gtk.Window): def on_help_activate(self, widget, data=None): """Show the Help documentation when Help is clicked.""" - show_uri(self, "ghelp:%s" % get_help_uri()) + show_uri(self, "http://wiki.smdavis.us/doku.php?id=mugshot-docs") def on_menu_camera_activate(self, widget, data=None): """Display the camera window for mugshot.""" diff --git a/mugshot_lib/helpers.py b/mugshot_lib/helpers.py index 9217afd..dbbe887 100644 --- a/mugshot_lib/helpers.py +++ b/mugshot_lib/helpers.py @@ -85,23 +85,6 @@ def set_up_logging(opts): lib_logger.setLevel(logging.DEBUG) -def get_help_uri(page=None): - """Get the URI to be used for Help.""" - # help_uri from source tree - default language - here = os.path.dirname(__file__) - help_uri = os.path.abspath(os.path.join(here, '..', 'help', 'C')) - - if not os.path.exists(help_uri): - # installed so use gnome help tree - user's language - help_uri = 'mugshot' - - # unspecified page is the index.page - if page is not None: - help_uri = '%s#%s' % (help_uri, page) - - return help_uri - - def show_uri(parent, link): """Open the URI.""" from gi.repository import Gtk # pylint: disable=E0611