~abdullah-tahiri-yo/freecadtesting/freecad-system-wide-macros

« back to all changes in this revision

Viewing changes to src/Gui/DlgMacroRecordImp.cpp

  • Committer: Abdullah Tahiri
  • Date: 2015-12-06 11:15:32 UTC
  • Revision ID: git-v1:425c614fc25f2fceff4c648d7fcbc94e86efe4a2
Gui Enhancement: Support for macros in AppUserHome/Macro

=====================================================

What?
It was suggested that the macros should be moved to AppUserHome/Macro
http://forum.freecadweb.org/viewtopic.php?f=10&t=13433

Solution:
The solution is backwards compatible in the sense that if you have a running
configuration, updating should not change anything.

For new installations the macro directory will default to AppUserHome/Macro. However
this would break all the installation scripts (probably also ME's plugin manager).

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
 
55
55
    // get the macro home path
56
56
    this->macroPath = QString::fromUtf8(getWindowParameter()->GetASCII("MacroPath",
57
 
        App::Application::getUserAppDataDir().c_str()).c_str());
 
57
        App::Application::getUserMacroDir().c_str()).c_str());
58
58
    this->macroPath = QDir::toNativeSeparators(QDir(this->macroPath).path() + QDir::separator());
59
59
 
60
60
    // set the edit fields