1. 09 Sep, 2013 1 commit
  2. 17 Jul, 2013 1 commit
    • Eike Ziller's avatar
      TextEditors: Remove useless duplicated (set)textCodec methods · 7808266f
      Eike Ziller authored
      
      
      They are duplicated from TextDocument::(set)codec. The default
      implementation of the duplicated methods was just delegating to the text
      document. The override of setTextCodec in QmlJsEditor was useless, since
      it was only called from EditorConfiguration::configureEditor with the
      ITextEditor::TextCodecFromProjectSetting flag anyhow, which made the
      overridden method in QmlJsEditor be the same as the fallback.
      Aside from that, the duplicated methods wouldn't have belonged to the
      *editor* anyhow, but to the document.
      
      Change-Id: Ib43c28210b6bf88726159d751a4905a1d062f80e
      Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@digia.com>
      Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
      7808266f
  3. 07 Jun, 2013 1 commit
  4. 05 Jun, 2013 1 commit
    • 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
  5. 08 Mar, 2013 1 commit
    • Mitch Curtis's avatar
      CPP, QmlJs editors: don't indent when moving commented lines up/down. · e53ae818
      Mitch Curtis authored
      Currently, pressing Ctrl + Shift + Up/Down with a commented block of
      text selected will indent that block if the line two lines above the
      block is indented. This is undesirable, because the indenting for that
      block is incorrect when it is uncommented. See the following example:
      
      Step 1:
      void f()
      {
          int x;
      
      //    int y;
      }
      
      Step 2 - After Ctrl + Shift + Up:
      void f()
      {
          int x;
          //    int y;
      
      }
      
      Step 3 - After uncommenting the block:
      void f()
      {
          int x;
              int y;
      
      }
      
      This patch tells the CPP and QmlJs editors not to indent commented
      blocks when moving them. Blocks that are not entirely within comments
      (excluding whitespace) are not affected.
      
      Tested with (C++ and JavaScript, respectively):
      http://paste.kde.org/688778/
      http://paste.kde.org/688784/
      
      
      
      Change-Id: I35414e6dfd5a1084fd997594e711ea9932231981
      Reviewed-by: default avatarDavid Schulz <david.schulz@digia.com>
      e53ae818
  6. 29 Jan, 2013 1 commit
  7. 20 Nov, 2012 1 commit
  8. 05 Oct, 2012 1 commit
  9. 19 Jul, 2012 1 commit
  10. 08 May, 2012 1 commit
  11. 27 Jan, 2012 1 commit
  12. 26 Jan, 2012 1 commit
  13. 03 Nov, 2011 1 commit
  14. 12 Oct, 2011 1 commit
  15. 06 May, 2011 1 commit
  16. 13 Apr, 2011 1 commit
  17. 22 Feb, 2011 1 commit
    • hjk's avatar
      texteditor: merge ITextEditable into ITextEditor · f576ad9f
      hjk authored
      rename BastTextEditor->BaseTextEditorWidget, BaseTextEditorEditable->BaseTextEditor
      rename BaseTextEditor{,Widget} subclasses
      rename editableInterface->editorInterface
      rename createEditableInterface->createEditor
      minor cleanups after renamings
      f576ad9f
  18. 12 Jan, 2011 1 commit
  19. 20 Dec, 2010 1 commit
  20. 17 Dec, 2010 1 commit
  21. 25 Nov, 2010 1 commit
  22. 11 Nov, 2010 1 commit
  23. 02 Nov, 2010 1 commit