~ubuntu-branches/ubuntu/quantal/kdevplatform/quantal-proposed

« back to all changes in this revision

Viewing changes to sublime/controller.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2010-10-24 00:06:18 UTC
  • mfrom: (0.3.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20101024000618-7otebin77mfcmt3b
Tags: 1.1.0-0ubuntu1
* New upstream release
  - Bump build-dependencies
  - Build against libboost-serialization1.42-dev
  - Update kdevplatform1-libs.install
  - Update kdevplatform-dev.install

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
#include <QApplication>
26
26
 
27
27
#include <kdebug.h>
 
28
#include <KSharedConfig>
28
29
 
29
30
#include "area.h"
30
31
#include "view.h"
94
95
    QMap<Area*, MainWindow*> shownAreas;
95
96
    QList<MainWindow*> controlledWindows;
96
97
    QVector< QList<Area*> > mainWindowAreas;
 
98
    bool openAfterCurrent;
97
99
};
98
100
 
99
101
 
108
110
 
109
111
void Controller::init()
110
112
{
111
 
 
 
113
    loadSettings();
112
114
    qApp->installEventFilter(this);
113
115
}
114
116
 
383
385
    document->setStatusIcon(icon);
384
386
}
385
387
 
 
388
void Controller::loadSettings()
 
389
{
 
390
    KConfigGroup uiGroup = KGlobal::config()->group("UiSettings");
 
391
    d->openAfterCurrent = (uiGroup.readEntry("TabBarOpenAfterCurrent", 1) == 1);
 
392
}
 
393
 
 
394
bool Controller::openAfterCurrent() const
 
395
{
 
396
    return d->openAfterCurrent;
 
397
}
 
398
 
386
399
}
387
400
 
388
401
#include "controller.moc"