Skip to content

Interface customization: menus and toolbars#10863

Open
selmaVH1 wants to merge 1 commit intoqgis:masterfrom
selmaVH1:menu_customization
Open

Interface customization: menus and toolbars#10863
selmaVH1 wants to merge 1 commit intoqgis:masterfrom
selmaVH1:menu_customization

Conversation

@selmaVH1
Copy link
Copy Markdown
Collaborator

fixes #10685

Copy link
Copy Markdown
Collaborator

@DelazJ DelazJ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the update @selmaVH1
Well, I find the UX not really obvious and will try to open discussion or issues in code repo. Meanwhile, something I miss here is that we need to stress that only Menus and Toolbars can be expanded.

button. To populate it with actions, open the action panel by clicking the
|listActions| button, search for the desired actions and drag and drop them onto
the user-defined menu or toolbar in the customization tree. Items within user-defined
toolbars and menus can be reordered using drag and drop.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here, I'm unable to reorder the items in a user-defined toolbar. The single option I have is to remove the item and drag it again, now to the expected place. Trying to select and drag a custom item simply selects adjacent items in the tree

* a **Toolbar**: the whole bar or some of its icons
* or any **widget** from any dialog in QGIS: label, button, combobox...

In addition to showing or hiding existing interface elements, you can also create
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO this block about adding new menu/toolbar should be one paragraph down. The |select| tool is about hiding/showing items in the dialog, i.e., still the same topic as above

* or any **widget** from any dialog in QGIS: label, button, combobox...

In addition to showing or hiding existing interface elements, you can also create
user-defined toolbars and menus. To do so, select the :guilabel:`Menus` or
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we go with numbered list here, to clearly show the different steps and be more verbose when appropriate?


In addition to showing or hiding existing interface elements, you can also create
user-defined toolbars and menus. To do so, select the :guilabel:`Menus` or
:guilabel:`Toolbars` item in the customization tree and click the |add| :sup:`Add a user defined menu or toolbar`
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is also possible from a right-click --> Add user item. a probably more meaningful, contextual label would be better

toolbars and menus can be reordered using drag and drop.

To remove a user-defined toolbar or menu, select it and click the |deleteSelected|
:sup:`Delete selected item` button.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
:sup:`Delete selected item` button.
:sup:`Delete selected items` button.

Also accessible from right-click with cryptic "Delete user item"

changes. This configuration becomes the one used by default by QGIS at the next startup.

The modifications can also be saved in a ``.ini`` file using |fileSave|
The modifications can also be saved in a ``.xml`` file using |fileSave|
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The modifications can also be saved in a ``.xml`` file using |fileSave|
The modifications can also be saved in a :file`.xml` file using |fileSave|

:sup:`Save To File` button. This is a handy way to share a common QGIS
interface among multiple users. Just click on |fileOpen| :sup:`Load from File`
from the destination computer in order to import the ``.ini`` file.
from the destination computer in order to import the ``.xml`` file.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
from the destination computer in order to import the ``.xml`` file.
from the destination computer in order to import the :file:`.xml` file.

Enabled` variable under :menuselection:`Settings --> Options` menu,
:guilabel:`Advanced` tab (see the :ref:`warning <optionsadvanced>`).

In most cases, you need to restart QGIS in order to have the change applied.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this still true?

@@ -2439,10 +2449,10 @@
Once you setup your configuration, click :guilabel:`Apply` or :guilabel:`OK` to validate your
changes. This configuration becomes the one used by default by QGIS at the next startup.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can mention that "Reset" button undoes changes done in the dialog since the last saved/applied configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create user defined ToolBar and Menu (Request in QGIS)

2 participants