1

Rename image and extension subfolders by category

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
Juraj Oravec 2022-04-27 22:49:06 +02:00
parent b3d062aad0
commit 77a28db48e
Signed by: SGOrava
GPG Key ID: 13660A3F1D9F093B
20 changed files with 9 additions and 9 deletions

View File

@ -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.

View File

Before

Width:  |  Height:  |  Size: 71 KiB

After

Width:  |  Height:  |  Size: 71 KiB

View File

Before

Width:  |  Height:  |  Size: 7.6 KiB

After

Width:  |  Height:  |  Size: 7.6 KiB

View File

@ -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

View File

@ -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

View File

@ -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.

View File

@ -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

View File

@ -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

View File

@ -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

View File

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

View File

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 27 KiB

View File

Before

Width:  |  Height:  |  Size: 8.6 KiB

After

Width:  |  Height:  |  Size: 8.6 KiB

View File

Before

Width:  |  Height:  |  Size: 89 KiB

After

Width:  |  Height:  |  Size: 89 KiB

View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB