diff options
author | Rafael Lima <rafael.palma.lima@gmail.com> | 2023-01-11 14:46:07 +0000 |
---|---|---|
committer | Rafael Lima <rafael.palma.lima@gmail.com> | 2023-01-16 11:28:35 +0000 |
commit | d466df5bc220eb80b8a51ff64507de881b938ed3 (patch) | |
tree | 4861946cb4571e5ef05f3bf26144acb6c2f92a6a /basctl/source/inc | |
parent | 465ec8b275f2685a31ee42ca1447a5d44d18a227 (diff) |
tdf#106731 Warn user that a module/dialog is read-only in Basic IDE
As discussed in the ticket the Basic IDE does not make it clear that the currently opened module is read-only, which can cause confusion to the user, since they may be pressing keys and seeing no result.
With this patch the IDE clarifies that the module/dialog is read-only in two ways:
1) In the status bar the string "(Read-only)" is added after the module/dialog name
2) When a module/dialog is opened an infobar is shown warning that it is read-only.
3) In a module, if the user closed the infobar and tries to edit the code, the infobar is shown again.
Change-Id: I15197c4316bb2ed19e54be0c33f4fb61b5bbd862
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145307
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Diffstat (limited to 'basctl/source/inc')
-rw-r--r-- | basctl/source/inc/bastypes.hxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/basctl/source/inc/bastypes.hxx b/basctl/source/inc/bastypes.hxx index 79229f9cb24a..4bc92481f3ca 100644 --- a/basctl/source/inc/bastypes.hxx +++ b/basctl/source/inc/bastypes.hxx @@ -211,6 +211,7 @@ public: virtual void SetReadOnly (bool bReadOnly); virtual bool IsReadOnly(); + void ShowReadOnlyInfoBar(); int GetStatus() const { return nStatus; } void SetStatus(int n) { nStatus = n; } |