diff --git a/python/articles/4.Adding_entry_to_the_extension_menu.md b/python/articles/4.Adding_entry_to_the_extension_menu.md index 8db2f44..b121fb1 100644 --- a/python/articles/4.Adding_entry_to_the_extension_menu.md +++ b/python/articles/4.Adding_entry_to_the_extension_menu.md @@ -3,11 +3,11 @@ Hello, in this chapter I will show you how to add an entry to the extension menu. The extension menu is located at `Tools`: `Extensions`. -![Extension menu](../images/Tutorial4/ExtensionMenu.png) +![Extension menu](../images/py_tutorial4/ExtensionMenu.png) In this example extension you will see popup [message box](https://doc.qt.io/qtforpython/PySide2/QtWidgets/QMessageBox.html) with 'Tutorial 4 - Message from extension menu' after you click on the menu entry. -![Extension menu](../images/Tutorial4/MessageBox.png) +![Extension menu](../images/py_tutorial4/MessageBox.png) To add an entry to extension menu the `populateExtensionsMenu(self, menu)` method has to be implemented in plugin class. The reason can be found in the [source code](https://github.com/KDE/falkon/blob/master/src/lib/plugins/plugininterface.h) @@ -30,7 +30,7 @@ The parameter menu is the menu into which the new entry / action will be added. msgBox.exec_() ``` -The full code can be found at [extensions/Tutorial4](../extensions/Tutorial4) +The full code can be found at [extensions/Tutorial4](../extensions/py_tutorial4) **Note:** Always create an instance of Action in `populateExtensionsMenu`. It will be deleted / destroyed when the menu is hidden. diff --git a/python/extensions/Tutorial3/TutorialButton.py b/python/extensions/py_tutorial3/TutorialButton.py similarity index 100% rename from python/extensions/Tutorial3/TutorialButton.py rename to python/extensions/py_tutorial3/TutorialButton.py diff --git a/python/extensions/Tutorial3/__init__.py b/python/extensions/py_tutorial3/__init__.py similarity index 100% rename from python/extensions/Tutorial3/__init__.py rename to python/extensions/py_tutorial3/__init__.py diff --git a/python/extensions/Tutorial3/metadata.desktop b/python/extensions/py_tutorial3/metadata.desktop similarity index 100% rename from python/extensions/Tutorial3/metadata.desktop rename to python/extensions/py_tutorial3/metadata.desktop diff --git a/python/extensions/Tutorial4/__init__.py b/python/extensions/py_tutorial4/__init__.py similarity index 100% rename from python/extensions/Tutorial4/__init__.py rename to python/extensions/py_tutorial4/__init__.py diff --git a/python/extensions/Tutorial4/metadata.desktop b/python/extensions/py_tutorial4/metadata.desktop similarity index 100% rename from python/extensions/Tutorial4/metadata.desktop rename to python/extensions/py_tutorial4/metadata.desktop diff --git a/python/images/Tutorial4/ExtensionMenu.png b/python/images/py_tutorial4/ExtensionMenu.png similarity index 100% rename from python/images/Tutorial4/ExtensionMenu.png rename to python/images/py_tutorial4/ExtensionMenu.png diff --git a/python/images/Tutorial4/MessageBox.png b/python/images/py_tutorial4/MessageBox.png similarity index 100% rename from python/images/Tutorial4/MessageBox.png rename to python/images/py_tutorial4/MessageBox.png diff --git a/qml/articles/3.Adding_a_button_to_the_toolbar.md b/qml/articles/3.Adding_a_button_to_the_toolbar.md index 2cc6b43..4baf834 100644 --- a/qml/articles/3.Adding_a_button_to_the_toolbar.md +++ b/qml/articles/3.Adding_a_button_to_the_toolbar.md @@ -72,7 +72,7 @@ The example code will add a button to main toolbar and statusbar. When user clicks on the button the small white rectangle will show up and the number displayed on the badge will increase. -![Toolbar button with badge and empty popup](../images/tutorial3/toolbar_button_with_badge_and_popup.png) +![Toolbar button with badge and empty popup](../images/qml_tutorial3/toolbar_button_with_badge_and_popup.png) ### Code The code for this example can be found at diff --git a/qml/articles/4.Adding_entry_to_the_web_context_menu.md b/qml/articles/4.Adding_entry_to_the_web_context_menu.md index cb3d846..bc06d58 100644 --- a/qml/articles/4.Adding_entry_to_the_web_context_menu.md +++ b/qml/articles/4.Adding_entry_to_the_web_context_menu.md @@ -70,7 +70,7 @@ user invokes a context menu on the webpage at most 2 entries will be added. One will be added always and second one only if the object on which was clicked is an image. -![Populated context menu](../images/tutorial4/populated_context_menu.png) +![Populated context menu](../images/qml_tutorial4/populated_context_menu.png) ### Code diff --git a/qml/articles/5.Using_notifications.md b/qml/articles/5.Using_notifications.md index 766a2f2..5e020ff 100644 --- a/qml/articles/5.Using_notifications.md +++ b/qml/articles/5.Using_notifications.md @@ -29,7 +29,7 @@ Either system icon or file provided by extension. The example code will add a button to main toolbar and statusbar. When user clicks on the button a notification will show up. -![Notification](../images/tutorial5/notification.png) +![Notification](../images/qml_tutorial5/notification.png) Keep in mind that the form and shape of my notifications can be different from yours. diff --git a/qml/articles/7.Adding_a_sidebar.md b/qml/articles/7.Adding_a_sidebar.md index 7e30669..9fce1f4 100644 --- a/qml/articles/7.Adding_a_sidebar.md +++ b/qml/articles/7.Adding_a_sidebar.md @@ -46,7 +46,7 @@ This example is ripped of from Falkon default "Hello Qml" extension with addition of a keyboard shortcut. (I am not gonna re-invent a wheel.) -![Window with sidebar and view menu](../images/tutorial7/sidebar_and_view_menu.png) +![Window with sidebar and view menu](../images/qml_tutorial7/sidebar_and_view_menu.png) ### Code The code for this example can be found at diff --git a/qml/articles/8.Extension_settings.md b/qml/articles/8.Extension_settings.md index 8d643fb..0bd6465 100644 --- a/qml/articles/8.Extension_settings.md +++ b/qml/articles/8.Extension_settings.md @@ -84,7 +84,7 @@ The setting window contains an image and a checkbox. This example is partialy ripped of from Falkon example extension. -![Window with sidebar and view menu](../images/tutorial8/settings_window.png) +![Window with sidebar and view menu](../images/qml_tutorial8/settings_window.png) ### Code The code for this example can be found at diff --git a/qml/articles/9.Falkon_windows.md b/qml/articles/9.Falkon_windows.md index 559977d..880789d 100644 --- a/qml/articles/9.Falkon_windows.md +++ b/qml/articles/9.Falkon_windows.md @@ -82,7 +82,7 @@ The example will create a sidebar in which will be a list of currently open Falkon windows with information and buttons to create and remove windows. -![Windows list in the sidebar](../images/tutorial9/sidebar_windows_list.png) +![Windows list in the sidebar](../images/qml_tutorial9/sidebar_windows_list.png) ### Code The code for this example can be found at diff --git a/qml/images/tutorial3/toolbar_button_with_badge_and_popup.png b/qml/images/qml_tutorial3/toolbar_button_with_badge_and_popup.png similarity index 100% rename from qml/images/tutorial3/toolbar_button_with_badge_and_popup.png rename to qml/images/qml_tutorial3/toolbar_button_with_badge_and_popup.png diff --git a/qml/images/tutorial4/populated_context_menu.png b/qml/images/qml_tutorial4/populated_context_menu.png similarity index 100% rename from qml/images/tutorial4/populated_context_menu.png rename to qml/images/qml_tutorial4/populated_context_menu.png diff --git a/qml/images/tutorial5/notification.png b/qml/images/qml_tutorial5/notification.png similarity index 100% rename from qml/images/tutorial5/notification.png rename to qml/images/qml_tutorial5/notification.png diff --git a/qml/images/tutorial7/sidebar_and_view_menu.png b/qml/images/qml_tutorial7/sidebar_and_view_menu.png similarity index 100% rename from qml/images/tutorial7/sidebar_and_view_menu.png rename to qml/images/qml_tutorial7/sidebar_and_view_menu.png diff --git a/qml/images/tutorial8/settings_window.png b/qml/images/qml_tutorial8/settings_window.png similarity index 100% rename from qml/images/tutorial8/settings_window.png rename to qml/images/qml_tutorial8/settings_window.png diff --git a/qml/images/tutorial9/sidebar_windows_list.png b/qml/images/qml_tutorial9/sidebar_windows_list.png similarity index 100% rename from qml/images/tutorial9/sidebar_windows_list.png rename to qml/images/qml_tutorial9/sidebar_windows_list.png