Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
moving QM folder to New Folder
#7
Here's what I have right now for a working example.

This allows for exporting a project to flat-files that can be checked into source control and submitted for code reviews.

The import routine re-builds the QML from the flat files, deletes the existing folder under the specified project name, and then imports the newly created QML.

Each QMC file gets a metadata line beneath it that needs to stay in tact, which should not be a problem if you are only using QM as the IDE. 
Rather than building a separate file with the metadata I figured it'd be best to just store it in each file as the last line comment.

To use, import QMImportExport.qml and update the exportProject and exportPath depending on which project you want to export/import, and where. Upon calling QMImportProject you will need the Blank.qml to be in that same path as the .QMC source files. Lastly, don't put a trailing slash on the exportPath in the QMExport macro.


Attached Files
.qml   Blank.qml (Size: 3 KB / Downloads: 264)
.qml   QMImportExport.qml (Size: 7 KB / Downloads: 256)


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)