Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-12190

Refactor operation: extract class to file

    XMLWordPrintable

Details

    • 6164937b4 (master)

    Description

      I believe it would be (mildly) useful to have a refactor operation that would allow to extract a class from a file (resp. a header/source pair of files) containing several classes to its own file (resp. pair of files).

      Suggested workflow:

      • User opens refactor menu on a class whose name does not match the file's name
      • User selects "extract class to a x.hpp/x.cpp"
      • Open a dialog to allow the user to modify the file name(s), to prefix with a path for example (similar to the add class dialog)
      • Add the file(s) to the project
      • Move declarations and implementations of this class to the corresponding file(s)
      • Leave the focus on the new file (header if a source file was created as well)

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kandeler Christian Kandeler
            khaur Khaur
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes