~ubuntu-branches/ubuntu/saucy/qgis/saucy

« back to all changes in this revision

Viewing changes to src/plugins/labeling/engineconfigdialog.cpp

  • Committer: Package Import Robot
  • Author(s): Francesco Paolo Lovergine
  • Date: 2012-04-24 15:12:20 UTC
  • mfrom: (3.1.9 sid)
  • Revision ID: package-import@ubuntu.com-20120424151220-r88g00af5fpn5fc3
Tags: 1.7.4+1.7.5~20120320-1
The "Sometimes they come back" release.

* Branching from Qgis tree and adapting to current Debian Policy and
  standards. The target tree is currently set to release-1.7.
  (closes: #661491, #606304, #615683, #616182, #600308)
* Policy bumped to 3.9.3.
* Moving to debhelper compatibility level 9.
* Source format is now 3.0 with quilt support.
* Merged with 2bf42287 upstream git snapshot.
* Migrated to dh_python2 instead of python-central.
  (closes: #617048)
* Snapshot in qgis.org release-1.7: c936d031
* Added an automagic creation of a lintian override for sqlite embedding.
  This is required for uploading currently.
* Added missing ${misc:Depends} to make lintian happy.
* Copyright notes updated and debian/copyright moved to format 1.0.
* More licenses notices now reported in debian/copyright. Thanks ftpmasters.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#include "engineconfigdialog.h"
2
 
 
3
 
#include "pallabeling.h"
4
 
 
5
 
EngineConfigDialog::EngineConfigDialog( PalLabeling* lbl, QWidget* parent )
6
 
    : QDialog( parent ), mLBL( lbl )
7
 
{
8
 
  setupUi( this );
9
 
 
10
 
  connect( buttonBox, SIGNAL( accepted() ), this, SLOT( onOK() ) );
11
 
 
12
 
  // search method
13
 
  cboSearchMethod->setCurrentIndex( mLBL->searchMethod() );
14
 
 
15
 
  // candidate numbers
16
 
  int candPoint, candLine, candPolygon;
17
 
  mLBL->numCandidatePositions( candPoint, candLine, candPolygon );
18
 
  spinCandPoint->setValue( candPoint );
19
 
  spinCandLine->setValue( candLine );
20
 
  spinCandPolygon->setValue( candPolygon );
21
 
 
22
 
  chkShowCandidates->setChecked( mLBL->isShowingCandidates() );
23
 
 
24
 
  chkShowAllLabels->setChecked( mLBL->isShowingAllLabels() );
25
 
}
26
 
 
27
 
 
28
 
void EngineConfigDialog::onOK()
29
 
{
30
 
  // save
31
 
  mLBL->setSearchMethod(( PalLabeling::Search ) cboSearchMethod->currentIndex() );
32
 
 
33
 
  mLBL->setNumCandidatePositions( spinCandPoint->value(),
34
 
                                  spinCandLine->value(),
35
 
                                  spinCandPolygon->value() );
36
 
 
37
 
  mLBL->setShowingCandidates( chkShowCandidates->isChecked() );
38
 
 
39
 
  mLBL->setShowingAllLabels( chkShowAllLabels->isChecked() );
40
 
 
41
 
  accept();
42
 
}