1. 05 Jun, 2013 3 commits
    • Eike Ziller's avatar
      Switch less often to edit mode · 7c8db798
      Eike Ziller authored
      
      
      This change
      * Removes IMode::type, ModeManager::activateModeType, and
        IEditor::preferredModeType, and adds IEditor::isDesignModePreferred
        instead
      * Adapts the mode switching code in EditorManager to handle multiple
        windows, for example switching to edit mode should only happen if
        the editor/view is in the main window. Otherwise the editor window
        should be raised and focused
      * Renames EditorManager::NoActivate --> DoNotChangeCurrentEditor
      * Reverts the EditorManager::ModeSwitch logic to switch mode or
        make the current editor visible by default, introducing
        DoNotMakeVisible flag instead
      * Fixes a few instances where EditorManager::ModeSwitch should have been
        used
      
      One non-trivial problem left: If you open a .ui file and switch to an
      external editor window, edit mode is activated, because the current
      editor no longer is a .ui file, which means that the design mode gets
      deactivated.
      
      Change-Id: I76c5c2391eb4090143b778fb103acff3a5a1ff41
      Reviewed-by: default avatarDavid Schulz <david.schulz@digia.com>
      7c8db798
    • jkobus's avatar
      Remove unused code · f99ce422
      jkobus authored
      
      
      Change-Id: Icc4bb2648fc4e18e95216012ce08365940a80937
      Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
      f99ce422
    • Eike Ziller's avatar
      diffeditor: Fix qbs build · 9d0346a3
      Eike Ziller authored
      
      
      Change-Id: Ia657fbe20f51657295bfe657a88dab58c668c3f1
      Reviewed-by: default avatarJarek Kobus <jaroslaw.kobus@digia.com>
      9d0346a3
  2. 04 Jun, 2013 37 commits