UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    tedit development and design discussion

    Scheduled Pinned Locked Moved App Development
    tediteditorappdevelopmentfeatures
    200 Posts 13 Posters 46.5k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • danfroD Offline
        danfro @arubislander
        last edited by

        @arubislander definitely possible, but... πŸ˜‰ If we later do a read only mode, the lock/locked system icon would be what I would use for that. Also the current lock sticks out, so it is not mistaken for a button. Thats why I kept it so far.

        But sure, it doesn't fit our UI scheme. I will think about that. Maybe I have an idea. Or someone else has got one, then please share.

        danfroD 1 Reply Last reply Reply Quote 0
        • danfroD Offline
          danfro @danfro
          last edited by danfro

          @danfro Forgot to add, the padlock indicates that the file is encrypted. Not related to the edit area.

          arubislanderA 1 Reply Last reply Reply Quote 0
          • arubislanderA Offline
            arubislander @danfro
            last edited by

            @danfro said in tedit development and design discussion:

            the padlock indicates that the file is encrypted. Not related to the edit area.

            Ah, that makes sense.

            πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
            Happily running Ubuntu Touch
            Google Pixel 3a (20.04 DEV)
            JingPad (24.04 preview)
            Meizu Pro 5 (16.04 DEV)

            danfroD 1 Reply Last reply Reply Quote 0
            • danfroD Offline
              danfro @arubislander
              last edited by

              @arubislander Maybe this is better. A smaller padlock and one additional button in the toolbar.

              d1deeece-5693-46cb-bcf6-50c49c1e367c-grafik.png

              arubislanderA D 2 Replies Last reply Reply Quote 0
              • arubislanderA Offline
                arubislander @danfro
                last edited by arubislander

                @danfro that looks very good!

                πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
                Happily running Ubuntu Touch
                Google Pixel 3a (20.04 DEV)
                JingPad (24.04 preview)
                Meizu Pro 5 (16.04 DEV)

                1 Reply Last reply Reply Quote 0
                • D Offline
                  domubpkm @danfro
                  last edited by

                  @danfro Possible bug on the exit (X) function.

                  Two scenarios:

                  Opening tedit ---> do not type any text ---> exit function ok.

                  Opening tedit ---> type a text then delete it completely ---> tedit offers to save.

                  Is this wanted?

                  danfroD 1 Reply Last reply Reply Quote 0
                  • danfroD Offline
                    danfro @domubpkm
                    last edited by

                    @domubpkm said in tedit development and design discussion:

                    Opening tedit ---> type a text then delete it completely ---> tedit offers to save.

                    A TextArea doesn't have an intelligent change detection. So it doesn't "know" if content has been changed. It can't compare content. As a workaround, as soon as any text is entered, it is marked as "changed" by tedit. So yes, this is currently expected behaviour. Although I agree, not perfect.

                    My only idea would be to constantly keep reading a copy and comparing that. But I don't think that would be good for performance and very reliable. So I am afraid there is not much I can do about it.

                    D jezekJ 2 Replies Last reply Reply Quote 0
                    • D Offline
                      domubpkm @danfro
                      last edited by

                      @danfro said in tedit development and design discussion:

                      My only idea would be to constantly keep reading a copy and comparing that. But I don't think that would be good for performance and very reliable. So I am afraid there is not much I can do about it

                      Just an idea : add option 'tedit exit without saving' in saving' window.

                      danfroD 1 Reply Last reply Reply Quote 0
                      • danfroD Offline
                        danfro @domubpkm
                        last edited by

                        @domubpkm said in tedit development and design discussion:

                        Just an idea : add option 'tedit exit without saving' in saving' window.

                        You are right. I didn't cover this option yet. I assumed the user always wants to save = not loose data. But of course sometimes it is fine to drop changes. Thanks for testing and for the feedback.

                        D 2 Replies Last reply Reply Quote 0
                        • D Offline
                          domubpkm @danfro
                          last edited by

                          @danfro screenshot20240413_205304283.png screenshot20240413_205336582.png

                          Particularly in these two cases, the contrast of the options line is a little weak in my opinion.

                          danfroD 1 Reply Last reply Reply Quote 0
                          • danfroD Offline
                            danfro @domubpkm
                            last edited by

                            @domubpkm Hmm, true the contrast is not ideal. I will need to investigate if we can set this color. But if there is no easy way, I may need to leave this for another release though. Good catch, I missed that.

                            1 Reply Last reply Reply Quote 0
                            • D Offline
                              domubpkm @danfro
                              last edited by

                              @danfro Tested last built. That's great for me. screenshot20240414_014956759.png
                              But, since 'save as' output is still active, perhaps a more appropriate title would be 'exit choice'?

                              danfroD 1 Reply Last reply Reply Quote 0
                              • jezekJ Offline
                                jezek @danfro
                                last edited by jezek

                                @danfro said in tedit development and design discussion:

                                My only idea would be to constantly keep reading a copy and comparing that. But I don't think that would be good for performance and very reliable. So I am afraid there is not much I can do about it.

                                Pardon my intrusion.

                                Just a suggestion. You don't need to keep the whole text. You can make and store just a hash of the original text (before edited) and compare to a hash of current text (edited) at exit (to see if save is needed).

                                jEzEk

                                danfroD 1 Reply Last reply Reply Quote 2
                                • D Offline
                                  domubpkm
                                  last edited by

                                  @danfro The copy all function seems to work from the horizontal options line, but not the paste function: I get a white screen after paste.

                                  danfroD 1 Reply Last reply Reply Quote 0
                                  • danfroD Offline
                                    danfro @domubpkm
                                    last edited by

                                    @domubpkm Fixed now. Forgot to delete one line. Thanks.

                                    1 Reply Last reply Reply Quote 0
                                    • danfroD Offline
                                      danfro @domubpkm
                                      last edited by

                                      @domubpkm I rephrased the dialog a bit. Should be better now.

                                      1 Reply Last reply Reply Quote 0
                                      • danfroD Offline
                                        danfro @jezek
                                        last edited by

                                        @jezek I never used hashes to compare anything, but sounds like a good idea. Thanks for the suggestion. Although this may need to wait for a future version too.

                                        1 Reply Last reply Reply Quote 0
                                        • D Offline
                                          domubpkm
                                          last edited by

                                          @danfro Another suggestion (personal opinion) for a future update: the order of the options icons, whether in the vertical main menu or the horizontal menu, could be revised. I read from left to right and top to bottom.
                                          On this principle: I will put this order: for the icons mentioned: select all, copy, paste, empty the area, empty the clipboard..

                                          danfroD 2 Replies Last reply Reply Quote 0
                                          • danfroD Offline
                                            danfro @domubpkm
                                            last edited by

                                            @domubpkm So far I kept the exiting order from the menu to the toolbar.
                                            The order in the menu seems to make sense to me. First file actions (new, open, save, save as), then text area actions (undo, redo, select all, clear all), followed by clipboard actions (paste, copy, clear) and at the end special actions. But of course that is grouped by kind of internal functionality. This may not be obvious to the user.

                                            Your suggested order would mix clipboard and text area options, but I can see some pattern from a users point of view. Maybe we can get some more opinions here from other users. The change is easily done...

                                            1 Reply Last reply Reply Quote 0
                                            • danfroD Offline
                                              danfro @domubpkm
                                              last edited by

                                              @domubpkm I decided to do the button reordering. I also moved the exit button to the right top corner. That is where most other (desktop) apps have the close X button. And I fixed the colors of the icons on bad contrast as reported above. It would be great if you could please give the last build another test. If things work fine, I would consider this ready to be released.

                                              D 1 Reply Last reply Reply Quote 0
                                              • First post
                                                Last post