Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. ClearCase plugin for Qt Creator
Forum Update on Monday, May 27th 2025

ClearCase plugin for Qt Creator

Scheduled Pinned Locked Moved Qt Creator and other tools
22 Posts 4 Posters 10.8k Views
  • 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.
  • O Offline
    O Offline
    orgads
    Qt Champions 2017
    wrote on last edited by
    #1

    Hello,

    I want to create a plugin for ClearCase integration with Qt Creator.

    Is there any howto/getting started/internal documentation, or should I just copy another vcs plugin and modify it?

    Thanks.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      The bazaar plugin (new in master) is still pretty minimal and could probably serve as a good guide for your own plugin.

      Feel free to ask for help on the Qt Creator mailing list (qtcreator@qt.nokia.com) if you get stuck.

      1 Reply Last reply
      0
      • O Offline
        O Offline
        orgads
        Qt Champions 2017
        wrote on last edited by
        #3

        Thanks for the fast reply!

        ClearCase is quite different from the FOSS engines I worked with (cvs, svn, git). All the files are locally read-only, and when you need to edit a file, you need to check it out. When you're done you check-in. If you ever worked with VSS - this flow is quite similar.

        Besides checked-out and read-only files, a manually overridden file ("Make writable") is considered "Hijacked", and you may check it out and keep the changes, or revert it to read-only (Undo hijack).

        Is there any way to indicate which files were modified and which are untouched in the source tree? (something like TortoiseSVN...)

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tobias.hunger
          wrote on last edited by
          #4

          No, I never worked with VSS, but had some really limited exposure to ClearCase.

          This will become tricky. So far Qt Creator has no support to do VCS-specific magic before opening a file. Is there a way to do that without interfering with the file opening code? We do not like plugins to meddle with internals;-).

          TortoiseSVN (and Creator, too) gets the information on which files were modified from the VCS. So if ClearCase has a way to list the modified files then you can ask it to provide that information.

          1 Reply Last reply
          0
          • O Offline
            O Offline
            orgads
            Qt Champions 2017
            wrote on last edited by
            #5

            There is a way to get the information. Question is if it is possible to display it visually on the source tree (like TortoiseSVN superimposes icons on Windows Explorer)

            1 Reply Last reply
            0
            • T Offline
              T Offline
              tobias.hunger
              wrote on last edited by
              #6

              We do not superimpose anything in our file-based views yet. That would surely be possible though. I have not seen that feature requested much though. The icons off files in creator are rather small to add a meaningful overlay, too.

              Of course that will only effect the views of the files inside Qt Creator, not the Windows Explorer:-)

              1 Reply Last reply
              0
              • O Offline
                O Offline
                orgads
                Qt Champions 2017
                wrote on last edited by
                #7

                How about setting the text color for the filenames (e.g. green for checked-in, orange for checked-out, red for hijacked)? Is that possible?

                1 Reply Last reply
                0
                • T Offline
                  T Offline
                  tobias.hunger
                  wrote on last edited by
                  #8

                  Not without some modifications.

                  Ideally Creator would just handle all that clearcase magic transparently...

                  1 Reply Last reply
                  0
                  • G Offline
                    G Offline
                    giesbert
                    wrote on last edited by
                    #9

                    But it woukd be nice, if the files could be represented in the same way, as in ClearCase Explorer. For ClearCase users (I am one of them) it would make it easier.

                    Nokia Certified Qt Specialist.
                    Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

                    1 Reply Last reply
                    0
                    • O Offline
                      O Offline
                      orgads
                      Qt Champions 2017
                      wrote on last edited by
                      #10

                      Well, in ClearCase explorer it displays an icon to the right of the original icon (V for checked-out, crossed V for hijacked, none for checked-in). This is an option too...

                      1 Reply Last reply
                      0
                      • O Offline
                        O Offline
                        orgads
                        Qt Champions 2017
                        wrote on last edited by
                        #11

                        to the left, pardon me

                        1 Reply Last reply
                        0
                        • G Offline
                          G Offline
                          giesbert
                          wrote on last edited by
                          #12

                          It would be great, to have those features :-)

                          Nokia Certified Qt Specialist.
                          Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

                          1 Reply Last reply
                          0
                          • T Offline
                            T Offline
                            tobias.hunger
                            wrote on last edited by
                            #13

                            ClearCase is not on my ToDo list and I maintain the VCS stuff right now.

                            Feel free to implement a plugin though! Qt Creator is a open source project and you guys obviously are developers or you would not be requesting a plugin;-)

                            1 Reply Last reply
                            0
                            • O Offline
                              O Offline
                              orgads
                              Qt Champions 2017
                              wrote on last edited by
                              #14

                              That was my intention from the first place. That wasn't a feature request, but rather a request for information :)

                              I'll try to do this and see how it goes...

                              1 Reply Last reply
                              0
                              • O Offline
                                O Offline
                                orgads
                                Qt Champions 2017
                                wrote on last edited by
                                #15

                                Hey,

                                Thanks for all your help.
                                I'm almost done with the plugin :)

                                I still have a problem - when I do check-in (aka commit), I hold a FileChangeBlocker for the file (it is changed from read-write to read-only), but I still get the "file changed outside Qt Creator" message.

                                How do I avoid it?

                                1 Reply Last reply
                                0
                                • T Offline
                                  T Offline
                                  tobias.hunger
                                  wrote on last edited by
                                  #16

                                  Oh, good question! I think Creator triggers on all changes to the file, even if it is only meta-data... No idea how to get around that.

                                  1 Reply Last reply
                                  0
                                  • O Offline
                                    O Offline
                                    orgads
                                    Qt Champions 2017
                                    wrote on last edited by
                                    #17

                                    The problem is with runVCS running synchronously, so notifies aren't blocked. Maybe you should add a real blocker for synchronous operations (e.g. expectFileChanges() should set some variable that will be tested on checkForReload())

                                    1 Reply Last reply
                                    0
                                    • O Offline
                                      O Offline
                                      orgads
                                      Qt Champions 2017
                                      wrote on last edited by
                                      #18

                                      About icon overlaying - I found that function in FileIconProvider (works by mime type or extension). Problem is it cannot be replaced with a customized one...

                                      What I'd like to do is use my own FileIconProvider, and use the overlay function to overlay a small status icon (or widen the icon to add a status icon next to it)

                                      1 Reply Last reply
                                      0
                                      • K Offline
                                        K Offline
                                        knutpett
                                        wrote on last edited by
                                        #19

                                        Orgad, did you give up on icon overlaying? Is it feasible?

                                        1 Reply Last reply
                                        0
                                        • O Offline
                                          O Offline
                                          orgads
                                          Qt Champions 2017
                                          wrote on last edited by
                                          #20

                                          Better ask the guys on freenode :)

                                          I hardly use CC nowadays, so my motivation is low ;-)

                                          1 Reply Last reply
                                          0

                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved