~ubuntu-branches/ubuntu/wily/scribus/wily-proposed

« back to all changes in this revision

Viewing changes to scribus/rulermover.cpp

  • Committer: Package Import Robot
  • Author(s): Oleksandr Moskalenko
  • Date: 2012-02-09 21:50:56 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20120209215056-2wrx1ara0jbm7fi5
Tags: 1.4.0.dfsg+r17287-1
* New upstream stable release upload into Debian (Closes: #654703).
* Applied the Ubuntu armel patch.
* Removed non-free color swatches from resources.
* debian/control:
  - Moved icc-profiles from Recommends to Suggests (Closes: #655885).
  - Updated Standards-Version to 3.9.2.
  - Updated extended description per lintian warning.
* debian/rules:
  - Update mailcap (Closes: #630751). A request for mime.types update has
    been sent to the mime-support maintainer.
  - Added build-arch and build-indep targets per lintian warning.
* debian/patches:
  - top_cmakelists.patch - don't copy extra docs and changelogs.
  - scribus_cmakelists.patch - don't copy extra docs and changelogs.
  - scribus_cmakelists.patch - don't install the non-free "doc" dir.
  - profiles_cmakelists.patch - don't install non-free sRGB profile.
* debian/copyright: 
  - Converted to the DEP5 machine readable foramt.
  - Added licenses for free color swatches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
91
91
                                pmen2->addAction( tr("Origin at Bottom Left"), this, SLOT(moveRulerBottomLeft()));
92
92
                                pmen2->addAction( tr("Origin at Bottom Right"), this, SLOT(moveRulerBottomRight()));
93
93
                                pmen2->addAction( tr("Origin at Center"), this, SLOT(moveRulerCenter()));
 
94
                                pmen2->addAction( tr("Origin at Top Center"), this, SLOT(moveRulerTopCenter()));
 
95
                                pmen2->addAction( tr("Origin at Bottom Center"), this, SLOT(moveRulerBottomCenter()));
94
96
                                pmen->addMenu(pmen2);
95
97
                        }
96
98
                }
143
145
        currView->Doc->rulerYoffset = currView->Doc->currentPage()->height() / 2.0;
144
146
        currView->DrawNew();
145
147
}
 
148
 
 
149
void RulerMover::moveRulerTopCenter()
 
150
{
 
151
        currView->Doc->rulerXoffset = currView->Doc->currentPage()->width() / 2.0;
 
152
        currView->Doc->rulerYoffset = 0;
 
153
        currView->DrawNew();
 
154
}
 
155
 
 
156
void RulerMover::moveRulerBottomCenter()
 
157
{
 
158
        currView->Doc->rulerXoffset = currView->Doc->currentPage()->width() / 2.0;
 
159
        currView->Doc->rulerYoffset = currView->Doc->currentPage()->height();
 
160
        currView->DrawNew();
 
161
}
 
162