1. 03 Dec, 2010 2 commits
  2. 01 Dec, 2010 1 commit
  3. 25 Nov, 2010 1 commit
  4. 22 Nov, 2010 1 commit
  5. 17 Nov, 2010 3 commits
    • Oswald Buddenhagen's avatar
      add Utils::QtcProcess · 531c70f0
      Oswald Buddenhagen authored
      this is a wrapper around QProcess with these features:
      - setEnvironment() takes a Utils::Environment instead of a QStringList
      - instead of taking a stringlist with arguments, take a single shell
        command string which is fully compatible with the system's native
        shell (the bourne shell on unix and cmd.exe on windows) - with support
        for environment variable expansion, and subject to the shell's
        splitting and quoting rules. if the command is too complex (e.g.,
        contains redirections), it is transparently executed through a real
        shell.
      - additionally, the class contains a set of helper functions for
        manipulating (constructing, splitting, etc.) shell command lines.
        in particular, it contains a shell-safe macro expander and the nested
        class ArgIterator which can be used for inspecting and manipulating a
        shell command line without going through the stringlist indirection
        (which is potentially lossy).
      
      some of this is based on KDE code (KShell and KMacroExpander) which i
      have written myself.
      531c70f0
    • Oswald Buddenhagen's avatar
      add generic macro expansion classes & functions to Utils · 9bd95ade
      Oswald Buddenhagen authored
      AbstractMacroExpander (any macros), AbstractQtcMacroExpander (%{var}
      style macros, which is a hybrid of printf format specifiers and unix
      environment expansions) and expandMacros() for the actual string
      manipulation.
      9bd95ade
    • Oswald Buddenhagen's avatar
      change Environment::expandVariables() semantics · 0641ed0e
      Oswald Buddenhagen authored
      instead of being os-agnostic, interpret the os-native expansion style,
      so it is consistent with proper (shell) command lines.
      
      don't interpret quotes, as this function is meant for expanding isolated
      filepaths, where nobody would expect quoting. instead, use the windows
      style of simply not doing an expansion if a referenced variable is not
      found, which should be good enough - it's rather unlikely that something
      which happens to be an expansion of an existing variable is actually not
      meant to be one.
      0641ed0e
  6. 11 Nov, 2010 2 commits
  7. 08 Nov, 2010 3 commits
  8. 04 Nov, 2010 2 commits
  9. 03 Nov, 2010 2 commits
    • Oswald Buddenhagen's avatar
      make shellQuote() nicer · 65650b26
      Oswald Buddenhagen authored
      - unify unix and windows paths
      - on windows:
        - we don't need to care for trailing backslashes, as we never append
          directly to quoted strings
        - simplify, as this doesn't need to be fast.
          unfortunately, it's impossible to use
            ret.replace(QRegExp(QLatin1String("(\\\\*)$")), QLatin1String("\"\\1"));
          as that matches foo\ twice (once one backslash and once an empty
          string).
      65650b26
    • Tobias Hunger's avatar
      Fix spelling in comments · cf3a418c
      Tobias Hunger authored
      Krazy was complaining about those.
      cf3a418c
  10. 02 Nov, 2010 1 commit
  11. 01 Nov, 2010 5 commits
  12. 29 Oct, 2010 1 commit
    • Kai Koehne's avatar
      QmlProject: Don't use RegExp for simple wildcard matching · c4ca0060
      Kai Koehne authored
      QRegExp matching is quite expensive, and has to be done for every file
      in the project directory tree against all possible suffixes. Optimize
      for the common case that the pattern is "*.suffix" by doing a
      fileName.endsWidth(suffix) in this case.
      
      This speeds up loading of examples/declarative/declarative.qmlproject by
      about 30%.
      
      Reviewed-by: Christian Kamm
      c4ca0060
  13. 21 Oct, 2010 2 commits
  14. 20 Oct, 2010 4 commits
  15. 19 Oct, 2010 1 commit
  16. 11 Oct, 2010 4 commits
  17. 08 Oct, 2010 3 commits
  18. 06 Oct, 2010 2 commits