~ubuntu-branches/ubuntu/oneiric/kdesdk/oneiric-updates

« back to all changes in this revision

Viewing changes to kate/app/katemdi.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Debian Qt/KDE Maintainers, Modestas Vainius, George Kiagiadakis, José Manuel Santamaría Lema, Pino Toscano
  • Date: 2011-04-27 12:23:44 UTC
  • mfrom: (1.1.58 upstream) (0.5.7 squeeze)
  • mto: (0.5.8 sid)
  • mto: This revision was merged to the branch mainline in revision 120.
  • Revision ID: james.westby@ubuntu.com-20110427122344-t9d1jf4lfnrl6hyv
Tags: 4:4.6.2-1
* New upstream release:
  - fixes plugin loading in kate sessions (Closes: #525853)
  - updates kate man page with respect to instance creation defaults
    (Closes: #598443)
  - fixes cursor position with static word-wrap in Kate (Closes: #570409)
  - xml2pot creates .pot files with the correct mimetype (Closes: #326060)
* Update installed files.
* Update lintian overrides.

[ Modestas Vainius ]
* Point debian/control Vcs fields to the new Git repository.
* Strip sequence numbers from debian/patches.
* Strip trailing whitespace in debian/copyright.
* Add kdeutils-dbg (<< 4:4.6) to kdesdk-dbg Breaks/Replaces (due to moved
  okteta).
* Add ${perl:Depends} to Depends of cervisia and kdesdk-kio-plugins.

[ George Kiagiadakis ]
* Add myself to uploaders.
* Refresh patch 02_append_kde.diff.
* Drop patch 03_kmtrace_compile.diff; fixed upstream in a better way.
* Add libkonq5-dev, libantlr-dev and antlr to build depends.
  (Closes: #505425)
* Bump kdepimlibs5-dev build dependency to version 4:4.6.
* Add new package: kdesdk-dolphin-plugins.

[ José Manuel Santamaría Lema ]
* Remove package kbugbuster.
* Enable DebianABIManager:
  - include DebianABIManager.cmake at the bottom of the main CMakeLists.txt
    (patch enable_debianabimanager.diff).
  - debian/control: managing all non-local unstable-BC libraries.
* Add packages for okteta:
  - okteta
  - okteta-dev
  - libkastencontrollers4
  - libkastencore4
  - libkastengui4
  - liboktetacore4
  - liboktetagui4
  - liboktetakastencontrollers4
  - liboktetakastencore4
  - liboktetakastengui4
* Add symbols files for new library packages.
* Bump kde-sc-dev-latest build dependency to 4:4.6.2.
* Bump pkg-kde-tools build dependency to 0.12.
* Switch debian/rules engine to dhmk based qt-kde-team/2/*
  - and remove cdbs from Build-Depends.
* Bump S-V to 3.9.1; update Replaces/Breaks/Conflicts.
* Add myself to Uploaders.

[ Pino Toscano ]
* Add build dependency on libqca2-dev.
* Do not ship kdesrc-build with kdesdk-scripts, it is packaged separately.
* Small updates to descriptions.
* Clean up Replaces/Breaks from the pre-squeeze era whenever possible.

Show diffs side-by-side

added added

removed removed

Lines of Context:
123
123
    m_showSidebarsAction = new KToggleAction( i18n("Show Side&bars"), this );
124
124
    actionCollection()->addAction( "kate_mdi_sidebar_visibility", m_showSidebarsAction );
125
125
    m_showSidebarsAction->setShortcut(  Qt::CTRL | Qt::ALT | Qt::SHIFT | Qt::Key_F );
126
 
    
 
126
 
127
127
    m_showSidebarsAction->setChecked( m_mw->sidebarsVisible() );
128
128
    connect( m_showSidebarsAction, SIGNAL( toggled( bool ) ),
129
129
             m_mw, SLOT( setSidebarsVisible( bool ) ) );
439
439
      KMultiTabBarTab *bt = dynamic_cast<KMultiTabBarTab*>(obj);
440
440
      if (bt)
441
441
      {
442
 
        kDebug() << "Request for popup";
 
442
        //kDebug() << "Request for popup";
443
443
 
444
444
        m_popupButton = bt->id();
445
445
 
849
849
    m_restoreConfig = config;
850
850
    m_restoreGroup = group;
851
851
 
852
 
    // set sane default sizes
853
 
    QList<int> hs = (QList<int>() << 200 << 100 << 200);
854
 
    QList<int> vs = (QList<int>() << 150 << 100 << 200);
855
 
 
856
852
    if (!m_restoreConfig || !m_restoreConfig->hasGroup (m_restoreGroup))
857
853
    {
 
854
      // if no config around, set already now sane default sizes
 
855
      // otherwise, set later in ::finishRestore(), since it does not work
 
856
      // if set already now (see bug #164438)
 
857
      QList<int> hs = (QList<int>() << 200 << 100 << 200);
 
858
      QList<int> vs = (QList<int>() << 150 << 100 << 200);
 
859
 
858
860
      m_sidebars[0]->setLastSize (hs[0]);
859
861
      m_sidebars[1]->setLastSize (hs[2]);
860
862
      m_sidebars[2]->setLastSize (vs[0]);
869
871
    KConfigGroup cg(m_restoreConfig, m_restoreGroup);
870
872
    restoreWindowSize (cg);
871
873
 
872
 
    // get main splitter sizes ;)
873
 
    hs = cg.readEntry ("Kate-MDI-H-Splitter", hs);
874
 
    vs = cg.readEntry ("Kate-MDI-V-Splitter", vs);
875
 
 
876
 
    m_sidebars[0]->setLastSize (hs[0]);
877
 
    m_sidebars[1]->setLastSize (hs[2]);
878
 
    m_sidebars[2]->setLastSize (vs[0]);
879
 
    m_sidebars[3]->setLastSize (vs[2]);
880
 
 
881
 
    m_hSplitter->setSizes(hs);
882
 
    m_vSplitter->setSizes(vs);
883
 
 
884
874
    setToolViewStyle( (KMultiTabBar::KMultiTabBarStyle)cg.readEntry ("Kate-MDI-Sidebar-Style", (int)toolViewStyle()) );
885
875
    // after reading m_sidebarsVisible, update the GUI toggle action
886
876
    m_sidebarsVisible = cg.readEntry ("Kate-MDI-Sidebar-Visible", true );
912
902
      // restore the sidebars
913
903
      for (unsigned int i = 0; i < 4; ++i)
914
904
        m_sidebars[i]->restoreSession (cg);
 
905
 
 
906
      // restore splitter sizes
 
907
      QList<int> hs = (QList<int>() << 200 << 100 << 200);
 
908
      QList<int> vs = (QList<int>() << 150 << 100 << 200);
 
909
 
 
910
      // get main splitter sizes ;)
 
911
      hs = cg.readEntry ("Kate-MDI-H-Splitter", hs);
 
912
      vs = cg.readEntry ("Kate-MDI-V-Splitter", vs);
 
913
 
 
914
      m_sidebars[0]->setLastSize (hs[0]);
 
915
      m_sidebars[1]->setLastSize (hs[2]);
 
916
      m_sidebars[2]->setLastSize (vs[0]);
 
917
      m_sidebars[3]->setLastSize (vs[2]);
 
918
 
 
919
      m_hSplitter->setSizes(hs);
 
920
      m_vSplitter->setSizes(vs);
915
921
    }
916
922
 
917
923
    // clear this stuff, we are done ;)